fake

package
v0.0.0-...-66148d8 Latest Latest
Warning

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

Go to latest
Published: May 1, 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 FakePerfJobs

type FakePerfJobs struct {
	Fake *FakePerfV1alpha1
	// contains filtered or unexported fields
}

FakePerfJobs implements PerfJobInterface

func (*FakePerfJobs) Create

func (c *FakePerfJobs) Create(perfJob *v1alpha1.PerfJob) (result *v1alpha1.PerfJob, err error)

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

func (*FakePerfJobs) Delete

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

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

func (*FakePerfJobs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePerfJobs) Get

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

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

func (*FakePerfJobs) List

func (c *FakePerfJobs) List(opts v1.ListOptions) (result *v1alpha1.PerfJobList, err error)

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

func (*FakePerfJobs) Patch

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

Patch applies the patch and returns the patched perfJob.

func (*FakePerfJobs) Update

func (c *FakePerfJobs) Update(perfJob *v1alpha1.PerfJob) (result *v1alpha1.PerfJob, err error)

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

func (*FakePerfJobs) UpdateStatus

func (c *FakePerfJobs) UpdateStatus(perfJob *v1alpha1.PerfJob) (*v1alpha1.PerfJob, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakePerfJobs) Watch

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

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

type FakePerfV1alpha1

type FakePerfV1alpha1 struct {
	*testing.Fake
}

func (*FakePerfV1alpha1) PerfJobs

func (c *FakePerfV1alpha1) PerfJobs(namespace string) v1alpha1.PerfJobInterface

func (*FakePerfV1alpha1) RESTClient

func (c *FakePerfV1alpha1) 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