version

package
v0.57.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APIVersion = NewVersion(1, 0, 0)

APIVersion represents admin API version.

View Source
var ClusterAPIVersion = NewVersion(1, 0, 0)

ClusterAPIVersion represents cluster API version.

View Source
var Version = NewVersion(0, 57, 0)

Version represents application version.

Functions

This section is empty.

Types

type SemanticVersion

type SemanticVersion struct {
	// contains filtered or unexported fields
}

SemanticVersion represents version information with Semantic Versioning specifications.

func NewVersion

func NewVersion(major, minor, patch uint) *SemanticVersion

NewVersion initializes a new instance of SemanticVersion.

func (*SemanticVersion) IsEqual

func (v *SemanticVersion) IsEqual(v2 *SemanticVersion) bool

IsEqual returns true if version instance is equal to the second.

func (*SemanticVersion) IsGreater

func (v *SemanticVersion) IsGreater(v2 *SemanticVersion) bool

IsGreater returns true if version instance is greater than the second.

func (*SemanticVersion) IsGreaterOrEqual

func (v *SemanticVersion) IsGreaterOrEqual(v2 *SemanticVersion) bool

IsGreaterOrEqual returns true if version instance is greater than or equal to the second.

func (*SemanticVersion) IsLess

func (v *SemanticVersion) IsLess(v2 *SemanticVersion) bool

IsLess returns true if version instance is less than the second.

func (*SemanticVersion) IsLessOrEqual

func (v *SemanticVersion) IsLessOrEqual(v2 *SemanticVersion) bool

IsLessOrEqual returns true if version instance is less than or equal to the second.

func (*SemanticVersion) Major

func (v *SemanticVersion) Major() uint

Major returns version major value.

func (*SemanticVersion) Minor

func (v *SemanticVersion) Minor() uint

Minor returns version minor value.

func (*SemanticVersion) Patch

func (v *SemanticVersion) Patch() uint

Patch returns version patch value.

func (*SemanticVersion) String

func (v *SemanticVersion) String() string

String returns a string that represents this instance.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL