buildtemplate

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exist added in v0.0.12

func Exist(clientset *client.ConfigSet, name string) bool

Exist returns true if BuildTemplate with provided name is available in current namespace

Types

type Buildtemplate

type Buildtemplate struct {
	Name      string
	Namespace string
	File      string
}

Buildtemplate contains information about knative buildtemplate definition

func (*Buildtemplate) Clone

Clone accepts knative BuildTemplate object and creates a copy of this buildtemplate with random name suffix

func (*Buildtemplate) Delete

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

BuildTemplate removes knative buildtemplate

func (*Buildtemplate) Deploy

func (b *Buildtemplate) Deploy(clientset *client.ConfigSet) (*buildv1alpha1.BuildTemplate, error)

Deploy deploys knative buildtemplate either from local file or by its URL

func (*Buildtemplate) Get

Get returns knative BuildTemplate object by its name and namespace

func (*Buildtemplate) GetObject added in v0.1.1

func (bt *Buildtemplate) GetObject(buildtemplate *buildv1alpha1.BuildTemplate) printer.Object

GetObject converts k8s object into printable structure

func (*Buildtemplate) GetTable added in v0.1.1

GetTable converts k8s list instance into printable object

func (*Buildtemplate) List

List returns k8s list object

func (*Buildtemplate) SetOwner added in v0.0.12

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

SetOwner accepts onwer object reference and updates installed Buildtemplate with this owner

Jump to

Keyboard shortcuts

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