common

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 29 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 SetupSignalHandler added in v0.17.0

func SetupSignalHandler(parentCtx context.Context) context.Context

func Yes added in v0.17.0

func Yes(msg string) bool

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
}

func (ClientConfig) SessionName added in v0.15.0

func (c ClientConfig) SessionName() string

Jump to

Keyboard shortcuts

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