fake

package
Version: v0.0.0-...-3763dc7 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 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 FakePizzas

type FakePizzas struct {
	Fake *FakeRestaurantV1beta1
	// contains filtered or unexported fields
}

FakePizzas implements PizzaInterface

func (*FakePizzas) Create

func (c *FakePizzas) Create(pizza *v1beta1.Pizza) (result *v1beta1.Pizza, err error)

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

func (*FakePizzas) Delete

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

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

func (*FakePizzas) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePizzas) Get

func (c *FakePizzas) Get(name string, options v1.GetOptions) (result *v1beta1.Pizza, err error)

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

func (*FakePizzas) List

func (c *FakePizzas) List(opts v1.ListOptions) (result *v1beta1.PizzaList, err error)

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

func (*FakePizzas) Patch

func (c *FakePizzas) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Pizza, err error)

Patch applies the patch and returns the patched pizza.

func (*FakePizzas) Update

func (c *FakePizzas) Update(pizza *v1beta1.Pizza) (result *v1beta1.Pizza, err error)

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

func (*FakePizzas) UpdateStatus

func (c *FakePizzas) UpdateStatus(pizza *v1beta1.Pizza) (*v1beta1.Pizza, error)

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

func (*FakePizzas) Watch

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

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

type FakeRestaurantV1beta1

type FakeRestaurantV1beta1 struct {
	*testing.Fake
}

func (*FakeRestaurantV1beta1) Pizzas

func (c *FakeRestaurantV1beta1) Pizzas(namespace string) v1beta1.PizzaInterface

func (*FakeRestaurantV1beta1) RESTClient

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