kubernetes/vendor/github.com/coreos/go-semver/semver/semver.go

type Version

type PreRelease

func splitOff(input *string, delim string) (val string) {}

func New(version string) *Version {}

func NewVersion(version string) (*Version, error) {}

// Must is a helper for wrapping NewVersion and will panic if err is not nil.
func Must(v *Version, err error) *Version {}

// Set parses and updates v from the given version string. Implements flag.Value
func (v *Version) Set(version string) error {}

func (v Version) String() string {}

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

func (v Version) MarshalJSON() ([]byte, error) {}

func (v *Version) UnmarshalJSON(data []byte) error {}

// Compare tests if v is less than, equal to, or greater than versionB,
// returning -1, 0, or +1 respectively.
func (v Version) Compare(versionB Version) int {}

// Equal tests if v is equal to versionB.
func (v Version) Equal(versionB Version) bool {}

// LessThan tests if v is less than versionB.
func (v Version) LessThan(versionB Version) bool {}

// Slice converts the comparable parts of the semver into a slice of integers.
func (v Version) Slice() []int64 {}

func (p PreRelease) Slice() []string {}

func preReleaseCompare(versionA Version, versionB Version) int {}

func recursiveCompare(versionA []int64, versionB []int64) int {}

func recursivePreReleaseCompare(versionA []string, versionB []string) int {}

// BumpMajor increments the Major field by 1 and resets all other fields to their default values
func (v *Version) BumpMajor() {}

// BumpMinor increments the Minor field by 1 and resets all other fields to their default values
func (v *Version) BumpMinor() {}

// BumpPatch increments the Patch field by 1 and resets all other fields to their default values
func (v *Version) BumpPatch() {}

// validateIdentifier makes sure the provided identifier satisfies semver spec
func validateIdentifier(id string) error {}

var reIdentifier