fake

package
v0.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: AGPL-3.0 Imports: 9 Imported by: 1

Documentation

Overview

Package fake has the automatically generated clients.

Index

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

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

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

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

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

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

type FakeDataprotectionV1alpha1 struct {
	*testing.Fake
}

func (*FakeDataprotectionV1alpha1) ActionSets added in v0.7.0

func (*FakeDataprotectionV1alpha1) BackupPolicies

func (c *FakeDataprotectionV1alpha1) BackupPolicies(namespace string) v1alpha1.BackupPolicyInterface

func (*FakeDataprotectionV1alpha1) BackupRepos

func (*FakeDataprotectionV1alpha1) BackupSchedules added in v0.7.0

func (c *FakeDataprotectionV1alpha1) BackupSchedules(namespace string) v1alpha1.BackupScheduleInterface

func (*FakeDataprotectionV1alpha1) Backups

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL