buildtemplate

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: Apache-2.0 Imports: 10 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
	RegistrySecret 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) List

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