Documentation ¶
Index ¶
- Constants
- func CheckError(err error)
- func GetEnv(key, fallback string) string
- func GetHomeDir() string
- func InitializeKubeconfig(kubeconfigPath string) (*api.Config, error)
- func ListContexts(kubeconfigPath string) []string
- func NewPromptUISearcher(items []string) list.Searcher
- func SwitchContext(config *api.Config, contextName string, kubeconfigPath string) error
- func TouchFile(name string) error
- func WriteFile(config, loc string)
- type BellSkipper
Constants ¶
View Source
const ( NoticeColor = "\033[0;38m%s\u001B[0m" PromptColor = "\033[1;38m%s\u001B[0m" CyanColor = "\033[0;36m%s\033[0m" MagentaColor = "\033[0;35m%s\033[0m" )
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func CheckError(err error)
func GetHomeDir ¶
func GetHomeDir() string
func ListContexts ¶
func NewPromptUISearcher ¶
func SwitchContext ¶
Types ¶
type BellSkipper ¶
type BellSkipper struct{}
func (*BellSkipper) Close ¶
func (bs *BellSkipper) Close() error
Click to show internal directories.
Click to hide internal directories.