k8s

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentContextName

func CurrentContextName() string

func CurrentNamespaceName

func CurrentNamespaceName() string

func CurrentNamespaceNameWithContext

func CurrentNamespaceNameWithContext(contextName string) (string, error)

func Execute

func Execute(contextName string, namespaceName string, podName string, containerName string, args []string) (exitCode int, err error)

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 GetConfigOrDie() *rest.Config

func GetConfigWithContextOrDie

func GetConfigWithContextOrDie(contextName string) *rest.Config

func GetContextNamesSorted

func GetContextNamesSorted() []string

func GetContexts

func GetContexts() map[string]*api.Context

func GetNamespaceNamesOrDie

func GetNamespaceNamesOrDie() []string

func GetNamespaces

func GetNamespaces() ([]v1.Namespace, error)

func GetNamespacesWithContext

func GetNamespacesWithContext(contextName string) ([]v1.Namespace, error)

func GetPods

func GetPods(namespace string) ([]v1.Pod, error)

func GetPodsWithContext

func GetPodsWithContext(contextName string, namespace string) ([]v1.Pod, error)

func GetStartingConfigOrDie

func GetStartingConfigOrDie() *api.Config

GetStartingConfigOrDie Attempt to load clientconfig's default configuration

func SwitchContext

func SwitchContext(contextName string) error

SwitchContext ...

func SwitchNamespace

func SwitchNamespace(namespace string) error

SwitchNamespace ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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