Documentation ¶
Index ¶
Constants ¶
View Source
const UseFSContext = ""
UseFSContext is used to indicate a context switch to the file system Kubeconfig context
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
Name string `json:"name"`
}
Context describes a kube config context.
type KubeConfigContextManager ¶ added in v0.18.0
type KubeConfigContextManager struct {
// contains filtered or unexported fields
}
func NewKubeConfigContextManager ¶ added in v0.18.0
func NewKubeConfigContextManager(ctx context.Context, opts ...KubeConfigOption) (*KubeConfigContextManager, error)
func (*KubeConfigContextManager) ClusterClient ¶ added in v0.18.0
func (k *KubeConfigContextManager) ClusterClient() cluster.ClientInterface
func (*KubeConfigContextManager) Contexts ¶ added in v0.18.0
func (k *KubeConfigContextManager) Contexts() []Context
func (*KubeConfigContextManager) CurrentContext ¶ added in v0.18.0
func (k *KubeConfigContextManager) CurrentContext() string
func (*KubeConfigContextManager) SwitchContext ¶ added in v0.18.0
func (k *KubeConfigContextManager) SwitchContext(ctx context.Context, contextName string) error
type KubeConfigOption ¶ added in v0.18.0
type KubeConfigOption struct {
// contains filtered or unexported fields
}
func FromClusterOption ¶ added in v0.18.0
func FromClusterOption(clusterOption internalCluster.ClusterOption) KubeConfigOption
func Noop ¶ added in v0.18.0
func Noop() KubeConfigOption
func WithContextName ¶ added in v0.18.0
func WithContextName(contextName string) KubeConfigOption
func WithKubeConfigList ¶ added in v0.18.0
func WithKubeConfigList(kubeConfigList string) KubeConfigOption
Click to show internal directories.
Click to hide internal directories.