prerun

package
v3.3.2-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrFatalError -- unrecoverable fatal error
	ErrFatalError chkitErrors.Err = "fatal error"
)

Variables

This section is empty.

Functions

func GetNamespaceByUserfriendlyID

func GetNamespaceByUserfriendlyID(ctx *context.Context, flags *pflag.FlagSet) error

func PreRun

func PreRun(ctx *context.Context, optional ...Config) error

func PreRunFunc

func PreRunFunc(ctx *context.Context, optional ...Config) func(cmd *cobra.Command, args []string)

func ResolveLabel

func ResolveLabel(ctx *context.Context, label string) (namespace.Namespace, error)

func WithInit

func WithInit(ctx *context.Context, action func(*context.Context) *cobra.Command) *cobra.Command

Types

type Config

type Config struct {
	DoNotRunLoginOnIncompatibleConfig bool
	SetupClient                       bool
	AllowInvalidConfig                bool
}

Jump to

Keyboard shortcuts

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