Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakePizzas
- func (c *FakePizzas) Create(pizza *v2alpha1.Pizza) (result *v2alpha1.Pizza, err error)
- func (c *FakePizzas) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakePizzas) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakePizzas) Get(name string, options v1.GetOptions) (result *v2alpha1.Pizza, err error)
- func (c *FakePizzas) List(opts v1.ListOptions) (result *v2alpha1.PizzaList, err error)
- func (c *FakePizzas) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v2alpha1.Pizza, err error)
- func (c *FakePizzas) Update(pizza *v2alpha1.Pizza) (result *v2alpha1.Pizza, err error)
- func (c *FakePizzas) UpdateStatus(pizza *v2alpha1.Pizza) (*v2alpha1.Pizza, error)
- func (c *FakePizzas) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeRestaurantV2alpha1
- type FakeToppings
- func (c *FakeToppings) Create(topping *v2alpha1.Topping) (result *v2alpha1.Topping, err error)
- func (c *FakeToppings) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeToppings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeToppings) Get(name string, options v1.GetOptions) (result *v2alpha1.Topping, err error)
- func (c *FakeToppings) List(opts v1.ListOptions) (result *v2alpha1.ToppingList, err error)
- func (c *FakeToppings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v2alpha1.Topping, err error)
- func (c *FakeToppings) Update(topping *v2alpha1.Topping) (result *v2alpha1.Topping, err error)
- func (c *FakeToppings) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakePizzas ¶
type FakePizzas struct { Fake *FakeRestaurantV2alpha1 // contains filtered or unexported fields }
FakePizzas implements PizzaInterface
func (*FakePizzas) Create ¶
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 *v2alpha1.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 *v2alpha1.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 *v2alpha1.Pizza, err error)
Patch applies the patch and returns the patched pizza.
func (*FakePizzas) Update ¶
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 ¶
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 FakeRestaurantV2alpha1 ¶
func (*FakeRestaurantV2alpha1) Pizzas ¶
func (c *FakeRestaurantV2alpha1) Pizzas(namespace string) v2alpha1.PizzaInterface
func (*FakeRestaurantV2alpha1) RESTClient ¶
func (c *FakeRestaurantV2alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeRestaurantV2alpha1) Toppings ¶
func (c *FakeRestaurantV2alpha1) Toppings() v2alpha1.ToppingInterface
type FakeToppings ¶
type FakeToppings struct {
Fake *FakeRestaurantV2alpha1
}
FakeToppings implements ToppingInterface
func (*FakeToppings) Create ¶
Create takes the representation of a topping and creates it. Returns the server's representation of the topping, and an error, if there is any.
func (*FakeToppings) Delete ¶
func (c *FakeToppings) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the topping and deletes it. Returns an error if one occurs.
func (*FakeToppings) DeleteCollection ¶
func (c *FakeToppings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeToppings) Get ¶
func (c *FakeToppings) Get(name string, options v1.GetOptions) (result *v2alpha1.Topping, err error)
Get takes name of the topping, and returns the corresponding topping object, and an error if there is any.
func (*FakeToppings) List ¶
func (c *FakeToppings) List(opts v1.ListOptions) (result *v2alpha1.ToppingList, err error)
List takes label and field selectors, and returns the list of Toppings that match those selectors.
func (*FakeToppings) Patch ¶
func (c *FakeToppings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v2alpha1.Topping, err error)
Patch applies the patch and returns the patched topping.
func (*FakeToppings) Update ¶
Update takes the representation of a topping and updates it. Returns the server's representation of the topping, and an error, if there is any.
func (*FakeToppings) Watch ¶
func (c *FakeToppings) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested toppings.