Documentation
¶
Overview ¶
Package installer provides agent installation, update, and uninstall capabilities.
Index ¶
- type Manager
- func (m *Manager) GetAvailableMethods(agentDef catalog.AgentDef) []catalog.InstallMethodDef
- func (m *Manager) GetLatestVersion(ctx context.Context, method catalog.InstallMethodDef) (agent.Version, error)
- func (m *Manager) Install(ctx context.Context, agentDef catalog.AgentDef, ...) (*providers.Result, error)
- func (m *Manager) IsMethodAvailable(method string) bool
- func (m *Manager) Uninstall(ctx context.Context, inst *agent.Installation, method catalog.InstallMethodDef) error
- func (m *Manager) Update(ctx context.Context, inst *agent.Installation, agentDef catalog.AgentDef, ...) (*providers.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager orchestrates installation operations.
func NewManager ¶
NewManager creates a new installation manager.
func (*Manager) GetAvailableMethods ¶
func (m *Manager) GetAvailableMethods(agentDef catalog.AgentDef) []catalog.InstallMethodDef
GetAvailableMethods returns the installation methods available for an agent on this platform.
func (*Manager) GetLatestVersion ¶
func (m *Manager) GetLatestVersion(ctx context.Context, method catalog.InstallMethodDef) (agent.Version, error)
GetLatestVersion returns the latest version available for an agent using the specified method.
func (*Manager) Install ¶
func (m *Manager) Install(ctx context.Context, agentDef catalog.AgentDef, method catalog.InstallMethodDef, force bool) (*providers.Result, error)
Install installs an agent using the specified method.
func (*Manager) IsMethodAvailable ¶
IsMethodAvailable checks if a specific install method is available on this system.
func (*Manager) Uninstall ¶
func (m *Manager) Uninstall(ctx context.Context, inst *agent.Installation, method catalog.InstallMethodDef) error
Uninstall removes an installed agent.
Click to show internal directories.
Click to hide internal directories.