Documentation ¶
Index ¶
- func CurrentContextName() string
- func CurrentNamespaceName() string
- func CurrentNamespaceNameWithContext(contextName string) (string, error)
- func Execute(contextName string, namespaceName string, podName string, containerName string, ...) (exitCode int, err error)
- func GetClientsetOrDie() *kubernetes.Clientset
- func GetClientsetWithContextOrDie(contextName string) *kubernetes.Clientset
- func GetConfigAccess() clientcmd.ConfigAccess
- func GetConfigOrDie() *rest.Config
- func GetConfigWithContextOrDie(contextName string) *rest.Config
- func GetContextNamesSorted() []string
- func GetContexts() map[string]*api.Context
- func GetNamespaceNamesOrDie() []string
- func GetNamespaces() ([]v1.Namespace, error)
- func GetNamespacesWithContext(contextName string) ([]v1.Namespace, error)
- func GetPods(namespace string) ([]v1.Pod, error)
- func GetPodsWithContext(contextName string, namespace string) ([]v1.Pod, error)
- func GetStartingConfigOrDie() *api.Config
- func SwitchContext(contextName string) error
- func SwitchNamespace(namespace string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentContextName ¶
func CurrentContextName() string
func CurrentNamespaceName ¶
func CurrentNamespaceName() string
func GetClientsetOrDie ¶
func GetClientsetOrDie() *kubernetes.Clientset
func GetClientsetWithContextOrDie ¶
func GetClientsetWithContextOrDie(contextName string) *kubernetes.Clientset
func GetConfigAccess ¶
func GetConfigAccess() clientcmd.ConfigAccess
GetConfigAccess Load clientcmd's ConfigAccess (PathOptions)
func GetConfigOrDie ¶
func GetContextNamesSorted ¶
func GetContextNamesSorted() []string
func GetContexts ¶
func GetNamespaceNamesOrDie ¶
func GetNamespaceNamesOrDie() []string
func GetNamespaces ¶
func GetPodsWithContext ¶
func GetStartingConfigOrDie ¶
GetStartingConfigOrDie Attempt to load clientconfig's default configuration
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.