fake

package
v0.0.0-...-7f8ae64 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2018 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 FakeHarvesters

type FakeHarvesters struct {
	Fake *FakeKubereplayV1alpha1
	// contains filtered or unexported fields
}

FakeHarvesters implements HarvesterInterface

func (*FakeHarvesters) Create

func (c *FakeHarvesters) Create(harvester *v1alpha1.Harvester) (result *v1alpha1.Harvester, err error)

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

func (*FakeHarvesters) Delete

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

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

func (*FakeHarvesters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHarvesters) Get

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

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

func (*FakeHarvesters) List

func (c *FakeHarvesters) List(opts v1.ListOptions) (result *v1alpha1.HarvesterList, err error)

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

func (*FakeHarvesters) Patch

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

Patch applies the patch and returns the patched harvester.

func (*FakeHarvesters) Update

func (c *FakeHarvesters) Update(harvester *v1alpha1.Harvester) (result *v1alpha1.Harvester, err error)

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

func (*FakeHarvesters) UpdateStatus

func (c *FakeHarvesters) UpdateStatus(harvester *v1alpha1.Harvester) (*v1alpha1.Harvester, error)

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

func (*FakeHarvesters) Watch

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

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

type FakeKubereplayV1alpha1

type FakeKubereplayV1alpha1 struct {
	*testing.Fake
}

func (*FakeKubereplayV1alpha1) Harvesters

func (c *FakeKubereplayV1alpha1) Harvesters(namespace string) v1alpha1.HarvesterInterface

func (*FakeKubereplayV1alpha1) RESTClient

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

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

func (*FakeKubereplayV1alpha1) Refineries

func (c *FakeKubereplayV1alpha1) Refineries(namespace string) v1alpha1.RefineryInterface

type FakeRefineries

type FakeRefineries struct {
	Fake *FakeKubereplayV1alpha1
	// contains filtered or unexported fields
}

FakeRefineries implements RefineryInterface

func (*FakeRefineries) Create

func (c *FakeRefineries) Create(refinery *v1alpha1.Refinery) (result *v1alpha1.Refinery, err error)

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

func (*FakeRefineries) Delete

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

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

func (*FakeRefineries) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRefineries) Get

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

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

func (*FakeRefineries) List

func (c *FakeRefineries) List(opts v1.ListOptions) (result *v1alpha1.RefineryList, err error)

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

func (*FakeRefineries) Patch

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

Patch applies the patch and returns the patched refinery.

func (*FakeRefineries) Update

func (c *FakeRefineries) Update(refinery *v1alpha1.Refinery) (result *v1alpha1.Refinery, err error)

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

func (*FakeRefineries) UpdateStatus

func (c *FakeRefineries) UpdateStatus(refinery *v1alpha1.Refinery) (*v1alpha1.Refinery, error)

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

func (*FakeRefineries) Watch

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

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

Jump to

Keyboard shortcuts

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