build

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Name          string
	GenerateName  string
	Namespace     string
	Source        string
	Timeout       string
	Revision      string
	Buildtemplate string
	Args          []string
	Wait          bool
}

Build structure represents knative build object

func (*Build) Delete added in v0.0.12

func (b *Build) Delete(clientset *client.ConfigSet) error

Delete removes knative build object

func (*Build) Deploy

func (b *Build) Deploy(clientset *client.ConfigSet) (string, error)

Deploy uses Build structure to generate and deploy knative build

func (*Build) Get

func (b *Build) Get(clientset *client.ConfigSet) (*buildv1alpha1.Build, error)

Get returns k8s object

func (*Build) GetObject added in v0.1.1

func (b *Build) GetObject(build *buildv1alpha1.Build) printer.Object

GetObject converts k8s object into printable structure

func (*Build) GetTable added in v0.1.1

func (b *Build) GetTable(list *buildv1alpha1.BuildList) printer.Table

GetTable converts k8s list instance into printable object

func (*Build) List

func (b *Build) List(clientset *client.ConfigSet) (*buildv1alpha1.BuildList, error)

List returns list of knative build objects

func (*Build) SetOwner added in v0.0.12

func (b *Build) SetOwner(clientset *client.ConfigSet, owner metav1.OwnerReference) error

SetOwner sets passed owner object as owner reference in Build structure

Jump to

Keyboard shortcuts

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