kubectl

package
v0.186.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const Command = "kubectl"

Variables

This section is empty.

Functions

This section is empty.

Types

type KubernetesVersionManager added in v0.158.0

type KubernetesVersionManager interface {
	ClientVersion() (string, error)
	ServerVersion(env []string, args []string) (string, error)
	ValidateVersion(version string, vType VersionType) error
}

func NewVersionManager added in v0.158.0

func NewVersionManager() KubernetesVersionManager

type VersionManager added in v0.158.0

type VersionManager struct{}

VersionManager implements KubernetesVersionManager

func (*VersionManager) ClientVersion added in v0.158.0

func (vm *VersionManager) ClientVersion() (string, error)

ClientVersion returns the kubectl client version

func (*VersionManager) ServerVersion added in v0.158.0

func (vm *VersionManager) ServerVersion(env []string, args []string) (string, error)

ServerVersion returns the kubernetes version on server

func (*VersionManager) ValidateVersion added in v0.158.0

func (vm *VersionManager) ValidateVersion(version string, vType VersionType) error

ValidateVersion checks that the client / server version is valid and supported

type VersionType added in v0.158.0

type VersionType string
var (
	Client VersionType = "client"
	Server VersionType = "server"
)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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