Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildKitVersion ¶
func BuildKitVersion() string
BuildKitVersion returns the linked BuildKit version from build info.
func GoVersion ¶
func GoVersion() string
GoVersion returns the Go toolchain version used for the build.
func RawVersion ¶
func RawVersion() string
RawVersion returns the semantic version string without any suffix.
Types ¶
type CGOInfo ¶ added in v0.28.0
type CGOInfo struct {
Enabled bool `json:"enabled"`
CCompiler string `json:"cCompiler,omitempty"`
GlibcVersion string `json:"glibcVersion,omitempty"`
}
CGOInfo describes CGO build properties embedded in the binary.
type Info ¶
type Info struct {
Version string `json:"version"`
BuildkitVersion string `json:"buildkitVersion,omitempty"`
ShellcheckVersion string `json:"shellcheckVersion,omitempty"`
Platform Platform `json:"platform"`
GoVersion string `json:"goVersion"`
GitCommit string `json:"gitCommit,omitempty"`
CGO CGOInfo `json:"cgo"`
}
Info holds structured version information for machine-readable output.
Click to show internal directories.
Click to hide internal directories.