Documentation ¶
Index ¶
- func NewCmdStartBuild(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func WaitForBuildComplete(c buildclient.BuildResourceInterface, 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 buildclient.BuildResourceInterface, name string) error
WaitForBuildComplete waits for a build identified by the name to complete
Types ¶
type StartBuildOptions ¶
type StartBuildOptions struct { 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 buildclient.BuildInterface BuildLogClient buildclientinternalmanual.BuildLogInterface ClientConfig *restclient.Config AsBinary bool ShortOutput bool EnvVar []kapi.EnvVar BuildArgs []kapi.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.