Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeDropletV1alpha1
- type FakeDroplets
- func (c *FakeDroplets) Create(ctx context.Context, droplet *v1alpha1.Droplet, opts v1.CreateOptions) (result *v1alpha1.Droplet, err error)
- func (c *FakeDroplets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeDroplets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeDroplets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Droplet, err error)
- func (c *FakeDroplets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.DropletList, err error)
- func (c *FakeDroplets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Droplet, err error)
- func (c *FakeDroplets) Update(ctx context.Context, droplet *v1alpha1.Droplet, opts v1.UpdateOptions) (result *v1alpha1.Droplet, err error)
- func (c *FakeDroplets) UpdateStatus(ctx context.Context, droplet *v1alpha1.Droplet, opts v1.UpdateOptions) (*v1alpha1.Droplet, error)
- func (c *FakeDroplets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeSnapshots
- func (c *FakeSnapshots) Create(ctx context.Context, snapshot *v1alpha1.Snapshot, opts v1.CreateOptions) (result *v1alpha1.Snapshot, err error)
- func (c *FakeSnapshots) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeSnapshots) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeSnapshots) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Snapshot, err error)
- func (c *FakeSnapshots) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SnapshotList, err error)
- func (c *FakeSnapshots) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Snapshot, err error)
- func (c *FakeSnapshots) Update(ctx context.Context, snapshot *v1alpha1.Snapshot, opts v1.UpdateOptions) (result *v1alpha1.Snapshot, err error)
- func (c *FakeSnapshots) UpdateStatus(ctx context.Context, snapshot *v1alpha1.Snapshot, opts v1.UpdateOptions) (*v1alpha1.Snapshot, error)
- func (c *FakeSnapshots) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeDropletV1alpha1 ¶
func (*FakeDropletV1alpha1) Droplets ¶
func (c *FakeDropletV1alpha1) Droplets(namespace string) v1alpha1.DropletInterface
func (*FakeDropletV1alpha1) RESTClient ¶
func (c *FakeDropletV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeDropletV1alpha1) Snapshots ¶
func (c *FakeDropletV1alpha1) Snapshots(namespace string) v1alpha1.SnapshotInterface
type FakeDroplets ¶
type FakeDroplets struct { Fake *FakeDropletV1alpha1 // contains filtered or unexported fields }
FakeDroplets implements DropletInterface
func (*FakeDroplets) Create ¶
func (c *FakeDroplets) Create(ctx context.Context, droplet *v1alpha1.Droplet, opts v1.CreateOptions) (result *v1alpha1.Droplet, err error)
Create takes the representation of a droplet and creates it. Returns the server's representation of the droplet, and an error, if there is any.
func (*FakeDroplets) Delete ¶
func (c *FakeDroplets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the droplet and deletes it. Returns an error if one occurs.
func (*FakeDroplets) DeleteCollection ¶
func (c *FakeDroplets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeDroplets) Get ¶
func (c *FakeDroplets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Droplet, err error)
Get takes name of the droplet, and returns the corresponding droplet object, and an error if there is any.
func (*FakeDroplets) List ¶
func (c *FakeDroplets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.DropletList, err error)
List takes label and field selectors, and returns the list of Droplets that match those selectors.
func (*FakeDroplets) Patch ¶
func (c *FakeDroplets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Droplet, err error)
Patch applies the patch and returns the patched droplet.
func (*FakeDroplets) Update ¶
func (c *FakeDroplets) Update(ctx context.Context, droplet *v1alpha1.Droplet, opts v1.UpdateOptions) (result *v1alpha1.Droplet, err error)
Update takes the representation of a droplet and updates it. Returns the server's representation of the droplet, and an error, if there is any.
func (*FakeDroplets) UpdateStatus ¶
func (c *FakeDroplets) UpdateStatus(ctx context.Context, droplet *v1alpha1.Droplet, opts v1.UpdateOptions) (*v1alpha1.Droplet, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeDroplets) Watch ¶
func (c *FakeDroplets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested droplets.
type FakeSnapshots ¶
type FakeSnapshots struct { Fake *FakeDropletV1alpha1 // contains filtered or unexported fields }
FakeSnapshots implements SnapshotInterface
func (*FakeSnapshots) Create ¶
func (c *FakeSnapshots) Create(ctx context.Context, snapshot *v1alpha1.Snapshot, opts v1.CreateOptions) (result *v1alpha1.Snapshot, err error)
Create takes the representation of a snapshot and creates it. Returns the server's representation of the snapshot, and an error, if there is any.
func (*FakeSnapshots) Delete ¶
func (c *FakeSnapshots) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the snapshot and deletes it. Returns an error if one occurs.
func (*FakeSnapshots) DeleteCollection ¶
func (c *FakeSnapshots) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeSnapshots) Get ¶
func (c *FakeSnapshots) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Snapshot, err error)
Get takes name of the snapshot, and returns the corresponding snapshot object, and an error if there is any.
func (*FakeSnapshots) List ¶
func (c *FakeSnapshots) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SnapshotList, err error)
List takes label and field selectors, and returns the list of Snapshots that match those selectors.
func (*FakeSnapshots) Patch ¶
func (c *FakeSnapshots) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Snapshot, err error)
Patch applies the patch and returns the patched snapshot.
func (*FakeSnapshots) Update ¶
func (c *FakeSnapshots) Update(ctx context.Context, snapshot *v1alpha1.Snapshot, opts v1.UpdateOptions) (result *v1alpha1.Snapshot, err error)
Update takes the representation of a snapshot and updates it. Returns the server's representation of the snapshot, and an error, if there is any.
func (*FakeSnapshots) UpdateStatus ¶
func (c *FakeSnapshots) UpdateStatus(ctx context.Context, snapshot *v1alpha1.Snapshot, opts v1.UpdateOptions) (*v1alpha1.Snapshot, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeSnapshots) Watch ¶
func (c *FakeSnapshots) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested snapshots.