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) MajorMinor() string
- func (s Semver) MarshalJSON() ([]byte, error)
- func (s *Semver) Semver() *semverlib.Version
- func (s *Semver) String() string
- func (s *Semver) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Semver ¶
Semver is struct that encapsulates semver.Semver struct so we can use it in API +k8s:deepcopy-gen=true
func NewSemverOrDie ¶
NewSemverOrDie behaves similar to NewVersion, i.e. it creates new Semver version struct, but panics if an error happens
func (Semver) DeepCopy ¶
DeepCopy copies value of Semver struct and returns a new struct. If passed Semver struct is nil, it is assumed zero value is being copied
func (*Semver) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Semver) MajorMinor ¶
MajorMinor returns a string like "Major.Minor"
func (Semver) MarshalJSON ¶
MarshalJSON converts Semver struct to JSON
func (*Semver) UnmarshalJSON ¶
UnmarshalJSON converts JSON to Semver struct
Click to show internal directories.
Click to hide internal directories.