arc

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Installer

type Installer struct {
	// contains filtered or unexported fields
}

Installer handles Azure Arc installation operations

func NewInstaller

func NewInstaller(logger *logrus.Logger) *Installer

NewInstaller creates a new Arc installer

func (*Installer) Execute

func (i *Installer) Execute(ctx context.Context) error

Execute performs Arc setup as part of the bootstrap process This method is designed to be called from bootstrap steps and handles all Arc-related setup It stops on the first error to prevent partial setups

func (*Installer) GetName

func (i *Installer) GetName() string

GetName returns the step name

func (*Installer) IsCompleted

func (i *Installer) IsCompleted(ctx context.Context) bool

IsCompleted checks if Arc setup has been completed This can be used by bootstrap steps to verify completion status Uses the same reliable logic as status collector for consistency

func (*Installer) Validate

func (i *Installer) Validate(ctx context.Context) error

Validate validates prerequisites for Arc installation

type UnInstaller

type UnInstaller struct {
	// contains filtered or unexported fields
}

UnInstaller handles Azure Arc cleanup operations

func NewUnInstaller

func NewUnInstaller(logger *logrus.Logger) *UnInstaller

NewUnInstaller creates a new Arc UnInstaller

func (*UnInstaller) Execute

func (u *UnInstaller) Execute(ctx context.Context) error

Execute performs Arc cleanup as part of the unbootstrap process This method is designed to be called from unbootstrap steps and handles all Arc-related cleanup It's resilient to failures and continues cleanup even if some operations fail

func (*UnInstaller) GetName

func (u *UnInstaller) GetName() string

GetName returns the cleanup step name

func (*UnInstaller) IsCompleted

func (u *UnInstaller) IsCompleted(ctx context.Context) bool

IsCompleted checks if Arc cleanup has been completed always returns false to ensure cleanup is attempted

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL