Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Arch represents the architecture information for the package. Arch = runtime.GOARCH // Commit represents the git commit information for the package. Commit string // Compiler represents the compiler information for the package. Compiler = runtime.Compiler // Date represents the build date information for the package. Date string // Go represents the golang version information for the package. Go = runtime.Version() // OS represents the operating system information for the package. OS = runtime.GOOS // Tag represents the git tag information for the package. Tag string )
Functions ¶
This section is empty.
Types ¶
type Metadata ¶ added in v0.26.0
type Metadata struct { // Architecture represents the architecture information for the application. Architecture string `json:"architecture,omitempty"` // BuildDate represents the build date information for the application. BuildDate string `json:"build_date,omitempty"` // Compiler represents the compiler information for the application. Compiler string `json:"compiler,omitempty"` // GitCommit represents the git commit information for the application. GitCommit string `json:"git_commit,omitempty"` // GoVersion represents the golang version information for the application. GoVersion string `json:"go_version,omitempty"` // OperatingSystem represents the operating system information for the application. OperatingSystem string `json:"operating_system,omitempty"` }
Metadata represents extra information surrounding the application version.
type Version ¶
type Version struct { // Canonical represents a canonical semantic version for the application. Canonical string `json:"canonical"` // Major represents incompatible API changes. Major uint64 `json:"major"` // Minor represents added functionality in a backwards compatible manner. Minor uint64 `json:"minor"` // Patch represents backwards compatible bug fixes. Patch uint64 `json:"patch"` // PreRelease represents unstable changes that might not be compatible. PreRelease string `json:"pre_release,omitempty"` // Metadata represents extra information surrounding the application version. Metadata Metadata `json:"metadata,omitempty"` }
Version represents application information that follows semantic version guidelines from https://semver.org/.
swagger:model Version
func New ¶ added in v0.7.0
func New() *Version
New creates a new version object for Vela that is used throughout the application.
func (*Version) Meta ¶ added in v0.26.0
Meta implements a formatted string containing only metadata for the Version type.
Click to show internal directories.
Click to hide internal directories.