Documentation ¶
Index ¶
- Constants
- func GetNamespaceByUserfriendlyID(ctx *context.Context, flags *pflag.FlagSet) error
- func PreRun(ctx *context.Context, optional ...Config) error
- func PreRunFunc(ctx *context.Context, optional ...Config) func(cmd *cobra.Command, args []string)
- func ResolveLabel(ctx *context.Context, label string) (namespace.Namespace, error)
- func WithInit(ctx *context.Context, action func(*context.Context) *cobra.Command) *cobra.Command
- type ClientInitMode
- type Config
- type LoadNamespaceListMode
Constants ¶
View Source
const ( // ErrFatalError -- unrecoverable fatal error ErrFatalError chkitErrors.Err = "fatal error" )
Variables ¶
This section is empty.
Functions ¶
func PreRunFunc ¶
func ResolveLabel ¶
Types ¶
type ClientInitMode ¶
type ClientInitMode string
const ( DoNotAllowSelfSignedTLSCerts ClientInitMode = "" AllowSelfSignedTLSCerts ClientInitMode = "allow self signed certs" DoNotInitClient ClientInitMode = "don't init client" )
func (ClientInitMode) String ¶
func (mode ClientInitMode) String() string
type Config ¶
type Config struct { InitClient ClientInitMode RunLoginOnMissingCreds bool NamespaceSelection LoadNamespaceListMode Namespace string }
type LoadNamespaceListMode ¶
type LoadNamespaceListMode string
const ( TemporarySetNamespace LoadNamespaceListMode = "" RunNamespaceSelectionAndPersist LoadNamespaceListMode = "run namespace selection and persist" )
func (LoadNamespaceListMode) String ¶
func (mode LoadNamespaceListMode) String() string
Click to show internal directories.
Click to hide internal directories.