command

package
v0.9.20 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(pf *model.ProjectFactory) error

Types

type Apply

type Apply struct {
	Command

	Wait       model.WaitUntil
	KeepAlive  time.Duration
	Predicate  common.EvaluatingPredicate
	DryRun     model.DryRun
	DryRunOn   model.DryRunOn
	StageRange model.StageRange
	Cleanup    bool
}

func (*Apply) ConfigureCliCommands

func (instance *Apply) ConfigureCliCommands(context string, hc common.HasCommands, _ string) error

func (*Apply) RunWithArguments

func (instance *Apply) RunWithArguments(arguments Arguments) error

type Arguments

type Arguments struct {
	Project       *model.Project
	Runtime       kubernetes.Runtime
	DynamicClient dynamic.Interface
}

type Cleanup added in v0.6.0

type Cleanup struct {
	Command
}

func (*Cleanup) ConfigureCliCommands added in v0.6.0

func (instance *Cleanup) ConfigureCliCommands(context string, hc common.HasCommands, _ string) error

func (*Cleanup) RunWithArguments added in v0.6.0

func (instance *Cleanup) RunWithArguments(arguments Arguments) error

type Command

type Command struct {
	ProjectFactory *model.ProjectFactory
	Parent         RunnableConsumingCommandArguments
}

func (*Command) ExecuteFromCli

func (instance *Command) ExecuteFromCli(*kingpin.ParseContext) error

func (*Command) Init

func (instance *Command) Init(pf *model.ProjectFactory) error

func (*Command) Run

func (instance *Command) Run() error

type Contexts

type Contexts struct{}

func (*Contexts) ConfigureCliCommands

func (instance *Contexts) ConfigureCliCommands(context string, hc common.HasCommands, version string) error

func (*Contexts) Run

func (instance *Contexts) Run() error

type Delete added in v0.6.0

type Delete struct {
	Command
}

func (*Delete) ConfigureCliCommands added in v0.6.0

func (instance *Delete) ConfigureCliCommands(context string, hc common.HasCommands, _ string) error

func (*Delete) RunWithArguments added in v0.6.0

func (instance *Delete) RunWithArguments(arguments Arguments) error

type Evaluate

type Evaluate struct {
	Command

	SourceHint bool
	Predicate  common.EvaluatingPredicate
}

func (*Evaluate) ConfigureCliCommands

func (instance *Evaluate) ConfigureCliCommands(context string, hc common.HasCommands, _ string) error

func (*Evaluate) RunWithArguments

func (instance *Evaluate) RunWithArguments(arguments Arguments) error

type Get

type Get struct {
	Command

	Predicate  common.EvaluatingPredicate
	SourceHint bool
}

func (*Get) ConfigureCliCommands

func (instance *Get) ConfigureCliCommands(context string, hc common.HasCommands, _ string) error

func (*Get) RunWithArguments

func (instance *Get) RunWithArguments(arguments Arguments) error

type Initializable

type Initializable interface {
	Init(pf *model.ProjectFactory) error
}

func RegisterInitializable

func RegisterInitializable(initializable Initializable) Initializable

type Render

type Render struct {
	Command

	TemplateFile string
	SourceHint   bool
}

func (*Render) ConfigureCliCommands

func (instance *Render) ConfigureCliCommands(context string, hc common.HasCommands, version string) error

func (*Render) RunWithArguments

func (instance *Render) RunWithArguments(arguments Arguments) error

type RunnableConsumingCommandArguments

type RunnableConsumingCommandArguments interface {
	RunWithArguments(args Arguments) error
}

type Show

type Show struct {
	Command
}

func (*Show) ConfigureCliCommands

func (instance *Show) ConfigureCliCommands(context string, hc common.HasCommands, version string) error

type ShowTemplate

type ShowTemplate struct {
	Command
}

func (*ShowTemplate) ConfigureCliCommands

func (instance *ShowTemplate) ConfigureCliCommands(context string, hc common.HasCommands, version string) error

type ShowTemplateFulltextTerm

type ShowTemplateFulltextTerm struct {
	Regexp *regexp.Regexp
}

func (*ShowTemplateFulltextTerm) Set

func (instance *ShowTemplateFulltextTerm) Set(plain string) error

func (ShowTemplateFulltextTerm) String

func (instance ShowTemplateFulltextTerm) String() string

type ShowTemplateFunctions

type ShowTemplateFunctions struct {
	Output              ShowTemplateFunctionsOutput
	FulltextSearchTerm  ShowTemplateFulltextTerm
	FunctionNameFilters []string
}

func (*ShowTemplateFunctions) ConfigureCliCommands

func (instance *ShowTemplateFunctions) ConfigureCliCommands(context string, hc common.HasCommands, version string) error

func (*ShowTemplateFunctions) ExecuteFromCli

func (instance *ShowTemplateFunctions) ExecuteFromCli(_ *kingpin.ParseContext) error

type ShowTemplateFunctionsOutput

type ShowTemplateFunctionsOutput string

func (*ShowTemplateFunctionsOutput) Set

func (instance *ShowTemplateFunctionsOutput) Set(plain string) error

func (ShowTemplateFunctionsOutput) String

func (instance ShowTemplateFunctionsOutput) String() string

type Values

type Values struct {
	Command
}

func (*Values) ConfigureCliCommands

func (instance *Values) ConfigureCliCommands(context string, hc common.HasCommands, version string) error

func (*Values) RunWithArguments

func (instance *Values) RunWithArguments(arguments Arguments) error

type Wrapper

type Wrapper struct {
	Command

	TargetDirectory string
	Version         string
}

func (*Wrapper) ConfigureCliCommands

func (instance *Wrapper) ConfigureCliCommands(context string, hc common.HasCommands, version string) error

Jump to

Keyboard shortcuts

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