version

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 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

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

func NewVersion

func NewVersion(version string) *Version

func (*Version) AtLeast

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

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

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

func (*Version) SetVersion

func (version *Version) SetVersion(artifactoryVersion string)

Jump to

Keyboard shortcuts

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