kubernetes

package
v0.0.0-...-076e350 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(a, b *BuildInfo) (res int)

func GetClusterVersion

func GetClusterVersion(cluster string) (s string)

func GetNodeVersion

func GetNodeVersion(cluster, node string) (s string)

func HasMinimumVersion

func HasMinimumVersion(cluster string, major, minor uint64) bool

func Metrics

func Metrics()

Types

type BuildInfo

type BuildInfo struct {
	GitVersion string
	Major      uint64
	Minor      uint64
}

type ClusterVersions

type ClusterVersions struct {
	ApiServers *TypedVersions
	Nodes      *TypedVersions
}

type TypedVersions

type TypedVersions struct {
	// contains filtered or unexported fields
}

func NewTypedVersions

func NewTypedVersions() *TypedVersions

func (*TypedVersions) Add

func (tv *TypedVersions) Add(name string, version *BuildInfo)

func (*TypedVersions) Get

func (tv *TypedVersions) Get(name string) *BuildInfo

func (*TypedVersions) GetMaximum

func (tv *TypedVersions) GetMaximum() *BuildInfo

func (*TypedVersions) GetMinimum

func (tv *TypedVersions) GetMinimum() *BuildInfo

func (*TypedVersions) String

func (tv *TypedVersions) String() string

Jump to

Keyboard shortcuts

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