startbuild

package
v4.0.0-alpha.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdStartBuild

func NewCmdStartBuild(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewCmdStartBuild implements the OpenShift cli start-build command

func WaitForBuildComplete

func WaitForBuildComplete(c buildv1client.BuildInterface, name string) error

WaitForBuildComplete waits for a build identified by the name to complete

Types

type StartBuildOptions

type StartBuildOptions struct {
	PrintFlags *genericclioptions.PrintFlags

	Printer printers.ResourcePrinter

	Git git.Repository

	FromBuild    string
	FromWebhook  string
	ListWebhooks string

	Commit      string
	FromFile    string
	FromDir     string
	FromRepo    string
	FromArchive string

	Env  []string
	Args []string

	Follow              bool
	WaitForComplete     bool
	IncrementalOverride bool
	Incremental         bool
	NoCacheOverride     bool
	NoCache             bool
	LogLevel            string

	GitRepository  string
	GitPostReceive string

	Mapper         meta.RESTMapper
	BuildClient    buildv1client.BuildV1Interface
	BuildLogClient buildclientmanual.BuildLogInterface
	ClientConfig   *restclient.Config

	AsBinary    bool
	ShortOutput bool
	EnvVar      []corev1.EnvVar
	BuildArgs   []corev1.EnvVar
	Name        string
	Namespace   string

	genericclioptions.IOStreams
}

func NewStartBuildOptions

func NewStartBuildOptions(streams genericclioptions.IOStreams) *StartBuildOptions

func (*StartBuildOptions) Complete

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

func (*StartBuildOptions) Run

func (o *StartBuildOptions) Run() error

Run contains all the necessary functionality for the OpenShift cli start-build command

func (*StartBuildOptions) RunListBuildWebHooks

func (o *StartBuildOptions) RunListBuildWebHooks() error

RunListBuildWebHooks prints the webhooks for the provided build config.

func (*StartBuildOptions) RunStartBuildWebHook

func (o *StartBuildOptions) RunStartBuildWebHook() error

RunStartBuildWebHook tries to trigger the provided webhook. It will attempt to utilize the current client configuration if the webhook has the same URL.

func (*StartBuildOptions) Validate

func (o *StartBuildOptions) Validate() error

Validate returns validation errors regarding start-build

Jump to

Keyboard shortcuts

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