clifecycle

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	CurrentVersion    string
	Executable        string
	GOOS              string
	GOARCH            string
	APIBase           string
	ReleaseBase       string
	CacheRoot         string
	AgentHome         string
	Client            *http.Client
	ValidateCandidate func(context.Context, string, string) error
}

func Default

func Default(version string) (Manager, error)

func (Manager) Check

func (manager Manager) Check(ctx context.Context, requested string) (Release, error)

func (Manager) PlanUninstall

func (manager Manager) PlanUninstall(purge bool) UninstallPlan

func (Manager) Uninstall

func (manager Manager) Uninstall(purge bool) (UninstallPlan, error)

func (Manager) Update

func (manager Manager) Update(ctx context.Context, requested string) (UpdateResult, error)

type Release

type Release struct {
	Current         string
	Latest          string
	Archive         string
	URL             string
	ChecksumsURL    string
	UpdateAvailable bool
}

type UninstallPlan

type UninstallPlan struct {
	Executable  string
	InstallDir  string
	Manifest    string
	Managed     bool
	CacheRoot   string
	Dispatchers []string
	Purge       bool
}

type UpdateResult

type UpdateResult struct {
	Release   Release
	Updated   bool
	Scheduled bool
}

Jump to

Keyboard shortcuts

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