buildrun

package
v0.0.0-...-55ce2e8 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package buildrun contains the cobra.Command, flags, and the actual interactions to be made on the API server for BuildRun resources. It implements SubCommand interface.

Index

Constants

View Source
const BuildRunKind = "BuildRun"

BuildRunKind BuildRun API resource kind.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildRun

type BuildRun struct {
	// contains filtered or unexported fields
}

BuildRun implements SubCommand interface, focusing on creating BuildRun resources.

func NewCreateBuildRun

func NewCreateBuildRun() *BuildRun

NewCreateBuildRun represents the "create build-run" sub-command.

func NewDeleteBuildRun

func NewDeleteBuildRun() *BuildRun

NewDeleteBuildRun represents the "delete build-run" sub-command.

func NewRunBuild

func NewRunBuild() *BuildRun

NewRunBuild represents the "run build" sub-command.

func (*BuildRun) Cmd

func (b *BuildRun) Cmd() *cobra.Command

Cmd share cobra Command instance.

func (*BuildRun) Complete

func (b *BuildRun) Complete(client dynamic.Interface, ns string, args []string) error

Complete the current BuildRun instance by validating and organizing args into attributes. When a "build-run" only the name is employed, while on a "build" the name is used for build-ref name.

func (*BuildRun) Run

func (b *BuildRun) Run(client dynamic.Interface, ns string) error

Run execute the primary logic, it creates a build-run resource in the cluster.

func (*BuildRun) Validate

func (b *BuildRun) Validate() error

Validate apply validation logic against instantiated BuildRun and its spec.

Jump to

Keyboard shortcuts

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