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