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
Click to show internal directories.
Click to hide internal directories.