fake

package
Version: v0.0.0-...-1f3cceb Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBuildJobs

type FakeBuildJobs struct {
	Fake *FakeCbiV1alpha1
	// contains filtered or unexported fields
}

FakeBuildJobs implements BuildJobInterface

func (*FakeBuildJobs) Create

func (c *FakeBuildJobs) Create(buildJob *v1alpha1.BuildJob) (result *v1alpha1.BuildJob, err error)

Create takes the representation of a buildJob and creates it. Returns the server's representation of the buildJob, and an error, if there is any.

func (*FakeBuildJobs) Delete

func (c *FakeBuildJobs) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the buildJob and deletes it. Returns an error if one occurs.

func (*FakeBuildJobs) DeleteCollection

func (c *FakeBuildJobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeBuildJobs) Get

func (c *FakeBuildJobs) Get(name string, options v1.GetOptions) (result *v1alpha1.BuildJob, err error)

Get takes name of the buildJob, and returns the corresponding buildJob object, and an error if there is any.

func (*FakeBuildJobs) List

func (c *FakeBuildJobs) List(opts v1.ListOptions) (result *v1alpha1.BuildJobList, err error)

List takes label and field selectors, and returns the list of BuildJobs that match those selectors.

func (*FakeBuildJobs) Patch

func (c *FakeBuildJobs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.BuildJob, err error)

Patch applies the patch and returns the patched buildJob.

func (*FakeBuildJobs) Update

func (c *FakeBuildJobs) Update(buildJob *v1alpha1.BuildJob) (result *v1alpha1.BuildJob, err error)

Update takes the representation of a buildJob and updates it. Returns the server's representation of the buildJob, and an error, if there is any.

func (*FakeBuildJobs) Watch

func (c *FakeBuildJobs) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested buildJobs.

type FakeCbiV1alpha1

type FakeCbiV1alpha1 struct {
	*testing.Fake
}

func (*FakeCbiV1alpha1) BuildJobs

func (c *FakeCbiV1alpha1) BuildJobs(namespace string) v1alpha1.BuildJobInterface

func (*FakeCbiV1alpha1) RESTClient

func (c *FakeCbiV1alpha1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

Jump to

Keyboard shortcuts

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