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