common

package
v0.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDir

func EnsureDir(dir string) (string, error)

func ExitByError

func ExitByError(msg string)

func ExitIfError

func ExitIfError(err error)

func GetClientOrDie

func GetClientOrDie() *openapi.Client

func NewClient

func NewClient(config ClientConfig) (*openapi.Client, error)

func NewKubeClient added in v0.11.0

func NewKubeClient(yamlConfig string) (kubernetes.Interface, error)

func SetupClusterIdFlag added in v0.9.1

func SetupClusterIdFlag(cmd *cobra.Command)

func YesOrExit added in v0.9.1

func YesOrExit(msg string)

Types

type ClientConfig added in v0.12.0

type ClientConfig struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL