Documentation ¶
Index ¶
- func NewCmdStartBuild(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func WaitForBuildComplete(c buildv1client.BuildInterface, name string) error
- type StartBuildOptions
- func (o *StartBuildOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, cmdFullName string, args []string) error
- func (o *StartBuildOptions) Run() error
- func (o *StartBuildOptions) RunListBuildWebHooks() error
- func (o *StartBuildOptions) RunStartBuildWebHook() error
- func (o *StartBuildOptions) Validate() error
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) 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
Click to show internal directories.
Click to hide internal directories.