Documentation
¶
Overview ¶
Package update checks for and installs Volcano CLI releases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PlatformBinaryName ¶
PlatformBinaryName returns the published release asset name for this process.
Types ¶
type Asset ¶
type Asset struct {
Name string `json:"name"`
BrowserDownloadURL string `json:"browser_download_url"`
}
Asset is a downloadable GitHub release asset.
type CommandRunner ¶
type CommandRunner interface {
Run(ctx context.Context, name string, args ...string) ([]byte, error)
}
CommandRunner runs an external verification command.
type HTTPClient ¶
HTTPClient is the subset of http.Client used by release checks and upgrades.
type Options ¶
type Options struct {
HTTPClient HTTPClient
GitHubAPIURL string
ExecutablePath string
CommandRunner CommandRunner
RequireSignatureVerification bool
}
Options configures update operations.
type Release ¶
Release is the subset of GitHub release metadata the CLI needs.
func LatestRelease ¶
LatestRelease fetches GitHub's latest release metadata.
Click to show internal directories.
Click to hide internal directories.