Documentation ¶
Index ¶
- type Semver
- func (s Semver) DeepCopy() Semver
- func (in *Semver) DeepCopyInto(out *Semver)
- func (s *Semver) Equal(b *Semver) bool
- func (s *Semver) GreaterThan(b *Semver) bool
- func (s *Semver) LessThan(b *Semver) bool
- func (s *Semver) MajorMinor() string
- func (s *Semver) Semver() *semverlib.Version
- func (s *Semver) Set(ver string) error
- func (s *Semver) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Semver ¶
type Semver string
Semver is a type that encapsulates github.com/Masterminds/semver/v3.Version struct so it can be used in our API.
func NewSemverOrDie ¶
NewSemverOrDie behaves similar to NewVersion, i.e. it creates new Semver version struct, but panics if an error happens.
func (*Semver) DeepCopyInto ¶
func (*Semver) GreaterThan ¶
func (*Semver) MajorMinor ¶
MajorMinor returns a string like "Major.Minor".
func (*Semver) Semver ¶
Semver returns github.com/Masterminds/semver/v3 struct. In case when Semver is nil, nil will be returned. In case of parsing error, nil will be returned.
Click to show internal directories.
Click to hide internal directories.