Documentation ¶
Overview ¶
Package buildrun contains types and functions for buildrun cobra sub-command
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CancelCommand ¶
type CancelCommand struct {
// contains filtered or unexported fields
}
CancelCommand contains data input from user for delete sub-command
func (*CancelCommand) Cmd ¶
func (c *CancelCommand) Cmd() *cobra.Command
Cmd returns cobra command object
func (*CancelCommand) Complete ¶
func (c *CancelCommand) Complete(_ *params.Params, _ *genericclioptions.IOStreams, args []string) error
Complete fills in data provided by user
func (*CancelCommand) Run ¶
func (c *CancelCommand) Run(params *params.Params, ioStreams *genericclioptions.IOStreams) error
Run executes cancel sub-command logic
func (*CancelCommand) Validate ¶
func (c *CancelCommand) Validate() error
Validate validates data input by user
type CreateCommand ¶
type CreateCommand struct {
// contains filtered or unexported fields
}
CreateCommand reprents the build's create subcommand.
func (*CreateCommand) Cmd ¶
func (c *CreateCommand) Cmd() *cobra.Command
Cmd returns cobra.Command object of the create sub-command.
func (*CreateCommand) Complete ¶
func (c *CreateCommand) Complete(_ *params.Params, _ *genericclioptions.IOStreams, args []string) error
Complete checks if the arguments is informing the BuildRun name.
func (*CreateCommand) Run ¶
func (c *CreateCommand) Run(params *params.Params, ioStreams *genericclioptions.IOStreams) error
Run executes the creation of BuildRun object.
func (*CreateCommand) Validate ¶
func (c *CreateCommand) Validate() error
Validate makes sure a name is informed.
type DeleteCommand ¶
type DeleteCommand struct {
// contains filtered or unexported fields
}
DeleteCommand contains data input from user for delete sub-command
func (*DeleteCommand) Cmd ¶
func (c *DeleteCommand) Cmd() *cobra.Command
Cmd returns cobra command object
func (*DeleteCommand) Complete ¶
func (c *DeleteCommand) Complete(_ *params.Params, _ *genericclioptions.IOStreams, args []string) error
Complete fills in data provided by user
func (*DeleteCommand) Run ¶
func (c *DeleteCommand) Run(params *params.Params, ioStreams *genericclioptions.IOStreams) error
Run executes delete sub-command logic
func (*DeleteCommand) Validate ¶
func (c *DeleteCommand) Validate() error
Validate validates data input by user
type ListCommand ¶
type ListCommand struct {
// contains filtered or unexported fields
}
ListCommand contains data input from user for list sub-command
func (*ListCommand) Cmd ¶
func (c *ListCommand) Cmd() *cobra.Command
Cmd returns cobra command object
func (*ListCommand) Complete ¶
func (c *ListCommand) Complete(_ *params.Params, _ *genericclioptions.IOStreams, _ []string) error
Complete fills in data provided by user
func (*ListCommand) Run ¶
func (c *ListCommand) Run(params *params.Params, io *genericclioptions.IOStreams) error
Run executes list sub-command logic
func (*ListCommand) Validate ¶
func (c *ListCommand) Validate() error
Validate validates data input by user
type LogsCommand ¶
type LogsCommand struct {
// contains filtered or unexported fields
}
LogsCommand contains data input from user for logs sub-command
func (*LogsCommand) Cmd ¶
func (c *LogsCommand) Cmd() *cobra.Command
Cmd returns cobra command object
func (*LogsCommand) Complete ¶
func (c *LogsCommand) Complete(params *params.Params, ioStreams *genericclioptions.IOStreams, args []string) error
Complete fills in data provided by user
func (*LogsCommand) Run ¶
func (c *LogsCommand) Run(params *params.Params, ioStreams *genericclioptions.IOStreams) error
Run executes logs sub-command logic
func (*LogsCommand) Validate ¶
func (c *LogsCommand) Validate() error
Validate validates data input by user