Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdatesAvailable ¶
UpdatesAvailable returns the version if updates are available, otherwise empty string. Errors also return empty strings.
Types ¶
type CLIUpdater ¶
type CLIUpdater struct {
// contains filtered or unexported fields
}
CLIUpdater manages updates to the CLI.
func NewCLIUpdater ¶
func NewCLIUpdater(cloudAddr string) *CLIUpdater
NewCLIUpdater creates a new CLIUpdater.
func (*CLIUpdater) GetAvailableVersions ¶
func (c *CLIUpdater) GetAvailableVersions(minVersion semver.Version) ([]string, error)
GetAvailableVersions returns a list (max 10) of available versions > specified version.
func (*CLIUpdater) IsUpdatable ¶
func (c *CLIUpdater) IsUpdatable() (bool, error)
IsUpdatable checks file permissions to make sure that the CLI can be updated.
func (*CLIUpdater) UpdateSelf ¶
func (c *CLIUpdater) UpdateSelf(version string) error
UpdateSelf updates the CLI to the specified version.
Click to show internal directories.
Click to hide internal directories.