Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HighestConstrainedVersion ¶
func HighestConstrainedVersion(versions []string, config VersionSelection) (string, error)
Types ¶
type SemverWrap ¶ added in v0.20.0
func NewRelaxedSemver ¶ added in v0.20.0
func NewRelaxedSemver(version string) (SemverWrap, error)
func NewSemver ¶ added in v0.20.0
func NewSemver(version string) (SemverWrap, error)
type Semvers ¶
type Semvers struct {
// contains filtered or unexported fields
}
func NewRelaxedSemversNoErr ¶ added in v0.20.0
func (Semvers) FilterConstraints ¶
func (Semvers) FilterPrereleases ¶
func (v Semvers) FilterPrereleases(prereleases *VersionSelectionSemverPrereleases) Semvers
type VersionSelection ¶
type VersionSelection struct {
Semver *VersionSelectionSemver `json:"semver,omitempty"`
}
+k8s:deepcopy-gen=true
func (*VersionSelection) DeepCopy ¶
func (in *VersionSelection) DeepCopy() *VersionSelection
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VersionSelection.
func (*VersionSelection) DeepCopyInto ¶
func (in *VersionSelection) DeepCopyInto(out *VersionSelection)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VersionSelectionSemver ¶
type VersionSelectionSemver struct { Constraints string `json:"constraints,omitempty"` Prereleases *VersionSelectionSemverPrereleases `json:"prereleases,omitempty"` }
+k8s:deepcopy-gen=true
func (*VersionSelectionSemver) DeepCopy ¶
func (in *VersionSelectionSemver) DeepCopy() *VersionSelectionSemver
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VersionSelectionSemver.
func (*VersionSelectionSemver) DeepCopyInto ¶
func (in *VersionSelectionSemver) DeepCopyInto(out *VersionSelectionSemver)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VersionSelectionSemverPrereleases ¶
type VersionSelectionSemverPrereleases struct {
Identifiers []string `json:"identifiers,omitempty"`
}
+k8s:deepcopy-gen=true
func (*VersionSelectionSemverPrereleases) DeepCopy ¶
func (in *VersionSelectionSemverPrereleases) DeepCopy() *VersionSelectionSemverPrereleases
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VersionSelectionSemverPrereleases.
func (*VersionSelectionSemverPrereleases) DeepCopyInto ¶
func (in *VersionSelectionSemverPrereleases) DeepCopyInto(out *VersionSelectionSemverPrereleases)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VersionSelectionSemverPrereleases) IdentifiersAsMap ¶
func (p VersionSelectionSemverPrereleases) IdentifiersAsMap() map[string]struct{}