kubernetes/staging/src/k8s.io/component-base/version/version.go

type EffectiveVersion

type MutableEffectiveVersion

type effectiveVersion

// Get returns the overall codebase version. It's for detecting
// what code a binary was built from.
func Get() apimachineryversion.Info {}

func (m *effectiveVersion) BinaryVersion() *version.Version {}

func (m *effectiveVersion) EmulationVersion() *version.Version {}

func (m *effectiveVersion) MinCompatibilityVersion() *version.Version {}

func (m *effectiveVersion) EqualTo(other EffectiveVersion) bool {}

func (m *effectiveVersion) String() string {}

func majorMinor(ver *version.Version) *version.Version {}

func (m *effectiveVersion) Set(binaryVersion, emulationVersion, minCompatibilityVersion *version.Version) {}

func (m *effectiveVersion) SetEmulationVersion(emulationVersion *version.Version) {}

func (m *effectiveVersion) SetMinCompatibilityVersion(minCompatibilityVersion *version.Version) {}

func (m *effectiveVersion) Validate() []error {}

func newEffectiveVersion(binaryVersion *version.Version, useDefaultBuildBinaryVersion bool) MutableEffectiveVersion {}

func NewEffectiveVersion(binaryVer string) MutableEffectiveVersion {}

func defaultBuildBinaryVersion() *version.Version {}

// DefaultBuildEffectiveVersion returns the MutableEffectiveVersion based on the
// current build information.
func DefaultBuildEffectiveVersion() MutableEffectiveVersion {}

// DefaultKubeEffectiveVersion returns the MutableEffectiveVersion based on the
// latest K8s release.
func DefaultKubeEffectiveVersion() MutableEffectiveVersion {}

// ValidateKubeEffectiveVersion validates the EmulationVersion is equal to the binary version at 1.31 for kube components.
// emulationVersion is introduced in 1.31, so it is only allowed to be equal to the binary version at 1.31.
func ValidateKubeEffectiveVersion(effectiveVersion EffectiveVersion) error {}