Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidArchive = errors.New("invalid archive used") ErrNotImplemented = errors.New("not implemented") ErrVersionNotFound = errors.New("version not found") ErrUnsupportedOS = errors.New("unsupported OS") ErrUnsupportedArchitecture = errors.New("unsupported architecture") ErrUnknownTool = errors.New("unknown tool") )
Functions ¶
func AllAvailableToolsCsv ¶
func AllAvailableToolsCsv() string
Types ¶
type AvailableTool ¶
type AvailableTool string
const ToolHostCtl AvailableTool = "hostctl"
const ToolSops AvailableTool = "sops"
func (AvailableTool) IsKnown ¶
func (t AvailableTool) IsKnown() bool
type CheckSetupQuery ¶
func (CheckSetupQuery) MessageName ¶
func (CheckSetupQuery) MessageName() string
type InstallCommand ¶
type InstallCommand struct {
bus.Returns[bus.Void]
Tool AvailableTool
}
func (InstallCommand) MessageName ¶
func (InstallCommand) MessageName() string
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) CheckSetup ¶
func (m *Manager) CheckSetup(_ context.Context, query CheckSetupQuery) error
func (*Manager) UpdateSelf ¶
func (m *Manager) UpdateSelf(_ context.Context, cmd UpdateSelfCommand) error
func (*Manager) VerifySetup ¶
type ToolNotFoundError ¶
type ToolNotFoundError struct {
Tool string
}
func (ToolNotFoundError) Error ¶
func (err ToolNotFoundError) Error() string
type ToolsNotFoundError ¶
type ToolsNotFoundError struct {
Errs []ToolNotFoundError
}
func (ToolsNotFoundError) Error ¶
func (err ToolsNotFoundError) Error() string
type UpdateSelfCommand ¶
type UpdateSelfCommand struct {
bus.Returns[bus.Void]
Strategy VersioningStrategy
SpecifiedVersion string
}
func (UpdateSelfCommand) MessageName ¶
func (UpdateSelfCommand) MessageName() string
type VersioningStrategy ¶
type VersioningStrategy string
const VersioningStrategyLatest VersioningStrategy = "latest"
const VersioningStrategySpecific VersioningStrategy = "specific"
Click to show internal directories.
Click to hide internal directories.