Documentation ¶
Index ¶
- func GenerateKubeConfigFromToken(serverURL, token string, caCert []byte, flowRate int) (*rest.Config, error)
- func GracefulStopWithContext() context.Context
- func LoadsKubeConfig(kubeConfigPath string, flowRate int) (*rest.Config, error)
- func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKubeConfigFromToken ¶
func GenerateKubeConfigFromToken(serverURL, token string, caCert []byte, flowRate int) (*rest.Config, error)
GenerateKubeConfigFromToken composes a kubeconfig from token
func GracefulStopWithContext ¶
GracefulStopWithContext registered for SIGTERM and SIGINT with a cancel context returned. When one of these signals get caught, the returned context's channel will be closed. If a second signal is caught, then the program is terminated with exit code 1.
func LoadsKubeConfig ¶
LoadsKubeConfig tries to load kubeconfig from specified kubeconfig file or in-cluster config
func WordSepNormalizeFunc ¶
func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
WordSepNormalizeFunc changes all flags with separators from "_" to "-"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.