Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeBirdsV1beta1
- type FakePuffins
- func (c *FakePuffins) Create(puffin *v1beta1.Puffin) (result *v1beta1.Puffin, err error)
- func (c *FakePuffins) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakePuffins) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakePuffins) Get(name string, options v1.GetOptions) (result *v1beta1.Puffin, err error)
- func (c *FakePuffins) List(opts v1.ListOptions) (result *v1beta1.PuffinList, err error)
- func (c *FakePuffins) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Puffin, err error)
- func (c *FakePuffins) Update(puffin *v1beta1.Puffin) (result *v1beta1.Puffin, err error)
- func (c *FakePuffins) UpdateStatus(puffin *v1beta1.Puffin) (*v1beta1.Puffin, error)
- func (c *FakePuffins) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeBirdsV1beta1 ¶
func (*FakeBirdsV1beta1) Puffins ¶
func (c *FakeBirdsV1beta1) Puffins(namespace string) v1beta1.PuffinInterface
func (*FakeBirdsV1beta1) RESTClient ¶
func (c *FakeBirdsV1beta1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakePuffins ¶
type FakePuffins struct { Fake *FakeBirdsV1beta1 // contains filtered or unexported fields }
FakePuffins implements PuffinInterface
func (*FakePuffins) Create ¶
Create takes the representation of a puffin and creates it. Returns the server's representation of the puffin, and an error, if there is any.
func (*FakePuffins) Delete ¶
func (c *FakePuffins) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the puffin and deletes it. Returns an error if one occurs.
func (*FakePuffins) DeleteCollection ¶
func (c *FakePuffins) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePuffins) Get ¶
func (c *FakePuffins) Get(name string, options v1.GetOptions) (result *v1beta1.Puffin, err error)
Get takes name of the puffin, and returns the corresponding puffin object, and an error if there is any.
func (*FakePuffins) List ¶
func (c *FakePuffins) List(opts v1.ListOptions) (result *v1beta1.PuffinList, err error)
List takes label and field selectors, and returns the list of Puffins that match those selectors.
func (*FakePuffins) Patch ¶
func (c *FakePuffins) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Puffin, err error)
Patch applies the patch and returns the patched puffin.
func (*FakePuffins) Update ¶
Update takes the representation of a puffin and updates it. Returns the server's representation of the puffin, and an error, if there is any.
func (*FakePuffins) UpdateStatus ¶
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePuffins) Watch ¶
func (c *FakePuffins) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested puffins.