kubectl

package
v0.220.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 6 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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