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" )
Click to show internal directories.
Click to hide internal directories.