ocne

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateModuleMetadataConfigMap

func CreateModuleMetadataConfigMap(ctx context.Context, metadataFile string) error

func CreateOCNEMetadataConfigMap

func CreateOCNEMetadataConfigMap(ctx context.Context, metadataFile string) error

func GetMetaDataContents

func GetMetaDataContents(metadataFile string) (map[string]string, error)

Types

type ModuleMetadata

type ModuleMetadata struct {
	Entries map[string]repo.ChartVersions
}

type OCNEImages

type OCNEImages struct {
	ETCD                  string `json:"etcd"`
	CoreDNS               string `json:"coredns"`
	TigeraOperator        string `json:"tigera-operator"`
	Calico                string `json:"calico"`
	Pause                 string `json:"pause"`
	KubeControllerManager string `json:"kube-controller-manager"`
	KubeScheduler         string `json:"kube-scheduler"`
	KubeApiServer         string `json:"kube-apiserver"`
	KubeProxy             string `json:"kube-proxy"`
	ModuleOperator        string `json:"module-operator"`
}

type OCNEMetadata

type OCNEMetadata struct {
	OCNEImages   `json:"container-images"`
	OCNEPackages `json:"packages"`
	Release      string `json:release,omitempty`
}

type OCNEPackages

type OCNEPackages struct {
	Kubeadm string `json:"kubeadm"`
	Kubectl string `json:"kubectl"`
	Kubelet string `json:"kubelet"`
	Helm    string `json:"helm"`
}

type SemVersion

type SemVersion struct {
	Major      int64
	Minor      int64
	Patch      int64
	Prerelease string
	Build      string
}

SemVersion Implements a basic notion a semantic version (see https://semver.org/, test page: https://regex101.com/r/vkijKf/1/)

func NewSemVersion

func NewSemVersion(version string) (*SemVersion, error)

NewSemVersion Create an instance of a SemVersion

func (*SemVersion) CompareTo

func (v *SemVersion) CompareTo(from *SemVersion) int

CompareTo Compares the current version to another version - if from > this, -1 is returned - if from < this, 1 is returned - if they are equal, 0 is returned

func (*SemVersion) IsEqualTo

func (v *SemVersion) IsEqualTo(from *SemVersion) bool

IsEqualTo Returns true if to == from

func (*SemVersion) IsEqualToOrPatchVersionOf

func (v *SemVersion) IsEqualToOrPatchVersionOf(from *SemVersion) bool

IsEqualOrPatchVersionOf Returns true if to == from or to is a patch version of from

func (*SemVersion) IsGreaterThanOrEqualTo

func (v *SemVersion) IsGreaterThanOrEqualTo(from *SemVersion) bool

IsGreaterThanOrEqualTo Returns true if to >= from

func (*SemVersion) IsGreatherThan

func (v *SemVersion) IsGreatherThan(from *SemVersion) bool

IsGreatherThan Returns true if to > from

func (*SemVersion) IsLessThan

func (v *SemVersion) IsLessThan(from *SemVersion) bool

IsLessThan Returns true if to < from

func (*SemVersion) ToString

func (v *SemVersion) ToString() string

ToString Convert to a valid semver string representation

Jump to

Keyboard shortcuts

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