v1alpha1

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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

type SemverWrap struct {
	semver.Version
	Original string
}

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 NewRelaxedSemversNoErr(versions []string) Semvers

func (Semvers) All

func (v Semvers) All() []string

func (Semvers) FilterConstraints

func (v Semvers) FilterConstraints(constraintList string) (Semvers, error)

func (Semvers) FilterPrereleases

func (v Semvers) FilterPrereleases(prereleases *VersionSelectionSemverPrereleases) Semvers

func (Semvers) Highest

func (v Semvers) Highest() (string, bool)

func (Semvers) Sorted

func (v Semvers) Sorted() 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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VersionSelectionSemverPrereleases.

func (*VersionSelectionSemverPrereleases) DeepCopyInto

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{}

Jump to

Keyboard shortcuts

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