Documentation ¶
Index ¶
- Constants
- type KubeContext
- type KubeManager
- func (m *KubeManager) Delete(name string) error
- func (m *KubeManager) Get(name string) (*KubeContext, error)
- func (m *KubeManager) GetCurrent() (*KubeContext, error)
- func (m *KubeManager) List() []*KubeContext
- func (m *KubeManager) Rename(ctx *KubeContext, name string) error
- func (m *KubeManager) Set(name string, data []byte) (*KubeContext, error)
Constants ¶
View Source
const ( CurrentKubeConfigNameEnv = "KS_CURRENT_KUBECONFIG_NAME" CurrentNamespaceEnv = "KS_CURRENT_NAMESPACE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeContext ¶
type KubeManager ¶
type KubeManager struct {
// contains filtered or unexported fields
}
func BuildKubeManager ¶
func BuildKubeManager(meta *metadata.Metadata) (*KubeManager, error)
func (*KubeManager) Delete ¶
func (m *KubeManager) Delete(name string) error
func (*KubeManager) Get ¶
func (m *KubeManager) Get(name string) (*KubeContext, error)
func (*KubeManager) GetCurrent ¶
func (m *KubeManager) GetCurrent() (*KubeContext, error)
func (*KubeManager) List ¶
func (m *KubeManager) List() []*KubeContext
func (*KubeManager) Rename ¶
func (m *KubeManager) Rename(ctx *KubeContext, name string) error
func (*KubeManager) Set ¶
func (m *KubeManager) Set(name string, data []byte) (*KubeContext, error)
Click to show internal directories.
Click to hide internal directories.