cancelbuild

package
v3.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const CancelBuildRecommendedCommandName = "cancel-build"

CancelBuildRecommendedCommandName is the recommended command name.

Variables

This section is empty.

Functions

func NewCmdCancelBuild

func NewCmdCancelBuild(name, baseName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewCmdCancelBuild implements the OpenShift cli cancel-build command

Types

type CancelBuildOptions

type CancelBuildOptions struct {
	DumpLogs   bool
	Restart    bool
	States     []string
	Namespace  string
	BuildNames []string

	HasError                bool
	ReportError             func(error)
	PrinterCancel           printers.ResourcePrinter
	PrinterCancelInProgress printers.ResourcePrinter
	PrinterRestart          printers.ResourcePrinter
	Mapper                  meta.RESTMapper
	Client                  buildtv1client.BuildV1Interface
	BuildClient             buildtv1client.BuildInterface
	BuildLister             buildlisterv1.BuildLister

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

CancelBuildOptions contains all the options for running the CancelBuild cli command.

func NewCancelBuildOptions

func NewCancelBuildOptions(streams genericclioptions.IOStreams) *CancelBuildOptions

func (*CancelBuildOptions) Complete

func (o *CancelBuildOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options.

func (*CancelBuildOptions) RunCancelBuild

func (o *CancelBuildOptions) RunCancelBuild() error

RunCancelBuild implements all the necessary functionality for CancelBuild.

func (*CancelBuildOptions) Validate

func (o *CancelBuildOptions) Validate() error

Jump to

Keyboard shortcuts

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