Documentation ¶
Index ¶
- type Client
- type RESTConfigClientGetter
- func (r *RESTConfigClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
- func (r *RESTConfigClientGetter) ToRESTConfig() (*rest.Config, error)
- func (r *RESTConfigClientGetter) ToRESTMapper() (meta.RESTMapper, error)
- func (r *RESTConfigClientGetter) ToRawKubeConfigLoader() clientcmd.ClientConfig
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
type RESTConfigClientGetter ¶
RESTConfigClientGetter rest client getter
func (*RESTConfigClientGetter) ToDiscoveryClient ¶
func (r *RESTConfigClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
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
Click to show internal directories.
Click to hide internal directories.