version

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompatibilityMapping

type CompatibilityMapping struct {
	OperatorVersion          *goversion.Version    `json:"operatorVersion,omitempty"`
	SupportedIstioVersions   goversion.Constraints `json:"supportedIstioVersions,omitempty"`
	RecommendedIstioVersions goversion.Constraints `json:"recommendedIstioVersions,omitempty"`
}

CompatibilityMapping is a mapping from an Istio operator version and the corresponding recommended and supported versions of Istio.

func (*CompatibilityMapping) MarshalYAML

func (v *CompatibilityMapping) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaler interface.

func (*CompatibilityMapping) UnmarshalYAML

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

UnmarshalYAML implements the Unmarshaler interface.

type MajorVersion

type MajorVersion struct {
	Major uint32
}

MajorVersion represents a major version.

func NewMajorVersion

func NewMajorVersion(major uint32) MajorVersion

NewMajorVersion creates an initialized MajorVersion struct.

func (MajorVersion) String

func (v MajorVersion) String() string

String implements the Stringer interface.

type MinorVersion

type MinorVersion struct {
	MajorVersion
	Minor uint32
}

MinorVersion represents a minor version.

func NewMinorVersion

func NewMinorVersion(major, minor uint32) MinorVersion

NewMinorVersion creates an initialized MinorVersion struct.

func (MinorVersion) String

func (v MinorVersion) String() string

String implements the Stringer interface.

type PatchVersion

type PatchVersion struct {
	MinorVersion
	Patch uint32
}

PatchVersion represents a patch version.

func NewPatchVersion

func NewPatchVersion(major, minor, patch uint32) PatchVersion

NewPatchVersion creates an initialized PatchVersion struct.

func (PatchVersion) String

func (v PatchVersion) String() string

String implements the Stringer interface.

type Version

type Version struct {
	PatchVersion
	Suffix string
}

Version represents a version with an optional suffix.

func NewVersion

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

NewVersion creates an initialized Version struct.

func NewVersionFromString

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

func (v *Version) String() string

String implements the Stringer interface.

func (*Version) UnmarshalYAML

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

UnmarshalYAML implements the Unmarshaler interface.

Jump to

Keyboard shortcuts

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