buildrun

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

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

func Command

func Command(p *params.Params, ioStreams *genericclioptions.IOStreams) *cobra.Command

Command represents "shp buildrun" sub-command.

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

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

Jump to

Keyboard shortcuts

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