swversion

package
v0.0.0-...-d7e1125 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SoftWareVersion

type SoftWareVersion struct {
	// Version specifies original software version, such as 21.9.6.24-alpha
	Version string
	// Semver specifies semver adaptation, truncated to 3 numbers, such as 21.9.6 for 21.9.6.24-alpha original version
	Semver string
}

SoftWareVersion specifies software version and software semver

func NewSoftWareVersion

func NewSoftWareVersion(str string) *SoftWareVersion

NewSoftWareVersion creates new software version

func (*SoftWareVersion) IsUnknown

func (v *SoftWareVersion) IsUnknown() bool

IsUnknown checks whether software version is unknown

func (*SoftWareVersion) Matches

func (v *SoftWareVersion) Matches(constraint string) bool

Matches checks whether software version matches specified constraint

func (*SoftWareVersion) String

func (v *SoftWareVersion) String() string

String makes string

Jump to

Keyboard shortcuts

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