Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeSnapshotV1alpha1
- 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 FakeSnapshotV1alpha1 ¶
func (*FakeSnapshotV1alpha1) RESTClient ¶
func (c *FakeSnapshotV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeSnapshotV1alpha1) Snapshots ¶
func (c *FakeSnapshotV1alpha1) Snapshots(namespace string) v1alpha1.SnapshotInterface
type FakeSnapshots ¶
type FakeSnapshots struct { Fake *FakeSnapshotV1alpha1 // 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.