kubectl

package
v0.0.0-...-605b549 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Cordon(vmName string) error
	Drain(vmName string, gracePeriod int) error
	Uncordon(vmName string) error
}

Client interface for kubernetes

func New

func New() (Client, error)

New creates a new client

type RESTConfigClientGetter

type RESTConfigClientGetter struct {
	Config *rest.Config
}

RESTConfigClientGetter rest client getter

func (*RESTConfigClientGetter) ToDiscoveryClient

ToDiscoveryClient to discovery client

func (*RESTConfigClientGetter) ToRESTConfig

func (r *RESTConfigClientGetter) ToRESTConfig() (*rest.Config, error)

ToRESTConfig to rest config

func (*RESTConfigClientGetter) ToRESTMapper

func (r *RESTConfigClientGetter) ToRESTMapper() (meta.RESTMapper, error)

ToRESTMapper to rest mapper

func (*RESTConfigClientGetter) ToRawKubeConfigLoader

func (r *RESTConfigClientGetter) ToRawKubeConfigLoader() clientcmd.ClientConfig

ToRawKubeConfigLoader to raw kubeconfig loader

Jump to

Keyboard shortcuts

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