installer

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package installer provides agent installation, update, and uninstall capabilities.

Index

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

func NewManager(p platform.Platform) *Manager

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

func (m *Manager) IsMethodAvailable(method string) bool

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.

func (*Manager) Update

func (m *Manager) Update(ctx context.Context, inst *agent.Installation, agentDef catalog.AgentDef, method catalog.InstallMethodDef) (*providers.Result, error)

Update updates an installed agent.

Directories

Path Synopsis
Package providers contains installation provider implementations.
Package providers contains installation provider implementations.

Jump to

Keyboard shortcuts

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