Documentation ¶
Index ¶
- func AskForConfirmation() (bool, error)
- func StringInSlice(a string, list []string) bool
- type Config
- func (c *Config) AddContext(cluster string, namespace string)
- func (c *Config) ContextName(cluster string, namespace string) string
- func (c *Config) DeleteContexts(contexts map[string]*api.Context) error
- func (c *Config) GetKubernetesClient() (*kubernetes.Clientset, error)
- func (c *Config) ListContexts() (map[string]*api.Context, string)
- func (c *Config) Update() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskForConfirmation ¶
AskForConfirmation function that return 1 if you type y/Y/yes or 0 otherwise
func StringInSlice ¶
StringInSlice return true when string is in slice
Types ¶
type Config ¶ added in v0.1.1
type Config struct {
// contains filtered or unexported fields
}
func (*Config) AddContext ¶ added in v0.1.1
func (*Config) ContextName ¶ added in v0.1.1
func (*Config) DeleteContexts ¶ added in v0.1.1
func (*Config) GetKubernetesClient ¶ added in v0.1.1
func (c *Config) GetKubernetesClient() (*kubernetes.Clientset, error)
func (*Config) ListContexts ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.