Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeSnapshotV1
- func (c *FakeSnapshotV1) RESTClient() rest.Interface
- func (c *FakeSnapshotV1) VolumeSnapshotClasses() v1.VolumeSnapshotClassInterface
- func (c *FakeSnapshotV1) VolumeSnapshotContents() v1.VolumeSnapshotContentInterface
- func (c *FakeSnapshotV1) VolumeSnapshots(namespace string) v1.VolumeSnapshotInterface
- type FakeVolumeSnapshotClasses
- func (c *FakeVolumeSnapshotClasses) Create(ctx context.Context, volumeSnapshotClass *v1.VolumeSnapshotClass, ...) (result *v1.VolumeSnapshotClass, err error)
- func (c *FakeVolumeSnapshotClasses) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *FakeVolumeSnapshotClasses) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (c *FakeVolumeSnapshotClasses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VolumeSnapshotClass, err error)
- func (c *FakeVolumeSnapshotClasses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VolumeSnapshotClassList, err error)
- func (c *FakeVolumeSnapshotClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1.VolumeSnapshotClass, err error)
- func (c *FakeVolumeSnapshotClasses) Update(ctx context.Context, volumeSnapshotClass *v1.VolumeSnapshotClass, ...) (result *v1.VolumeSnapshotClass, err error)
- func (c *FakeVolumeSnapshotClasses) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type FakeVolumeSnapshotContents
- func (c *FakeVolumeSnapshotContents) Create(ctx context.Context, volumeSnapshotContent *v1.VolumeSnapshotContent, ...) (result *v1.VolumeSnapshotContent, err error)
- func (c *FakeVolumeSnapshotContents) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *FakeVolumeSnapshotContents) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (c *FakeVolumeSnapshotContents) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VolumeSnapshotContent, err error)
- func (c *FakeVolumeSnapshotContents) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VolumeSnapshotContentList, err error)
- func (c *FakeVolumeSnapshotContents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1.VolumeSnapshotContent, err error)
- func (c *FakeVolumeSnapshotContents) Update(ctx context.Context, volumeSnapshotContent *v1.VolumeSnapshotContent, ...) (result *v1.VolumeSnapshotContent, err error)
- func (c *FakeVolumeSnapshotContents) UpdateStatus(ctx context.Context, volumeSnapshotContent *v1.VolumeSnapshotContent, ...) (result *v1.VolumeSnapshotContent, err error)
- func (c *FakeVolumeSnapshotContents) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type FakeVolumeSnapshots
- func (c *FakeVolumeSnapshots) Create(ctx context.Context, volumeSnapshot *v1.VolumeSnapshot, ...) (result *v1.VolumeSnapshot, err error)
- func (c *FakeVolumeSnapshots) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *FakeVolumeSnapshots) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (c *FakeVolumeSnapshots) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VolumeSnapshot, err error)
- func (c *FakeVolumeSnapshots) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VolumeSnapshotList, err error)
- func (c *FakeVolumeSnapshots) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1.VolumeSnapshot, err error)
- func (c *FakeVolumeSnapshots) Update(ctx context.Context, volumeSnapshot *v1.VolumeSnapshot, ...) (result *v1.VolumeSnapshot, err error)
- func (c *FakeVolumeSnapshots) UpdateStatus(ctx context.Context, volumeSnapshot *v1.VolumeSnapshot, ...) (result *v1.VolumeSnapshot, err error)
- func (c *FakeVolumeSnapshots) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeSnapshotV1 ¶
func (*FakeSnapshotV1) RESTClient ¶
func (c *FakeSnapshotV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeSnapshotV1) VolumeSnapshotClasses ¶
func (c *FakeSnapshotV1) VolumeSnapshotClasses() v1.VolumeSnapshotClassInterface
func (*FakeSnapshotV1) VolumeSnapshotContents ¶
func (c *FakeSnapshotV1) VolumeSnapshotContents() v1.VolumeSnapshotContentInterface
func (*FakeSnapshotV1) VolumeSnapshots ¶
func (c *FakeSnapshotV1) VolumeSnapshots(namespace string) v1.VolumeSnapshotInterface
type FakeVolumeSnapshotClasses ¶
type FakeVolumeSnapshotClasses struct {
Fake *FakeSnapshotV1
}
FakeVolumeSnapshotClasses implements VolumeSnapshotClassInterface
func (*FakeVolumeSnapshotClasses) Create ¶
func (c *FakeVolumeSnapshotClasses) Create(ctx context.Context, volumeSnapshotClass *v1.VolumeSnapshotClass, opts metav1.CreateOptions) (result *v1.VolumeSnapshotClass, err error)
Create takes the representation of a volumeSnapshotClass and creates it. Returns the server's representation of the volumeSnapshotClass, and an error, if there is any.
func (*FakeVolumeSnapshotClasses) Delete ¶
func (c *FakeVolumeSnapshotClasses) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
Delete takes name of the volumeSnapshotClass and deletes it. Returns an error if one occurs.
func (*FakeVolumeSnapshotClasses) DeleteCollection ¶
func (c *FakeVolumeSnapshotClasses) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeVolumeSnapshotClasses) Get ¶
func (c *FakeVolumeSnapshotClasses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VolumeSnapshotClass, err error)
Get takes name of the volumeSnapshotClass, and returns the corresponding volumeSnapshotClass object, and an error if there is any.
func (*FakeVolumeSnapshotClasses) List ¶
func (c *FakeVolumeSnapshotClasses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VolumeSnapshotClassList, err error)
List takes label and field selectors, and returns the list of VolumeSnapshotClasses that match those selectors.
func (*FakeVolumeSnapshotClasses) Patch ¶
func (c *FakeVolumeSnapshotClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VolumeSnapshotClass, err error)
Patch applies the patch and returns the patched volumeSnapshotClass.
func (*FakeVolumeSnapshotClasses) Update ¶
func (c *FakeVolumeSnapshotClasses) Update(ctx context.Context, volumeSnapshotClass *v1.VolumeSnapshotClass, opts metav1.UpdateOptions) (result *v1.VolumeSnapshotClass, err error)
Update takes the representation of a volumeSnapshotClass and updates it. Returns the server's representation of the volumeSnapshotClass, and an error, if there is any.
func (*FakeVolumeSnapshotClasses) Watch ¶
func (c *FakeVolumeSnapshotClasses) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested volumeSnapshotClasses.
type FakeVolumeSnapshotContents ¶
type FakeVolumeSnapshotContents struct {
Fake *FakeSnapshotV1
}
FakeVolumeSnapshotContents implements VolumeSnapshotContentInterface
func (*FakeVolumeSnapshotContents) Create ¶
func (c *FakeVolumeSnapshotContents) Create(ctx context.Context, volumeSnapshotContent *v1.VolumeSnapshotContent, opts metav1.CreateOptions) (result *v1.VolumeSnapshotContent, err error)
Create takes the representation of a volumeSnapshotContent and creates it. Returns the server's representation of the volumeSnapshotContent, and an error, if there is any.
func (*FakeVolumeSnapshotContents) Delete ¶
func (c *FakeVolumeSnapshotContents) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
Delete takes name of the volumeSnapshotContent and deletes it. Returns an error if one occurs.
func (*FakeVolumeSnapshotContents) DeleteCollection ¶
func (c *FakeVolumeSnapshotContents) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeVolumeSnapshotContents) Get ¶
func (c *FakeVolumeSnapshotContents) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VolumeSnapshotContent, err error)
Get takes name of the volumeSnapshotContent, and returns the corresponding volumeSnapshotContent object, and an error if there is any.
func (*FakeVolumeSnapshotContents) List ¶
func (c *FakeVolumeSnapshotContents) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VolumeSnapshotContentList, err error)
List takes label and field selectors, and returns the list of VolumeSnapshotContents that match those selectors.
func (*FakeVolumeSnapshotContents) Patch ¶
func (c *FakeVolumeSnapshotContents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VolumeSnapshotContent, err error)
Patch applies the patch and returns the patched volumeSnapshotContent.
func (*FakeVolumeSnapshotContents) Update ¶
func (c *FakeVolumeSnapshotContents) Update(ctx context.Context, volumeSnapshotContent *v1.VolumeSnapshotContent, opts metav1.UpdateOptions) (result *v1.VolumeSnapshotContent, err error)
Update takes the representation of a volumeSnapshotContent and updates it. Returns the server's representation of the volumeSnapshotContent, and an error, if there is any.
func (*FakeVolumeSnapshotContents) UpdateStatus ¶
func (c *FakeVolumeSnapshotContents) UpdateStatus(ctx context.Context, volumeSnapshotContent *v1.VolumeSnapshotContent, opts metav1.UpdateOptions) (result *v1.VolumeSnapshotContent, err error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeVolumeSnapshotContents) Watch ¶
func (c *FakeVolumeSnapshotContents) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested volumeSnapshotContents.
type FakeVolumeSnapshots ¶
type FakeVolumeSnapshots struct { Fake *FakeSnapshotV1 // contains filtered or unexported fields }
FakeVolumeSnapshots implements VolumeSnapshotInterface
func (*FakeVolumeSnapshots) Create ¶
func (c *FakeVolumeSnapshots) Create(ctx context.Context, volumeSnapshot *v1.VolumeSnapshot, opts metav1.CreateOptions) (result *v1.VolumeSnapshot, err error)
Create takes the representation of a volumeSnapshot and creates it. Returns the server's representation of the volumeSnapshot, and an error, if there is any.
func (*FakeVolumeSnapshots) Delete ¶
func (c *FakeVolumeSnapshots) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
Delete takes name of the volumeSnapshot and deletes it. Returns an error if one occurs.
func (*FakeVolumeSnapshots) DeleteCollection ¶
func (c *FakeVolumeSnapshots) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeVolumeSnapshots) Get ¶
func (c *FakeVolumeSnapshots) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VolumeSnapshot, err error)
Get takes name of the volumeSnapshot, and returns the corresponding volumeSnapshot object, and an error if there is any.
func (*FakeVolumeSnapshots) List ¶
func (c *FakeVolumeSnapshots) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VolumeSnapshotList, err error)
List takes label and field selectors, and returns the list of VolumeSnapshots that match those selectors.
func (*FakeVolumeSnapshots) Patch ¶
func (c *FakeVolumeSnapshots) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VolumeSnapshot, err error)
Patch applies the patch and returns the patched volumeSnapshot.
func (*FakeVolumeSnapshots) Update ¶
func (c *FakeVolumeSnapshots) Update(ctx context.Context, volumeSnapshot *v1.VolumeSnapshot, opts metav1.UpdateOptions) (result *v1.VolumeSnapshot, err error)
Update takes the representation of a volumeSnapshot and updates it. Returns the server's representation of the volumeSnapshot, and an error, if there is any.
func (*FakeVolumeSnapshots) UpdateStatus ¶
func (c *FakeVolumeSnapshots) UpdateStatus(ctx context.Context, volumeSnapshot *v1.VolumeSnapshot, opts metav1.UpdateOptions) (result *v1.VolumeSnapshot, err error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeVolumeSnapshots) Watch ¶
func (c *FakeVolumeSnapshots) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested volumeSnapshots.