Documentation ¶
Index ¶
- func EnsureDir(dir string) (string, error)
- func ExitByError(msg string)
- func ExitIfError(err error)
- func GetClientOrDie() *openapi.Client
- func NewClient(config ClientConfig) (*openapi.Client, error)
- func NewKubeClient(yamlConfig string) (kubernetes.Interface, error)
- func SetupClusterIdFlag(cmd *cobra.Command)
- func SetupSignalHandler(parentCtx context.Context) context.Context
- func Yes(msg string) bool
- func YesOrExit(msg string)
- type ClientConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitByError ¶
func ExitByError(msg string)
func ExitIfError ¶
func ExitIfError(err error)
func GetClientOrDie ¶
func NewKubeClient ¶ added in v0.11.0
func NewKubeClient(yamlConfig string) (kubernetes.Interface, error)
func SetupClusterIdFlag ¶ added in v0.9.1
func SetupSignalHandler ¶ added in v0.17.0
Types ¶
type ClientConfig ¶ added in v0.12.0
type ClientConfig struct {
// contains filtered or unexported fields
}
func (ClientConfig) SessionName ¶ added in v0.15.0
func (c ClientConfig) SessionName() string
Click to show internal directories.
Click to hide internal directories.