Documentation ¶
Index ¶
- Variables
- func GetClientConfig(context, configPath string, configData []byte, configPathMergeList []string) (clientcmd.ClientConfig, error)
- func GroupVersionResourceByKind(client kubernetes.Interface, kind string) (schema.GroupVersionResource, error)
- func Init(opts InitOptions) error
- func NewKubeConfigGetter(opts KubeConfigGetterOptions) (genericclioptions.RESTClientGetter, error)
- type ClientGetterFromConfigData
- func (getter *ClientGetterFromConfigData) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
- func (getter *ClientGetterFromConfigData) ToRESTConfig() (*rest.Config, error)
- func (getter *ClientGetterFromConfigData) ToRESTMapper() (meta.RESTMapper, error)
- func (getter *ClientGetterFromConfigData) ToRawKubeConfigLoader() clientcmd.ClientConfig
- type ContextClient
- type GetAllContextsClientsOptions
- type InitOptions
- type KubeConfig
- type KubeConfigGetterOptions
- type KubeConfigOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Kubernetes kubernetes.Interface Client kubernetes.Interface DynamicClient dynamic.Interface CachedDiscoveryClient discovery.CachedDiscoveryInterface Mapper meta.RESTMapper DefaultNamespace string Context string )
Functions ¶
func GetClientConfig ¶
func GroupVersionResourceByKind ¶
func GroupVersionResourceByKind(client kubernetes.Interface, kind string) (schema.GroupVersionResource, error)
func Init ¶
func Init(opts InitOptions) error
func NewKubeConfigGetter ¶ added in v0.5.0
func NewKubeConfigGetter(opts KubeConfigGetterOptions) (genericclioptions.RESTClientGetter, error)
Types ¶
type ClientGetterFromConfigData ¶ added in v0.5.0
type ClientGetterFromConfigData struct { Context string ConfigDataBase64 string ClientConfig clientcmd.ClientConfig }
func NewClientGetterFromConfigData ¶ added in v0.5.0
func NewClientGetterFromConfigData(context, configDataBase64 string) (*ClientGetterFromConfigData, error)
func (*ClientGetterFromConfigData) ToDiscoveryClient ¶ added in v0.5.0
func (getter *ClientGetterFromConfigData) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
func (*ClientGetterFromConfigData) ToRESTConfig ¶ added in v0.5.0
func (getter *ClientGetterFromConfigData) ToRESTConfig() (*rest.Config, error)
func (*ClientGetterFromConfigData) ToRESTMapper ¶ added in v0.5.0
func (getter *ClientGetterFromConfigData) ToRESTMapper() (meta.RESTMapper, error)
func (*ClientGetterFromConfigData) ToRawKubeConfigLoader ¶ added in v0.5.0
func (getter *ClientGetterFromConfigData) ToRawKubeConfigLoader() clientcmd.ClientConfig
type ContextClient ¶ added in v0.5.0
type ContextClient struct { ContextName string ContextNamespace string Client kubernetes.Interface }
func GetAllContextsClients ¶
func GetAllContextsClients(opts GetAllContextsClientsOptions) ([]*ContextClient, error)
type InitOptions ¶
type InitOptions struct {
KubeConfigOptions
}
type KubeConfig ¶
func GetKubeConfig ¶
func GetKubeConfig(opts KubeConfigOptions) (*KubeConfig, error)
type KubeConfigGetterOptions ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.