Documentation
¶
Overview ¶
Package version provides the defined version types for Vela.
Deprecated: all version types for Vela have been moved to github.com/go-vela/server/version .
This package is frozen.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata
deprecated
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.
Deprecated: use Metadata from github.com/go-vela/server/version instead.
type Version
deprecated
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/.
Deprecated: use Version from github.com/go-vela/server/compiler/types/version instead.
func (*Version) Meta ¶
Meta implements a formatted string containing only metadata for the Version type.
Click to show internal directories.
Click to hide internal directories.