fake

package
v1.14.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: Apache-2.0, 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 FakeFischers

type FakeFischers struct {
	Fake *FakeWardleV1alpha1
}

FakeFischers implements FischerInterface

func (*FakeFischers) Create

func (c *FakeFischers) Create(fischer *v1alpha1.Fischer) (result *v1alpha1.Fischer, err error)

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

func (*FakeFischers) Delete

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

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

func (*FakeFischers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFischers) Get

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

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

func (*FakeFischers) List

func (c *FakeFischers) List(opts v1.ListOptions) (result *v1alpha1.FischerList, err error)

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

func (*FakeFischers) Patch

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

Patch applies the patch and returns the patched fischer.

func (*FakeFischers) Update

func (c *FakeFischers) Update(fischer *v1alpha1.Fischer) (result *v1alpha1.Fischer, err error)

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

func (*FakeFischers) Watch

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

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

type FakeFlunders

type FakeFlunders struct {
	Fake *FakeWardleV1alpha1
	// contains filtered or unexported fields
}

FakeFlunders implements FlunderInterface

func (*FakeFlunders) Create

func (c *FakeFlunders) Create(flunder *v1alpha1.Flunder) (result *v1alpha1.Flunder, err error)

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

func (*FakeFlunders) Delete

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

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

func (*FakeFlunders) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFlunders) Get

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

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

func (*FakeFlunders) List

func (c *FakeFlunders) List(opts v1.ListOptions) (result *v1alpha1.FlunderList, err error)

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

func (*FakeFlunders) Patch

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

Patch applies the patch and returns the patched flunder.

func (*FakeFlunders) Update

func (c *FakeFlunders) Update(flunder *v1alpha1.Flunder) (result *v1alpha1.Flunder, err error)

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

func (*FakeFlunders) UpdateStatus

func (c *FakeFlunders) UpdateStatus(flunder *v1alpha1.Flunder) (*v1alpha1.Flunder, error)

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

func (*FakeFlunders) Watch

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

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

type FakeWardleV1alpha1

type FakeWardleV1alpha1 struct {
	*testing.Fake
}

func (*FakeWardleV1alpha1) Fischers

func (*FakeWardleV1alpha1) Flunders

func (c *FakeWardleV1alpha1) Flunders(namespace string) v1alpha1.FlunderInterface

func (*FakeWardleV1alpha1) RESTClient

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