Documentation
¶
Index ¶
- func BootstrapConfig(settings config.Settings) ([]byte, error)
- func DetectVersion(ctx context.Context, runner CommandRunner, binaryPath string) (string, error)
- func EnsureRuntimeConfig(path string, settings config.Settings) error
- func ParseVersion(output string) (string, error)
- func ValidateConfig(ctx context.Context, runner CommandRunner, ...) error
- func WriteBootstrapConfig(path string, settings config.Settings) error
- type Asset
- type Candidate
- type CommandRunner
- type InstallRequest
- type InstallResult
- type Installer
- type OSCommandRunner
- type PreparedCore
- type Release
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectVersion ¶
func ParseVersion ¶
func ValidateConfig ¶
func ValidateConfig(ctx context.Context, runner CommandRunner, binaryPath, dataDir, configPath string) error
Types ¶
type Asset ¶
type Candidate ¶
type Candidate struct {
// contains filtered or unexported fields
}
func (*Candidate) Commit ¶
func (c *Candidate) Commit() (InstallResult, error)
type CommandRunner ¶
type InstallRequest ¶
type InstallResult ¶
type Installer ¶
type Installer struct {
HTTPClient *http.Client
APIBase string
Repository string
GOOS string
GOARCH string
Runner CommandRunner
}
func (Installer) Install ¶
func (i Installer) Install(ctx context.Context, request InstallRequest) (InstallResult, error)
func (Installer) Prepare ¶
func (i Installer) Prepare(ctx context.Context, request InstallRequest) (PreparedCore, error)
type OSCommandRunner ¶
type OSCommandRunner struct{}
type PreparedCore ¶
type PreparedCore interface {
Version() string
Updated() bool
Commit() (InstallResult, error)
Cleanup()
}
Click to show internal directories.
Click to hide internal directories.