Documentation ¶
Index ¶
- Variables
- type SemanticVersion
- func (v *SemanticVersion) IsEqual(v2 *SemanticVersion) bool
- func (v *SemanticVersion) IsGreater(v2 *SemanticVersion) bool
- func (v *SemanticVersion) IsGreaterOrEqual(v2 *SemanticVersion) bool
- func (v *SemanticVersion) IsLess(v2 *SemanticVersion) bool
- func (v *SemanticVersion) IsLessOrEqual(v2 *SemanticVersion) bool
- func (v *SemanticVersion) Major() uint
- func (v *SemanticVersion) Minor() uint
- func (v *SemanticVersion) Patch() uint
- func (v *SemanticVersion) String() string
Constants ¶
This section is empty.
Variables ¶
var APIVersion = NewVersion(1, 0, 0)
APIVersion represents admin API version.
var ClusterAPIVersion = NewVersion(1, 0, 0)
ClusterAPIVersion represents cluster API version.
var Version = NewVersion(0, 62, 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.