Documentation
¶
Overview ¶
Package version contains all metadata for cli.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUpdateAvailable ¶
IsUpdateAvailable indicates if there is a newer application version available, and if so, what the new version is.
Types ¶
type Version ¶
type Version struct { Version string `json:"version"` // application semantic version SyftVersion string `json:"syftVersion"` // version of syft BuildDate string `json:"buildDate"` // date of the build GoVersion string `json:"goVersion"` // go runtime version at build-time Compiler string `json:"compiler"` // compiler used at build-time Platform string `json:"platform"` // GOOS and GOARCH at build-time }
Version defines the application version details (generally from build information).
func GetCurrentVersion ¶
func GetCurrentVersion() Version
GetCurrentVersion provide metadata of current version.
Click to show internal directories.
Click to hide internal directories.