Documentation
¶
Overview ¶
Package version provides build-time version information for the operator. These variables are set via ldflags during the build process.
Usage:
fmt.Printf("Version: %s, Commit: %s\n", version.Version, version.GitCommit)
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the semantic version of the operator (e.g., "1.0.0"). Version = "dev" // GitCommit is the short SHA of the git commit used to build the binary. GitCommit = "unknown" // BuildDate is the ISO 8601 date when the binary was built. BuildDate = "unknown" )
These variables are set at build time via -ldflags.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Version string `json:"version"`
GitCommit string `json:"gitCommit"`
BuildDate string `json:"buildDate"`
GoVersion string `json:"goVersion"`
Platform string `json:"platform"`
}
Info holds structured version information for the operator.
Click to show internal directories.
Click to hide internal directories.