Documentation
¶
Index ¶
Constants ¶
View Source
const ( VersionAPIEndpoint = "https://api.github.com/repos/openshift/ocm-container/releases/latest" VersionAddressTemplate = "https://github.com/openshift/ocm-container/releases/download/v%s/ocm-container_%s_%s_%s.tar.gz" // version, version, GOOS, GOARCH )
Variables ¶
View Source
var ( // GitCommit is the short git commit hash from the environment // Will be set during build process via GoReleaser // See also: https://pkg.go.dev/cmd/link GitCommit string // Version is the tag version from the environment // Will be set during build process via GoReleaser // See also: https://pkg.go.dev/cmd/link Version string )
Functions ¶
func GetLatestVersion ¶
getLatestVersion connects to the GitHub API and returns the latest ocm-container tag name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.