Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListNamespaces ¶
ListNamespaces retrieves all available namespaces (either via API call or from local cache)
func SwitchNamespace ¶
SwitchNamespace retrieves all available namespaces (either via API call or from local cache) Then sets the selected namespace on the current kubeconfig file (does not create a new tmp. kubeconfig to set namespace)
func SwitchToNamespace ¶
SwitchToNamespace takes a target namespace and - given that the namespace exists - sets it on the current kubeconfig file
Types ¶
type NamespaceCache ¶
type NamespaceCache struct {
// contains filtered or unexported fields
}
func NewNamespaceCache ¶
func NewNamespaceCache(stateDirectory string, contextName string) (*NamespaceCache, error)
NewNamespaceCache creates a new NamespaceCache
func (*NamespaceCache) GetContent ¶
func (i *NamespaceCache) GetContent() []string
func (*NamespaceCache) HasContent ¶
func (i *NamespaceCache) HasContent() bool
func (*NamespaceCache) Write ¶
func (i *NamespaceCache) Write(toWrite []string) error
Click to show internal directories.
Click to hide internal directories.