Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeActionSets
- func (c *FakeActionSets) Create(ctx context.Context, actionSet *v1alpha1.ActionSet, opts v1.CreateOptions) (result *v1alpha1.ActionSet, err error)
- func (c *FakeActionSets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeActionSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeActionSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ActionSet, err error)
- func (c *FakeActionSets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ActionSetList, err error)
- func (c *FakeActionSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.ActionSet, err error)
- func (c *FakeActionSets) Update(ctx context.Context, actionSet *v1alpha1.ActionSet, opts v1.UpdateOptions) (result *v1alpha1.ActionSet, err error)
- func (c *FakeActionSets) UpdateStatus(ctx context.Context, actionSet *v1alpha1.ActionSet, opts v1.UpdateOptions) (*v1alpha1.ActionSet, error)
- func (c *FakeActionSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeBackupPolicies
- func (c *FakeBackupPolicies) Create(ctx context.Context, backupPolicy *v1alpha1.BackupPolicy, ...) (result *v1alpha1.BackupPolicy, err error)
- func (c *FakeBackupPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeBackupPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeBackupPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BackupPolicy, err error)
- func (c *FakeBackupPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BackupPolicyList, err error)
- func (c *FakeBackupPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.BackupPolicy, err error)
- func (c *FakeBackupPolicies) Update(ctx context.Context, backupPolicy *v1alpha1.BackupPolicy, ...) (result *v1alpha1.BackupPolicy, err error)
- func (c *FakeBackupPolicies) UpdateStatus(ctx context.Context, backupPolicy *v1alpha1.BackupPolicy, ...) (*v1alpha1.BackupPolicy, error)
- func (c *FakeBackupPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeBackupRepos
- func (c *FakeBackupRepos) Create(ctx context.Context, backupRepo *v1alpha1.BackupRepo, opts v1.CreateOptions) (result *v1alpha1.BackupRepo, err error)
- func (c *FakeBackupRepos) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeBackupRepos) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeBackupRepos) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BackupRepo, err error)
- func (c *FakeBackupRepos) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BackupRepoList, err error)
- func (c *FakeBackupRepos) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.BackupRepo, err error)
- func (c *FakeBackupRepos) Update(ctx context.Context, backupRepo *v1alpha1.BackupRepo, opts v1.UpdateOptions) (result *v1alpha1.BackupRepo, err error)
- func (c *FakeBackupRepos) UpdateStatus(ctx context.Context, backupRepo *v1alpha1.BackupRepo, opts v1.UpdateOptions) (*v1alpha1.BackupRepo, error)
- func (c *FakeBackupRepos) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeBackupSchedules
- func (c *FakeBackupSchedules) Create(ctx context.Context, backupSchedule *v1alpha1.BackupSchedule, ...) (result *v1alpha1.BackupSchedule, err error)
- func (c *FakeBackupSchedules) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeBackupSchedules) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeBackupSchedules) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BackupSchedule, err error)
- func (c *FakeBackupSchedules) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BackupScheduleList, err error)
- func (c *FakeBackupSchedules) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.BackupSchedule, err error)
- func (c *FakeBackupSchedules) Update(ctx context.Context, backupSchedule *v1alpha1.BackupSchedule, ...) (result *v1alpha1.BackupSchedule, err error)
- func (c *FakeBackupSchedules) UpdateStatus(ctx context.Context, backupSchedule *v1alpha1.BackupSchedule, ...) (*v1alpha1.BackupSchedule, error)
- func (c *FakeBackupSchedules) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeBackups
- func (c *FakeBackups) Create(ctx context.Context, backup *v1alpha1.Backup, opts v1.CreateOptions) (result *v1alpha1.Backup, err error)
- func (c *FakeBackups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeBackups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeBackups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Backup, err error)
- func (c *FakeBackups) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BackupList, err error)
- func (c *FakeBackups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Backup, err error)
- func (c *FakeBackups) Update(ctx context.Context, backup *v1alpha1.Backup, opts v1.UpdateOptions) (result *v1alpha1.Backup, err error)
- func (c *FakeBackups) UpdateStatus(ctx context.Context, backup *v1alpha1.Backup, opts v1.UpdateOptions) (*v1alpha1.Backup, error)
- func (c *FakeBackups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeDataprotectionV1alpha1
- func (c *FakeDataprotectionV1alpha1) ActionSets() v1alpha1.ActionSetInterface
- func (c *FakeDataprotectionV1alpha1) BackupPolicies(namespace string) v1alpha1.BackupPolicyInterface
- func (c *FakeDataprotectionV1alpha1) BackupRepos() v1alpha1.BackupRepoInterface
- func (c *FakeDataprotectionV1alpha1) BackupSchedules(namespace string) v1alpha1.BackupScheduleInterface
- func (c *FakeDataprotectionV1alpha1) Backups(namespace string) v1alpha1.BackupInterface
- func (c *FakeDataprotectionV1alpha1) RESTClient() rest.Interface
- func (c *FakeDataprotectionV1alpha1) Restores(namespace string) v1alpha1.RestoreInterface
- func (c *FakeDataprotectionV1alpha1) StorageProviders() v1alpha1.StorageProviderInterface
- type FakeRestores
- func (c *FakeRestores) Create(ctx context.Context, restore *v1alpha1.Restore, opts v1.CreateOptions) (result *v1alpha1.Restore, err error)
- func (c *FakeRestores) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeRestores) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeRestores) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Restore, err error)
- func (c *FakeRestores) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RestoreList, err error)
- func (c *FakeRestores) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Restore, err error)
- func (c *FakeRestores) Update(ctx context.Context, restore *v1alpha1.Restore, opts v1.UpdateOptions) (result *v1alpha1.Restore, err error)
- func (c *FakeRestores) UpdateStatus(ctx context.Context, restore *v1alpha1.Restore, opts v1.UpdateOptions) (*v1alpha1.Restore, error)
- func (c *FakeRestores) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeStorageProviders
- func (c *FakeStorageProviders) Create(ctx context.Context, storageProvider *v1alpha1.StorageProvider, ...) (result *v1alpha1.StorageProvider, err error)
- func (c *FakeStorageProviders) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeStorageProviders) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeStorageProviders) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.StorageProvider, err error)
- func (c *FakeStorageProviders) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.StorageProviderList, err error)
- func (c *FakeStorageProviders) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.StorageProvider, err error)
- func (c *FakeStorageProviders) Update(ctx context.Context, storageProvider *v1alpha1.StorageProvider, ...) (result *v1alpha1.StorageProvider, err error)
- func (c *FakeStorageProviders) UpdateStatus(ctx context.Context, storageProvider *v1alpha1.StorageProvider, ...) (*v1alpha1.StorageProvider, error)
- func (c *FakeStorageProviders) 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 FakeActionSets ¶ added in v0.7.0
type FakeActionSets struct {
Fake *FakeDataprotectionV1alpha1
}
FakeActionSets implements ActionSetInterface
func (*FakeActionSets) Create ¶ added in v0.7.0
func (c *FakeActionSets) Create(ctx context.Context, actionSet *v1alpha1.ActionSet, opts v1.CreateOptions) (result *v1alpha1.ActionSet, err error)
Create takes the representation of a actionSet and creates it. Returns the server's representation of the actionSet, and an error, if there is any.
func (*FakeActionSets) Delete ¶ added in v0.7.0
func (c *FakeActionSets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the actionSet and deletes it. Returns an error if one occurs.
func (*FakeActionSets) DeleteCollection ¶ added in v0.7.0
func (c *FakeActionSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeActionSets) Get ¶ added in v0.7.0
func (c *FakeActionSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ActionSet, err error)
Get takes name of the actionSet, and returns the corresponding actionSet object, and an error if there is any.
func (*FakeActionSets) List ¶ added in v0.7.0
func (c *FakeActionSets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ActionSetList, err error)
List takes label and field selectors, and returns the list of ActionSets that match those selectors.
func (*FakeActionSets) Patch ¶ added in v0.7.0
func (c *FakeActionSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ActionSet, err error)
Patch applies the patch and returns the patched actionSet.
func (*FakeActionSets) Update ¶ added in v0.7.0
func (c *FakeActionSets) Update(ctx context.Context, actionSet *v1alpha1.ActionSet, opts v1.UpdateOptions) (result *v1alpha1.ActionSet, err error)
Update takes the representation of a actionSet and updates it. Returns the server's representation of the actionSet, and an error, if there is any.
func (*FakeActionSets) UpdateStatus ¶ added in v0.7.0
func (c *FakeActionSets) UpdateStatus(ctx context.Context, actionSet *v1alpha1.ActionSet, opts v1.UpdateOptions) (*v1alpha1.ActionSet, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeActionSets) Watch ¶ added in v0.7.0
func (c *FakeActionSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested actionSets.
type FakeBackupPolicies ¶
type FakeBackupPolicies struct { Fake *FakeDataprotectionV1alpha1 // contains filtered or unexported fields }
FakeBackupPolicies implements BackupPolicyInterface
func (*FakeBackupPolicies) Create ¶
func (c *FakeBackupPolicies) Create(ctx context.Context, backupPolicy *v1alpha1.BackupPolicy, opts v1.CreateOptions) (result *v1alpha1.BackupPolicy, err error)
Create takes the representation of a backupPolicy and creates it. Returns the server's representation of the backupPolicy, and an error, if there is any.
func (*FakeBackupPolicies) Delete ¶
func (c *FakeBackupPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the backupPolicy and deletes it. Returns an error if one occurs.
func (*FakeBackupPolicies) DeleteCollection ¶
func (c *FakeBackupPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeBackupPolicies) Get ¶
func (c *FakeBackupPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BackupPolicy, err error)
Get takes name of the backupPolicy, and returns the corresponding backupPolicy object, and an error if there is any.
func (*FakeBackupPolicies) List ¶
func (c *FakeBackupPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BackupPolicyList, err error)
List takes label and field selectors, and returns the list of BackupPolicies that match those selectors.
func (*FakeBackupPolicies) Patch ¶
func (c *FakeBackupPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BackupPolicy, err error)
Patch applies the patch and returns the patched backupPolicy.
func (*FakeBackupPolicies) Update ¶
func (c *FakeBackupPolicies) Update(ctx context.Context, backupPolicy *v1alpha1.BackupPolicy, opts v1.UpdateOptions) (result *v1alpha1.BackupPolicy, err error)
Update takes the representation of a backupPolicy and updates it. Returns the server's representation of the backupPolicy, and an error, if there is any.
func (*FakeBackupPolicies) UpdateStatus ¶
func (c *FakeBackupPolicies) UpdateStatus(ctx context.Context, backupPolicy *v1alpha1.BackupPolicy, opts v1.UpdateOptions) (*v1alpha1.BackupPolicy, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeBackupPolicies) Watch ¶
func (c *FakeBackupPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested backupPolicies.
type FakeBackupRepos ¶
type FakeBackupRepos struct {
Fake *FakeDataprotectionV1alpha1
}
FakeBackupRepos implements BackupRepoInterface
func (*FakeBackupRepos) Create ¶
func (c *FakeBackupRepos) Create(ctx context.Context, backupRepo *v1alpha1.BackupRepo, opts v1.CreateOptions) (result *v1alpha1.BackupRepo, err error)
Create takes the representation of a backupRepo and creates it. Returns the server's representation of the backupRepo, and an error, if there is any.
func (*FakeBackupRepos) Delete ¶
func (c *FakeBackupRepos) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the backupRepo and deletes it. Returns an error if one occurs.
func (*FakeBackupRepos) DeleteCollection ¶
func (c *FakeBackupRepos) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeBackupRepos) Get ¶
func (c *FakeBackupRepos) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BackupRepo, err error)
Get takes name of the backupRepo, and returns the corresponding backupRepo object, and an error if there is any.
func (*FakeBackupRepos) List ¶
func (c *FakeBackupRepos) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BackupRepoList, err error)
List takes label and field selectors, and returns the list of BackupRepos that match those selectors.
func (*FakeBackupRepos) Patch ¶
func (c *FakeBackupRepos) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BackupRepo, err error)
Patch applies the patch and returns the patched backupRepo.
func (*FakeBackupRepos) Update ¶
func (c *FakeBackupRepos) Update(ctx context.Context, backupRepo *v1alpha1.BackupRepo, opts v1.UpdateOptions) (result *v1alpha1.BackupRepo, err error)
Update takes the representation of a backupRepo and updates it. Returns the server's representation of the backupRepo, and an error, if there is any.
func (*FakeBackupRepos) UpdateStatus ¶
func (c *FakeBackupRepos) UpdateStatus(ctx context.Context, backupRepo *v1alpha1.BackupRepo, opts v1.UpdateOptions) (*v1alpha1.BackupRepo, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeBackupRepos) Watch ¶
func (c *FakeBackupRepos) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested backupRepos.
type FakeBackupSchedules ¶ added in v0.7.0
type FakeBackupSchedules struct { Fake *FakeDataprotectionV1alpha1 // contains filtered or unexported fields }
FakeBackupSchedules implements BackupScheduleInterface
func (*FakeBackupSchedules) Create ¶ added in v0.7.0
func (c *FakeBackupSchedules) Create(ctx context.Context, backupSchedule *v1alpha1.BackupSchedule, opts v1.CreateOptions) (result *v1alpha1.BackupSchedule, err error)
Create takes the representation of a backupSchedule and creates it. Returns the server's representation of the backupSchedule, and an error, if there is any.
func (*FakeBackupSchedules) Delete ¶ added in v0.7.0
func (c *FakeBackupSchedules) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the backupSchedule and deletes it. Returns an error if one occurs.
func (*FakeBackupSchedules) DeleteCollection ¶ added in v0.7.0
func (c *FakeBackupSchedules) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeBackupSchedules) Get ¶ added in v0.7.0
func (c *FakeBackupSchedules) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BackupSchedule, err error)
Get takes name of the backupSchedule, and returns the corresponding backupSchedule object, and an error if there is any.
func (*FakeBackupSchedules) List ¶ added in v0.7.0
func (c *FakeBackupSchedules) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BackupScheduleList, err error)
List takes label and field selectors, and returns the list of BackupSchedules that match those selectors.
func (*FakeBackupSchedules) Patch ¶ added in v0.7.0
func (c *FakeBackupSchedules) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BackupSchedule, err error)
Patch applies the patch and returns the patched backupSchedule.
func (*FakeBackupSchedules) Update ¶ added in v0.7.0
func (c *FakeBackupSchedules) Update(ctx context.Context, backupSchedule *v1alpha1.BackupSchedule, opts v1.UpdateOptions) (result *v1alpha1.BackupSchedule, err error)
Update takes the representation of a backupSchedule and updates it. Returns the server's representation of the backupSchedule, and an error, if there is any.
func (*FakeBackupSchedules) UpdateStatus ¶ added in v0.7.0
func (c *FakeBackupSchedules) UpdateStatus(ctx context.Context, backupSchedule *v1alpha1.BackupSchedule, opts v1.UpdateOptions) (*v1alpha1.BackupSchedule, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeBackupSchedules) Watch ¶ added in v0.7.0
func (c *FakeBackupSchedules) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested backupSchedules.
type FakeBackups ¶
type FakeBackups struct { Fake *FakeDataprotectionV1alpha1 // contains filtered or unexported fields }
FakeBackups implements BackupInterface
func (*FakeBackups) Create ¶
func (c *FakeBackups) Create(ctx context.Context, backup *v1alpha1.Backup, opts v1.CreateOptions) (result *v1alpha1.Backup, err error)
Create takes the representation of a backup and creates it. Returns the server's representation of the backup, and an error, if there is any.
func (*FakeBackups) Delete ¶
func (c *FakeBackups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the backup and deletes it. Returns an error if one occurs.
func (*FakeBackups) DeleteCollection ¶
func (c *FakeBackups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeBackups) Get ¶
func (c *FakeBackups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Backup, err error)
Get takes name of the backup, and returns the corresponding backup object, and an error if there is any.
func (*FakeBackups) List ¶
func (c *FakeBackups) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BackupList, err error)
List takes label and field selectors, and returns the list of Backups that match those selectors.
func (*FakeBackups) Patch ¶
func (c *FakeBackups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Backup, err error)
Patch applies the patch and returns the patched backup.
func (*FakeBackups) Update ¶
func (c *FakeBackups) Update(ctx context.Context, backup *v1alpha1.Backup, opts v1.UpdateOptions) (result *v1alpha1.Backup, err error)
Update takes the representation of a backup and updates it. Returns the server's representation of the backup, and an error, if there is any.
func (*FakeBackups) UpdateStatus ¶
func (c *FakeBackups) UpdateStatus(ctx context.Context, backup *v1alpha1.Backup, opts v1.UpdateOptions) (*v1alpha1.Backup, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeBackups) Watch ¶
func (c *FakeBackups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested backups.
type FakeDataprotectionV1alpha1 ¶
func (*FakeDataprotectionV1alpha1) ActionSets ¶ added in v0.7.0
func (c *FakeDataprotectionV1alpha1) ActionSets() v1alpha1.ActionSetInterface
func (*FakeDataprotectionV1alpha1) BackupPolicies ¶
func (c *FakeDataprotectionV1alpha1) BackupPolicies(namespace string) v1alpha1.BackupPolicyInterface
func (*FakeDataprotectionV1alpha1) BackupRepos ¶
func (c *FakeDataprotectionV1alpha1) BackupRepos() v1alpha1.BackupRepoInterface
func (*FakeDataprotectionV1alpha1) BackupSchedules ¶ added in v0.7.0
func (c *FakeDataprotectionV1alpha1) BackupSchedules(namespace string) v1alpha1.BackupScheduleInterface
func (*FakeDataprotectionV1alpha1) Backups ¶
func (c *FakeDataprotectionV1alpha1) Backups(namespace string) v1alpha1.BackupInterface
func (*FakeDataprotectionV1alpha1) RESTClient ¶
func (c *FakeDataprotectionV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeDataprotectionV1alpha1) Restores ¶ added in v0.7.0
func (c *FakeDataprotectionV1alpha1) Restores(namespace string) v1alpha1.RestoreInterface
func (*FakeDataprotectionV1alpha1) StorageProviders ¶ added in v0.9.0
func (c *FakeDataprotectionV1alpha1) StorageProviders() v1alpha1.StorageProviderInterface
type FakeRestores ¶ added in v0.7.0
type FakeRestores struct { Fake *FakeDataprotectionV1alpha1 // contains filtered or unexported fields }
FakeRestores implements RestoreInterface
func (*FakeRestores) Create ¶ added in v0.7.0
func (c *FakeRestores) Create(ctx context.Context, restore *v1alpha1.Restore, opts v1.CreateOptions) (result *v1alpha1.Restore, err error)
Create takes the representation of a restore and creates it. Returns the server's representation of the restore, and an error, if there is any.
func (*FakeRestores) Delete ¶ added in v0.7.0
func (c *FakeRestores) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the restore and deletes it. Returns an error if one occurs.
func (*FakeRestores) DeleteCollection ¶ added in v0.7.0
func (c *FakeRestores) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeRestores) Get ¶ added in v0.7.0
func (c *FakeRestores) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Restore, err error)
Get takes name of the restore, and returns the corresponding restore object, and an error if there is any.
func (*FakeRestores) List ¶ added in v0.7.0
func (c *FakeRestores) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RestoreList, err error)
List takes label and field selectors, and returns the list of Restores that match those selectors.
func (*FakeRestores) Patch ¶ added in v0.7.0
func (c *FakeRestores) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Restore, err error)
Patch applies the patch and returns the patched restore.
func (*FakeRestores) Update ¶ added in v0.7.0
func (c *FakeRestores) Update(ctx context.Context, restore *v1alpha1.Restore, opts v1.UpdateOptions) (result *v1alpha1.Restore, err error)
Update takes the representation of a restore and updates it. Returns the server's representation of the restore, and an error, if there is any.
func (*FakeRestores) UpdateStatus ¶ added in v0.7.0
func (c *FakeRestores) UpdateStatus(ctx context.Context, restore *v1alpha1.Restore, opts v1.UpdateOptions) (*v1alpha1.Restore, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeRestores) Watch ¶ added in v0.7.0
func (c *FakeRestores) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested restores.
type FakeStorageProviders ¶ added in v0.9.0
type FakeStorageProviders struct {
Fake *FakeDataprotectionV1alpha1
}
FakeStorageProviders implements StorageProviderInterface
func (*FakeStorageProviders) Create ¶ added in v0.9.0
func (c *FakeStorageProviders) Create(ctx context.Context, storageProvider *v1alpha1.StorageProvider, opts v1.CreateOptions) (result *v1alpha1.StorageProvider, err error)
Create takes the representation of a storageProvider and creates it. Returns the server's representation of the storageProvider, and an error, if there is any.
func (*FakeStorageProviders) Delete ¶ added in v0.9.0
func (c *FakeStorageProviders) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the storageProvider and deletes it. Returns an error if one occurs.
func (*FakeStorageProviders) DeleteCollection ¶ added in v0.9.0
func (c *FakeStorageProviders) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeStorageProviders) Get ¶ added in v0.9.0
func (c *FakeStorageProviders) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.StorageProvider, err error)
Get takes name of the storageProvider, and returns the corresponding storageProvider object, and an error if there is any.
func (*FakeStorageProviders) List ¶ added in v0.9.0
func (c *FakeStorageProviders) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.StorageProviderList, err error)
List takes label and field selectors, and returns the list of StorageProviders that match those selectors.
func (*FakeStorageProviders) Patch ¶ added in v0.9.0
func (c *FakeStorageProviders) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.StorageProvider, err error)
Patch applies the patch and returns the patched storageProvider.
func (*FakeStorageProviders) Update ¶ added in v0.9.0
func (c *FakeStorageProviders) Update(ctx context.Context, storageProvider *v1alpha1.StorageProvider, opts v1.UpdateOptions) (result *v1alpha1.StorageProvider, err error)
Update takes the representation of a storageProvider and updates it. Returns the server's representation of the storageProvider, and an error, if there is any.
func (*FakeStorageProviders) UpdateStatus ¶ added in v0.9.0
func (c *FakeStorageProviders) UpdateStatus(ctx context.Context, storageProvider *v1alpha1.StorageProvider, opts v1.UpdateOptions) (*v1alpha1.StorageProvider, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeStorageProviders) Watch ¶ added in v0.9.0
func (c *FakeStorageProviders) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested storageProviders.