fake

package
v0.6.1-beta.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: AGPL-3.0 Imports: 10 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 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 FakeBackupTools

type FakeBackupTools struct {
	Fake *FakeDataprotectionV1alpha1
}

FakeBackupTools implements BackupToolInterface

func (*FakeBackupTools) Create

func (c *FakeBackupTools) Create(ctx context.Context, backupTool *v1alpha1.BackupTool, opts v1.CreateOptions) (result *v1alpha1.BackupTool, err error)

Create takes the representation of a backupTool and creates it. Returns the server's representation of the backupTool, and an error, if there is any.

func (*FakeBackupTools) Delete

func (c *FakeBackupTools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the backupTool and deletes it. Returns an error if one occurs.

func (*FakeBackupTools) DeleteCollection

func (c *FakeBackupTools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeBackupTools) Get

func (c *FakeBackupTools) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BackupTool, err error)

Get takes name of the backupTool, and returns the corresponding backupTool object, and an error if there is any.

func (*FakeBackupTools) List

func (c *FakeBackupTools) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BackupToolList, err error)

List takes label and field selectors, and returns the list of BackupTools that match those selectors.

func (*FakeBackupTools) Patch

func (c *FakeBackupTools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BackupTool, err error)

Patch applies the patch and returns the patched backupTool.

func (*FakeBackupTools) Update

func (c *FakeBackupTools) Update(ctx context.Context, backupTool *v1alpha1.BackupTool, opts v1.UpdateOptions) (result *v1alpha1.BackupTool, err error)

Update takes the representation of a backupTool and updates it. Returns the server's representation of the backupTool, and an error, if there is any.

func (*FakeBackupTools) UpdateStatus

func (c *FakeBackupTools) UpdateStatus(ctx context.Context, backupTool *v1alpha1.BackupTool, opts v1.UpdateOptions) (*v1alpha1.BackupTool, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeBackupTools) Watch

Watch returns a watch.Interface that watches the requested backupTools.

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) BackupPolicies

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

func (*FakeDataprotectionV1alpha1) BackupRepos

func (*FakeDataprotectionV1alpha1) BackupTools

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) RestoreJobs

type FakeRestoreJobs

type FakeRestoreJobs struct {
	Fake *FakeDataprotectionV1alpha1
	// contains filtered or unexported fields
}

FakeRestoreJobs implements RestoreJobInterface

func (*FakeRestoreJobs) Create

func (c *FakeRestoreJobs) Create(ctx context.Context, restoreJob *v1alpha1.RestoreJob, opts v1.CreateOptions) (result *v1alpha1.RestoreJob, err error)

Create takes the representation of a restoreJob and creates it. Returns the server's representation of the restoreJob, and an error, if there is any.

func (*FakeRestoreJobs) Delete

func (c *FakeRestoreJobs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the restoreJob and deletes it. Returns an error if one occurs.

func (*FakeRestoreJobs) DeleteCollection

func (c *FakeRestoreJobs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRestoreJobs) Get

func (c *FakeRestoreJobs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RestoreJob, err error)

Get takes name of the restoreJob, and returns the corresponding restoreJob object, and an error if there is any.

func (*FakeRestoreJobs) List

func (c *FakeRestoreJobs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RestoreJobList, err error)

List takes label and field selectors, and returns the list of RestoreJobs that match those selectors.

func (*FakeRestoreJobs) Patch

func (c *FakeRestoreJobs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RestoreJob, err error)

Patch applies the patch and returns the patched restoreJob.

func (*FakeRestoreJobs) Update

func (c *FakeRestoreJobs) Update(ctx context.Context, restoreJob *v1alpha1.RestoreJob, opts v1.UpdateOptions) (result *v1alpha1.RestoreJob, err error)

Update takes the representation of a restoreJob and updates it. Returns the server's representation of the restoreJob, and an error, if there is any.

func (*FakeRestoreJobs) UpdateStatus

func (c *FakeRestoreJobs) UpdateStatus(ctx context.Context, restoreJob *v1alpha1.RestoreJob, opts v1.UpdateOptions) (*v1alpha1.RestoreJob, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeRestoreJobs) Watch

Watch returns a watch.Interface that watches the requested restoreJobs.

Jump to

Keyboard shortcuts

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