Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option is a functional option for configuring the client
func UsingGitHubUpdateChecker ¶
Using GitHubUpdateChecker will cause the repo passed in to be the source of truth when checking for new updates
func UsingHomebrewFormula ¶
UsingHomebrewFormula will cause the formula passed in to be used when checking if this CLI was installed using homebrew
func UsingHttpTimeout ¶ added in v0.0.6
UsingHttpTimeout will set the timeout for all http requests made by this sdk
func UsingLogger ¶
UsingLogger can be set if you want to get log output from this sdk By default no log output is emitted.
func UsingOCIUpdateChecker ¶ added in v0.0.4
UsingOCIUpdateChecker will cause the image passed in to be the source of truth when checking for new updates
type SDK ¶
type SDK struct {
// contains filtered or unexported fields
}
func (SDK) ExternalUpgradeCommand ¶
func (SDK) GetUpdateInfo ¶
func (s SDK) GetUpdateInfo() (*updatechecker.UpdateInfo, error)
GetUpdateInfo will return the latest version
Click to show internal directories.
Click to hide internal directories.