istio: istio.io/istio/operator/pkg/version Index | Files

package version

import "istio.io/istio/operator/pkg/version"

Index

Package Files

version.go

func IsVersionString Uses

func IsVersionString(path string) bool

IsVersionString checks whether the given string is a version string

func TagToVersionString Uses

func TagToVersionString(path string) (string, error)

TagToVersionString converts an istio container tag into a version string

func TagToVersionStringGrace Uses

func TagToVersionStringGrace(path string) string

TagToVersionString converts an istio container tag into a version string, if any error, fallback to use the original tag.

type MajorVersion Uses

type MajorVersion struct {
    Major uint32
}

MajorVersion represents a major version.

func NewMajorVersion Uses

func NewMajorVersion(major uint32) MajorVersion

NewMajorVersion creates an initialized MajorVersion struct.

func (MajorVersion) String Uses

func (v MajorVersion) String() string

String implements the Stringer interface.

type MinorVersion Uses

type MinorVersion struct {
    MajorVersion
    Minor uint32
}

MinorVersion represents a minor version.

func NewMinorVersion Uses

func NewMinorVersion(major, minor uint32) MinorVersion

NewMinorVersion creates an initialized MinorVersion struct.

func (MinorVersion) String Uses

func (v MinorVersion) String() string

String implements the Stringer interface.

type PatchVersion Uses

type PatchVersion struct {
    MinorVersion
    Patch uint32
}

PatchVersion represents a patch version.

func NewPatchVersion Uses

func NewPatchVersion(major, minor, patch uint32) PatchVersion

NewPatchVersion creates an initialized PatchVersion struct.

func (PatchVersion) String Uses

func (v PatchVersion) String() string

String implements the Stringer interface.

type Version Uses

type Version struct {
    PatchVersion
    Suffix string
}

Version represents a version with an optional suffix.

func NewVersion Uses

func NewVersion(major, minor, patch uint32, suffix string) Version

NewVersion creates an initialized Version struct.

func NewVersionFromString Uses

func NewVersionFromString(s string) (*Version, error)

NewVersionFromString creates a new Version from the provided SemVer formatted string and returns a pointer to it.

func (*Version) String Uses

func (v *Version) String() string

String implements the Stringer interface.

func (*Version) UnmarshalYAML Uses

func (v *Version) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements the Unmarshaler interface.

Package version imports 5 packages (graph) and is imported by 4 packages. Updated 2020-10-21. Refresh now. Tools for package owners.