Documentation
¶
Index ¶
- Variables
- func GetAllContextsClients(opts GetAllContextsClientsOptions) (map[string]kubernetes.Interface, error)
- func GetClientConfig(context string, configPath string, configData []byte) (clientcmd.ClientConfig, error)
- func GroupVersionResourceByKind(client kubernetes.Interface, kind string) (schema.GroupVersionResource, error)
- func Init(opts InitOptions) error
- type GetAllContextsClientsOptions
- type InitOptions
- type KubeConfig
- type KubeConfigOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Kubernetes, Client kubernetes.Interface
DynamicClient dynamic.Interface
DefaultNamespace string
Context string
)
Functions ¶
func GetAllContextsClients ¶
func GetAllContextsClients(opts GetAllContextsClientsOptions) (map[string]kubernetes.Interface, error)
func GetClientConfig ¶
func GroupVersionResourceByKind ¶
func GroupVersionResourceByKind(client kubernetes.Interface, kind string) (schema.GroupVersionResource, error)
func Init ¶
func Init(opts InitOptions) error
Types ¶
type GetAllContextsClientsOptions ¶
type GetAllContextsClientsOptions struct {
KubeConfig string
}
type InitOptions ¶
type InitOptions struct {
KubeConfigOptions
}
type KubeConfig ¶
func GetKubeConfig ¶
func GetKubeConfig(opts KubeConfigOptions) (*KubeConfig, error)
type KubeConfigOptions ¶
Click to show internal directories.
Click to hide internal directories.