client

package
v3.10.0-rc.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientBuildConfigLister

func NewClientBuildConfigLister(client buildclient.BuildConfigsGetter) buildlister.BuildConfigLister

NewClientBuildConfigLister creates a new build config client that uses an openshift client.

func NewClientBuildLister

func NewClientBuildLister(client buildclient.BuildsGetter) buildlister.BuildLister

NewClientBuildClient creates a new build client that uses an openshift client to update builds

Types

type BuildCloner

type BuildCloner interface {
	Clone(namespace string, request *buildapi.BuildRequest) (*buildapi.Build, error)
}

BuildCloner provides methods for cloning builds

type BuildConfigGetter

type BuildConfigGetter interface {
	Get(namespace, name string, options metav1.GetOptions) (*buildapi.BuildConfig, error)
}

BuildConfigGetter provides methods for getting BuildConfigs

type BuildConfigInstantiator

type BuildConfigInstantiator interface {
	Instantiate(namespace string, request *buildapi.BuildRequest) (*buildapi.Build, error)
}

BuildConfigInstantiator provides methods for instantiating builds from build configs

type BuildConfigInstantiatorClient

type BuildConfigInstantiatorClient struct {
	Client buildclient.BuildInterface
}

TODO: Why we need this, seems like an copy of the client above

func (BuildConfigInstantiatorClient) Instantiate

func (c BuildConfigInstantiatorClient) Instantiate(namespace string, request *buildapi.BuildRequest) (*buildapi.Build, error)

type BuildConfigUpdater

type BuildConfigUpdater interface {
	Update(buildConfig *buildapi.BuildConfig) error
}

BuildConfigUpdater provides methods for updating BuildConfigs

type BuildDeleter

type BuildDeleter interface {
	// DeleteBuild removes the build from OpenShift's storage.
	DeleteBuild(build *buildapi.Build) error
}

BuildDeleter knows how to delete builds from OpenShift.

type BuildLister added in v1.3.0

type BuildLister interface {
	List(namespace string, opts metav1.ListOptions) (*buildapi.BuildList, error)
}

BuildLister provides methods for listing the Builds.

type BuildPatcher

type BuildPatcher interface {
	Patch(namespace, name string, patch []byte) (*buildapi.Build, error)
}

type BuildUpdater

type BuildUpdater interface {
	Update(namespace string, build *buildapi.Build) error
}

BuildUpdater provides methods for updating existing Builds.

type ClientBuildClient

type ClientBuildClient struct {
	Client builds.Interface
}

ClientBuildClient delegates build create and update operations to the OpenShift client interface

func NewClientBuildClient

func NewClientBuildClient(client builds.Interface) *ClientBuildClient

NewClientBuildClient creates a new build client that uses an openshift client to update builds

func (ClientBuildClient) DeleteBuild

func (c ClientBuildClient) DeleteBuild(build *buildapi.Build) error

DeleteBuild deletes a build from OpenShift.

func (ClientBuildClient) List

func (c ClientBuildClient) List(namespace string, opts metav1.ListOptions) (*buildapi.BuildList, error)

List lists the builds using the OpenShift client.

func (ClientBuildClient) Patch

func (c ClientBuildClient) Patch(namespace, name string, patch []byte) (*buildapi.Build, error)

Patch patches builds using the OpenShift client.

func (ClientBuildClient) Update

func (c ClientBuildClient) Update(namespace string, build *buildapi.Build) error

Update updates builds using the OpenShift client.

type ClientBuildClonerClient

type ClientBuildClonerClient struct {
	Client builds.Interface
}

OSClientBuildClonerClient creates a new build client that uses an openshift client to clone builds

func NewClientBuildClonerClient

func NewClientBuildClonerClient(client builds.Interface) *ClientBuildClonerClient

NewOSClientBuildClonerClient creates a new build client that uses an openshift client to clone builds

func (ClientBuildClonerClient) Clone

func (c ClientBuildClonerClient) Clone(namespace string, request *buildapi.BuildRequest) (*buildapi.Build, error)

Clone generates new build for given build name

type ClientBuildConfigClient

type ClientBuildConfigClient struct {
	Client builds.Interface
}

ClientBuildConfigClient delegates get and update operations to the OpenShift client interface

func NewClientBuildConfigClient

func NewClientBuildConfigClient(client builds.Interface) *ClientBuildConfigClient

NewClientBuildConfigClient creates a new build config client that uses an openshift client to create and get BuildConfigs

func (ClientBuildConfigClient) Get

func (c ClientBuildConfigClient) Get(namespace, name string, options metav1.GetOptions) (*buildapi.BuildConfig, error)

Get returns a BuildConfig using the OpenShift client.

func (ClientBuildConfigClient) Update

func (c ClientBuildConfigClient) Update(buildConfig *buildapi.BuildConfig) error

Update updates a BuildConfig using the OpenShift client.

type ClientBuildConfigInstantiatorClient

type ClientBuildConfigInstantiatorClient struct {
	Client builds.Interface
}

ClientBuildConfigInstantiatorClient creates a new build client that uses an openshift client to create builds

func NewClientBuildConfigInstantiatorClient

func NewClientBuildConfigInstantiatorClient(client builds.Interface) *ClientBuildConfigInstantiatorClient

NewClientBuildConfigInstantiatorClient creates a new build client that uses an openshift client to create builds

func (ClientBuildConfigInstantiatorClient) Instantiate

func (c ClientBuildConfigInstantiatorClient) Instantiate(namespace string, request *buildapi.BuildRequest) (*buildapi.Build, error)

Instantiate generates new build for given buildConfig

type ClientBuildConfigLister

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

ClientBuildLister implements the build lister interface over a client

func (*ClientBuildConfigLister) BuildConfigs

func (*ClientBuildConfigLister) List

List lists the builds using the OpenShift client.

type ClientBuildConfigListerNamespacer

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

ClientBuildConfigListerNamespacer implements internalversion lister

func (ClientBuildConfigListerNamespacer) Get

func (ClientBuildConfigListerNamespacer) List

List lists the builds using the OpenShift client.

type ClientBuildLister

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

ClientBuildLister implements the build lister interface over a client

func (*ClientBuildLister) Builds

func (*ClientBuildLister) List

func (c *ClientBuildLister) List(label labels.Selector) ([]*buildapi.Build, error)

List lists the builds using the OpenShift client.

type ClientBuildListerNamespacer

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

ClientBuildClientNamespacer implements internalversion lister

func (ClientBuildListerNamespacer) Get

func (ClientBuildListerNamespacer) List

List lists the builds using the OpenShift client.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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