Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeZFSBackups
- func (c *FakeZFSBackups) Create(ctx context.Context, zFSBackup *zfsv1.ZFSBackup, opts v1.CreateOptions) (result *zfsv1.ZFSBackup, err error)
- func (c *FakeZFSBackups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeZFSBackups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeZFSBackups) Get(ctx context.Context, name string, options v1.GetOptions) (result *zfsv1.ZFSBackup, err error)
- func (c *FakeZFSBackups) List(ctx context.Context, opts v1.ListOptions) (result *zfsv1.ZFSBackupList, err error)
- func (c *FakeZFSBackups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *zfsv1.ZFSBackup, err error)
- func (c *FakeZFSBackups) Update(ctx context.Context, zFSBackup *zfsv1.ZFSBackup, opts v1.UpdateOptions) (result *zfsv1.ZFSBackup, err error)
- func (c *FakeZFSBackups) UpdateStatus(ctx context.Context, zFSBackup *zfsv1.ZFSBackup, opts v1.UpdateOptions) (*zfsv1.ZFSBackup, error)
- func (c *FakeZFSBackups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeZFSNodes
- func (c *FakeZFSNodes) Create(ctx context.Context, zFSNode *zfsv1.ZFSNode, opts v1.CreateOptions) (result *zfsv1.ZFSNode, err error)
- func (c *FakeZFSNodes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeZFSNodes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeZFSNodes) Get(ctx context.Context, name string, options v1.GetOptions) (result *zfsv1.ZFSNode, err error)
- func (c *FakeZFSNodes) List(ctx context.Context, opts v1.ListOptions) (result *zfsv1.ZFSNodeList, err error)
- func (c *FakeZFSNodes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *zfsv1.ZFSNode, err error)
- func (c *FakeZFSNodes) Update(ctx context.Context, zFSNode *zfsv1.ZFSNode, opts v1.UpdateOptions) (result *zfsv1.ZFSNode, err error)
- func (c *FakeZFSNodes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeZFSRestores
- func (c *FakeZFSRestores) Create(ctx context.Context, zFSRestore *zfsv1.ZFSRestore, opts v1.CreateOptions) (result *zfsv1.ZFSRestore, err error)
- func (c *FakeZFSRestores) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeZFSRestores) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeZFSRestores) Get(ctx context.Context, name string, options v1.GetOptions) (result *zfsv1.ZFSRestore, err error)
- func (c *FakeZFSRestores) List(ctx context.Context, opts v1.ListOptions) (result *zfsv1.ZFSRestoreList, err error)
- func (c *FakeZFSRestores) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *zfsv1.ZFSRestore, err error)
- func (c *FakeZFSRestores) Update(ctx context.Context, zFSRestore *zfsv1.ZFSRestore, opts v1.UpdateOptions) (result *zfsv1.ZFSRestore, err error)
- func (c *FakeZFSRestores) UpdateStatus(ctx context.Context, zFSRestore *zfsv1.ZFSRestore, opts v1.UpdateOptions) (*zfsv1.ZFSRestore, error)
- func (c *FakeZFSRestores) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeZFSSnapshots
- func (c *FakeZFSSnapshots) Create(ctx context.Context, zFSSnapshot *zfsv1.ZFSSnapshot, opts v1.CreateOptions) (result *zfsv1.ZFSSnapshot, err error)
- func (c *FakeZFSSnapshots) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeZFSSnapshots) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeZFSSnapshots) Get(ctx context.Context, name string, options v1.GetOptions) (result *zfsv1.ZFSSnapshot, err error)
- func (c *FakeZFSSnapshots) List(ctx context.Context, opts v1.ListOptions) (result *zfsv1.ZFSSnapshotList, err error)
- func (c *FakeZFSSnapshots) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *zfsv1.ZFSSnapshot, err error)
- func (c *FakeZFSSnapshots) Update(ctx context.Context, zFSSnapshot *zfsv1.ZFSSnapshot, opts v1.UpdateOptions) (result *zfsv1.ZFSSnapshot, err error)
- func (c *FakeZFSSnapshots) UpdateStatus(ctx context.Context, zFSSnapshot *zfsv1.ZFSSnapshot, opts v1.UpdateOptions) (*zfsv1.ZFSSnapshot, error)
- func (c *FakeZFSSnapshots) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeZFSVolumes
- func (c *FakeZFSVolumes) Create(ctx context.Context, zFSVolume *zfsv1.ZFSVolume, opts v1.CreateOptions) (result *zfsv1.ZFSVolume, err error)
- func (c *FakeZFSVolumes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeZFSVolumes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeZFSVolumes) Get(ctx context.Context, name string, options v1.GetOptions) (result *zfsv1.ZFSVolume, err error)
- func (c *FakeZFSVolumes) List(ctx context.Context, opts v1.ListOptions) (result *zfsv1.ZFSVolumeList, err error)
- func (c *FakeZFSVolumes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *zfsv1.ZFSVolume, err error)
- func (c *FakeZFSVolumes) Update(ctx context.Context, zFSVolume *zfsv1.ZFSVolume, opts v1.UpdateOptions) (result *zfsv1.ZFSVolume, err error)
- func (c *FakeZFSVolumes) UpdateStatus(ctx context.Context, zFSVolume *zfsv1.ZFSVolume, opts v1.UpdateOptions) (*zfsv1.ZFSVolume, error)
- func (c *FakeZFSVolumes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeZfsV1
- func (c *FakeZfsV1) RESTClient() rest.Interface
- func (c *FakeZfsV1) ZFSBackups(namespace string) v1.ZFSBackupInterface
- func (c *FakeZfsV1) ZFSNodes(namespace string) v1.ZFSNodeInterface
- func (c *FakeZfsV1) ZFSRestores(namespace string) v1.ZFSRestoreInterface
- func (c *FakeZfsV1) ZFSSnapshots(namespace string) v1.ZFSSnapshotInterface
- func (c *FakeZfsV1) ZFSVolumes(namespace string) v1.ZFSVolumeInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeZFSBackups ¶ added in v1.0.0
type FakeZFSBackups struct { Fake *FakeZfsV1 // contains filtered or unexported fields }
FakeZFSBackups implements ZFSBackupInterface
func (*FakeZFSBackups) Create ¶ added in v1.0.0
func (c *FakeZFSBackups) Create(ctx context.Context, zFSBackup *zfsv1.ZFSBackup, opts v1.CreateOptions) (result *zfsv1.ZFSBackup, err error)
Create takes the representation of a zFSBackup and creates it. Returns the server's representation of the zFSBackup, and an error, if there is any.
func (*FakeZFSBackups) Delete ¶ added in v1.0.0
func (c *FakeZFSBackups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the zFSBackup and deletes it. Returns an error if one occurs.
func (*FakeZFSBackups) DeleteCollection ¶ added in v1.0.0
func (c *FakeZFSBackups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeZFSBackups) Get ¶ added in v1.0.0
func (c *FakeZFSBackups) Get(ctx context.Context, name string, options v1.GetOptions) (result *zfsv1.ZFSBackup, err error)
Get takes name of the zFSBackup, and returns the corresponding zFSBackup object, and an error if there is any.
func (*FakeZFSBackups) List ¶ added in v1.0.0
func (c *FakeZFSBackups) List(ctx context.Context, opts v1.ListOptions) (result *zfsv1.ZFSBackupList, err error)
List takes label and field selectors, and returns the list of ZFSBackups that match those selectors.
func (*FakeZFSBackups) Patch ¶ added in v1.0.0
func (c *FakeZFSBackups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *zfsv1.ZFSBackup, err error)
Patch applies the patch and returns the patched zFSBackup.
func (*FakeZFSBackups) Update ¶ added in v1.0.0
func (c *FakeZFSBackups) Update(ctx context.Context, zFSBackup *zfsv1.ZFSBackup, opts v1.UpdateOptions) (result *zfsv1.ZFSBackup, err error)
Update takes the representation of a zFSBackup and updates it. Returns the server's representation of the zFSBackup, and an error, if there is any.
func (*FakeZFSBackups) UpdateStatus ¶ added in v1.0.0
func (c *FakeZFSBackups) UpdateStatus(ctx context.Context, zFSBackup *zfsv1.ZFSBackup, opts v1.UpdateOptions) (*zfsv1.ZFSBackup, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeZFSBackups) Watch ¶ added in v1.0.0
func (c *FakeZFSBackups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested zFSBackups.
type FakeZFSNodes ¶ added in v1.8.0
type FakeZFSNodes struct { Fake *FakeZfsV1 // contains filtered or unexported fields }
FakeZFSNodes implements ZFSNodeInterface
func (*FakeZFSNodes) Create ¶ added in v1.8.0
func (c *FakeZFSNodes) Create(ctx context.Context, zFSNode *zfsv1.ZFSNode, opts v1.CreateOptions) (result *zfsv1.ZFSNode, err error)
Create takes the representation of a zFSNode and creates it. Returns the server's representation of the zFSNode, and an error, if there is any.
func (*FakeZFSNodes) Delete ¶ added in v1.8.0
func (c *FakeZFSNodes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the zFSNode and deletes it. Returns an error if one occurs.
func (*FakeZFSNodes) DeleteCollection ¶ added in v1.8.0
func (c *FakeZFSNodes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeZFSNodes) Get ¶ added in v1.8.0
func (c *FakeZFSNodes) Get(ctx context.Context, name string, options v1.GetOptions) (result *zfsv1.ZFSNode, err error)
Get takes name of the zFSNode, and returns the corresponding zFSNode object, and an error if there is any.
func (*FakeZFSNodes) List ¶ added in v1.8.0
func (c *FakeZFSNodes) List(ctx context.Context, opts v1.ListOptions) (result *zfsv1.ZFSNodeList, err error)
List takes label and field selectors, and returns the list of ZFSNodes that match those selectors.
func (*FakeZFSNodes) Patch ¶ added in v1.8.0
func (c *FakeZFSNodes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *zfsv1.ZFSNode, err error)
Patch applies the patch and returns the patched zFSNode.
func (*FakeZFSNodes) Update ¶ added in v1.8.0
func (c *FakeZFSNodes) Update(ctx context.Context, zFSNode *zfsv1.ZFSNode, opts v1.UpdateOptions) (result *zfsv1.ZFSNode, err error)
Update takes the representation of a zFSNode and updates it. Returns the server's representation of the zFSNode, and an error, if there is any.
func (*FakeZFSNodes) Watch ¶ added in v1.8.0
func (c *FakeZFSNodes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested zFSNodes.
type FakeZFSRestores ¶ added in v1.0.0
type FakeZFSRestores struct { Fake *FakeZfsV1 // contains filtered or unexported fields }
FakeZFSRestores implements ZFSRestoreInterface
func (*FakeZFSRestores) Create ¶ added in v1.0.0
func (c *FakeZFSRestores) Create(ctx context.Context, zFSRestore *zfsv1.ZFSRestore, opts v1.CreateOptions) (result *zfsv1.ZFSRestore, err error)
Create takes the representation of a zFSRestore and creates it. Returns the server's representation of the zFSRestore, and an error, if there is any.
func (*FakeZFSRestores) Delete ¶ added in v1.0.0
func (c *FakeZFSRestores) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the zFSRestore and deletes it. Returns an error if one occurs.
func (*FakeZFSRestores) DeleteCollection ¶ added in v1.0.0
func (c *FakeZFSRestores) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeZFSRestores) Get ¶ added in v1.0.0
func (c *FakeZFSRestores) Get(ctx context.Context, name string, options v1.GetOptions) (result *zfsv1.ZFSRestore, err error)
Get takes name of the zFSRestore, and returns the corresponding zFSRestore object, and an error if there is any.
func (*FakeZFSRestores) List ¶ added in v1.0.0
func (c *FakeZFSRestores) List(ctx context.Context, opts v1.ListOptions) (result *zfsv1.ZFSRestoreList, err error)
List takes label and field selectors, and returns the list of ZFSRestores that match those selectors.
func (*FakeZFSRestores) Patch ¶ added in v1.0.0
func (c *FakeZFSRestores) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *zfsv1.ZFSRestore, err error)
Patch applies the patch and returns the patched zFSRestore.
func (*FakeZFSRestores) Update ¶ added in v1.0.0
func (c *FakeZFSRestores) Update(ctx context.Context, zFSRestore *zfsv1.ZFSRestore, opts v1.UpdateOptions) (result *zfsv1.ZFSRestore, err error)
Update takes the representation of a zFSRestore and updates it. Returns the server's representation of the zFSRestore, and an error, if there is any.
func (*FakeZFSRestores) UpdateStatus ¶ added in v1.0.0
func (c *FakeZFSRestores) UpdateStatus(ctx context.Context, zFSRestore *zfsv1.ZFSRestore, opts v1.UpdateOptions) (*zfsv1.ZFSRestore, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeZFSRestores) Watch ¶ added in v1.0.0
func (c *FakeZFSRestores) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested zFSRestores.
type FakeZFSSnapshots ¶
type FakeZFSSnapshots struct { Fake *FakeZfsV1 // contains filtered or unexported fields }
FakeZFSSnapshots implements ZFSSnapshotInterface
func (*FakeZFSSnapshots) Create ¶
func (c *FakeZFSSnapshots) Create(ctx context.Context, zFSSnapshot *zfsv1.ZFSSnapshot, opts v1.CreateOptions) (result *zfsv1.ZFSSnapshot, err error)
Create takes the representation of a zFSSnapshot and creates it. Returns the server's representation of the zFSSnapshot, and an error, if there is any.
func (*FakeZFSSnapshots) Delete ¶
func (c *FakeZFSSnapshots) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the zFSSnapshot and deletes it. Returns an error if one occurs.
func (*FakeZFSSnapshots) DeleteCollection ¶
func (c *FakeZFSSnapshots) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeZFSSnapshots) Get ¶
func (c *FakeZFSSnapshots) Get(ctx context.Context, name string, options v1.GetOptions) (result *zfsv1.ZFSSnapshot, err error)
Get takes name of the zFSSnapshot, and returns the corresponding zFSSnapshot object, and an error if there is any.
func (*FakeZFSSnapshots) List ¶
func (c *FakeZFSSnapshots) List(ctx context.Context, opts v1.ListOptions) (result *zfsv1.ZFSSnapshotList, err error)
List takes label and field selectors, and returns the list of ZFSSnapshots that match those selectors.
func (*FakeZFSSnapshots) Patch ¶
func (c *FakeZFSSnapshots) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *zfsv1.ZFSSnapshot, err error)
Patch applies the patch and returns the patched zFSSnapshot.
func (*FakeZFSSnapshots) Update ¶
func (c *FakeZFSSnapshots) Update(ctx context.Context, zFSSnapshot *zfsv1.ZFSSnapshot, opts v1.UpdateOptions) (result *zfsv1.ZFSSnapshot, err error)
Update takes the representation of a zFSSnapshot and updates it. Returns the server's representation of the zFSSnapshot, and an error, if there is any.
func (*FakeZFSSnapshots) UpdateStatus ¶
func (c *FakeZFSSnapshots) UpdateStatus(ctx context.Context, zFSSnapshot *zfsv1.ZFSSnapshot, opts v1.UpdateOptions) (*zfsv1.ZFSSnapshot, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeZFSSnapshots) Watch ¶
func (c *FakeZFSSnapshots) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested zFSSnapshots.
type FakeZFSVolumes ¶
type FakeZFSVolumes struct { Fake *FakeZfsV1 // contains filtered or unexported fields }
FakeZFSVolumes implements ZFSVolumeInterface
func (*FakeZFSVolumes) Create ¶
func (c *FakeZFSVolumes) Create(ctx context.Context, zFSVolume *zfsv1.ZFSVolume, opts v1.CreateOptions) (result *zfsv1.ZFSVolume, err error)
Create takes the representation of a zFSVolume and creates it. Returns the server's representation of the zFSVolume, and an error, if there is any.
func (*FakeZFSVolumes) Delete ¶
func (c *FakeZFSVolumes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the zFSVolume and deletes it. Returns an error if one occurs.
func (*FakeZFSVolumes) DeleteCollection ¶
func (c *FakeZFSVolumes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeZFSVolumes) Get ¶
func (c *FakeZFSVolumes) Get(ctx context.Context, name string, options v1.GetOptions) (result *zfsv1.ZFSVolume, err error)
Get takes name of the zFSVolume, and returns the corresponding zFSVolume object, and an error if there is any.
func (*FakeZFSVolumes) List ¶
func (c *FakeZFSVolumes) List(ctx context.Context, opts v1.ListOptions) (result *zfsv1.ZFSVolumeList, err error)
List takes label and field selectors, and returns the list of ZFSVolumes that match those selectors.
func (*FakeZFSVolumes) Patch ¶
func (c *FakeZFSVolumes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *zfsv1.ZFSVolume, err error)
Patch applies the patch and returns the patched zFSVolume.
func (*FakeZFSVolumes) Update ¶
func (c *FakeZFSVolumes) Update(ctx context.Context, zFSVolume *zfsv1.ZFSVolume, opts v1.UpdateOptions) (result *zfsv1.ZFSVolume, err error)
Update takes the representation of a zFSVolume and updates it. Returns the server's representation of the zFSVolume, and an error, if there is any.
func (*FakeZFSVolumes) UpdateStatus ¶
func (c *FakeZFSVolumes) UpdateStatus(ctx context.Context, zFSVolume *zfsv1.ZFSVolume, opts v1.UpdateOptions) (*zfsv1.ZFSVolume, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeZFSVolumes) Watch ¶
func (c *FakeZFSVolumes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested zFSVolumes.
type FakeZfsV1 ¶
func (*FakeZfsV1) RESTClient ¶
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeZfsV1) ZFSBackups ¶ added in v1.0.0
func (c *FakeZfsV1) ZFSBackups(namespace string) v1.ZFSBackupInterface
func (*FakeZfsV1) ZFSNodes ¶ added in v1.8.0
func (c *FakeZfsV1) ZFSNodes(namespace string) v1.ZFSNodeInterface
func (*FakeZfsV1) ZFSRestores ¶ added in v1.0.0
func (c *FakeZfsV1) ZFSRestores(namespace string) v1.ZFSRestoreInterface
func (*FakeZfsV1) ZFSSnapshots ¶
func (c *FakeZfsV1) ZFSSnapshots(namespace string) v1.ZFSSnapshotInterface
func (*FakeZfsV1) ZFSVolumes ¶
func (c *FakeZfsV1) ZFSVolumes(namespace string) v1.ZFSVolumeInterface