Documentation
¶
Overview ¶
Package version reports the build provenance of the clusterctl binary.
No version number is stored in the source tree. Release builds inject one from the signed git tag through -ldflags; every other build derives what it can from the VCS stamps the Go toolchain embeds.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
// Version is the release version, "v1.4.0" style, or "devel" when the
// binary was not built from a tag.
Version string `json:"version" yaml:"version"`
// Commit is the git revision the binary was built from, empty when the
// build carried no VCS information.
Commit string `json:"commit,omitempty" yaml:"commit,omitempty"`
// Date is the build or commit timestamp in RFC 3339 form.
Date string `json:"date,omitempty" yaml:"date,omitempty"`
// Dirty reports whether the working tree held uncommitted changes.
Dirty bool `json:"dirty,omitempty" yaml:"dirty,omitempty"`
// GoVersion is the toolchain that produced the binary.
GoVersion string `json:"goVersion" yaml:"goVersion"`
// Platform is the target the binary was built for.
Platform string `json:"platform" yaml:"platform"`
}
Info describes the running binary.