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