Documentation ¶
Index ¶
- Variables
- func Execute(executeOptions ...ExecuteOption) error
- type ExecuteOption
- func WithApplyFlags(flags func(flagsSet *pflag.FlagSet)) ExecuteOption
- func WithFlags(flags func(flagsSet *pflag.FlagSet)) ExecuteOption
- func WithK8s(k func(configs ...k8s.Config) (k8s.K8s, error)) ExecuteOption
- func WithModules(load func(thread *starlark.Thread, module string) (starlark.StringDict, error)) ExecuteOption
- func WithTestFlags(flags func(flagsSet *pflag.FlagSet)) ExecuteOption
- func WithTestK8s(k func(configs ...k8s.Config) (k8s.K8s, error)) ExecuteOption
- type ExecuteOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // BcryptAPI - BcryptAPI = starlark.StringDict{ "bcrypt": &starlarkstruct.Module{ Name: "bcrypt", Members: starlark.StringDict{ "hash": starlark.NewBuiltin("bcrypt.hash", core.ErrWrapper(bcryptModule{}.Hash)), }, }, } )
Functions ¶
func Execute ¶
func Execute(executeOptions ...ExecuteOption) error
Execute executes the root command.
Types ¶
type ExecuteOption ¶
type ExecuteOption func(e *ExecuteOptions)
ExecuteOption -
func WithApplyFlags ¶
func WithApplyFlags(flags func(flagsSet *pflag.FlagSet)) ExecuteOption
WithApplyFlags adds global command line options to apply, delete and test
func WithFlags ¶
func WithFlags(flags func(flagsSet *pflag.FlagSet)) ExecuteOption
WithFlags adds global command line options
func WithModules ¶
func WithModules(load func(thread *starlark.Thread, module string) (starlark.StringDict, error)) ExecuteOption
WithModules add new modules to kdo, which can be loaded using load inside starlark scripts
func WithTestFlags ¶
func WithTestFlags(flags func(flagsSet *pflag.FlagSet)) ExecuteOption
WithTestFlags adds global command line options to apply, delete and test
func WithTestK8s ¶
WithTestK8s overrides constructor for k8s
type ExecuteOptions ¶
type ExecuteOptions struct {
// contains filtered or unexported fields
}
ExecuteOptions -
Click to show internal directories.
Click to hide internal directories.