version

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version added in v0.4.0

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

func NewVersion added in v0.4.0

func NewVersion(version string) *Version

func (*Version) AtLeast added in v0.4.0

func (version *Version) AtLeast(minVersion string) bool

Returns true if this version is larger or equals from the version sent as an argument.

func (*Version) Compare added in v0.4.0

func (version *Version) Compare(ver1 string) int

If ver1 == version returns 0 If ver1 > version returns 1 If ver1 < version returns -1

func (*Version) GetVersion added in v0.21.0

func (version *Version) GetVersion() string

func (*Version) SetVersion added in v0.4.0

func (version *Version) SetVersion(artifactoryVersion string)

Jump to

Keyboard shortcuts

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