fake

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

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 FakeBackupRepositories

type FakeBackupRepositories struct {
	Fake *FakeBackupdriverV1alpha1
}

FakeBackupRepositories implements BackupRepositoryInterface

func (*FakeBackupRepositories) Create

func (c *FakeBackupRepositories) Create(ctx context.Context, backupRepository *v1alpha1.BackupRepository, opts v1.CreateOptions) (result *v1alpha1.BackupRepository, err error)

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

func (*FakeBackupRepositories) Delete

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

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

func (*FakeBackupRepositories) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBackupRepositories) Get

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

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

func (*FakeBackupRepositories) List

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

func (*FakeBackupRepositories) Patch

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

Patch applies the patch and returns the patched backupRepository.

func (*FakeBackupRepositories) Update

func (c *FakeBackupRepositories) Update(ctx context.Context, backupRepository *v1alpha1.BackupRepository, opts v1.UpdateOptions) (result *v1alpha1.BackupRepository, err error)

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

func (*FakeBackupRepositories) Watch

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

type FakeBackupRepositoryClaims

type FakeBackupRepositoryClaims struct {
	Fake *FakeBackupdriverV1alpha1
	// contains filtered or unexported fields
}

FakeBackupRepositoryClaims implements BackupRepositoryClaimInterface

func (*FakeBackupRepositoryClaims) Create

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

func (*FakeBackupRepositoryClaims) Delete

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

func (*FakeBackupRepositoryClaims) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBackupRepositoryClaims) Get

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

func (*FakeBackupRepositoryClaims) List

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

func (*FakeBackupRepositoryClaims) Patch

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

Patch applies the patch and returns the patched backupRepositoryClaim.

func (*FakeBackupRepositoryClaims) Update

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

func (*FakeBackupRepositoryClaims) Watch

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

type FakeBackupdriverV1alpha1

type FakeBackupdriverV1alpha1 struct {
	*testing.Fake
}

func (*FakeBackupdriverV1alpha1) BackupRepositories

func (*FakeBackupdriverV1alpha1) BackupRepositoryClaims

func (c *FakeBackupdriverV1alpha1) BackupRepositoryClaims(namespace string) v1alpha1.BackupRepositoryClaimInterface

func (*FakeBackupdriverV1alpha1) CloneFromSnapshots

func (c *FakeBackupdriverV1alpha1) CloneFromSnapshots(namespace string) v1alpha1.CloneFromSnapshotInterface

func (*FakeBackupdriverV1alpha1) DeleteSnapshots

func (c *FakeBackupdriverV1alpha1) DeleteSnapshots(namespace string) v1alpha1.DeleteSnapshotInterface

func (*FakeBackupdriverV1alpha1) RESTClient

func (c *FakeBackupdriverV1alpha1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeBackupdriverV1alpha1) Snapshots

type FakeCloneFromSnapshots

type FakeCloneFromSnapshots struct {
	Fake *FakeBackupdriverV1alpha1
	// contains filtered or unexported fields
}

FakeCloneFromSnapshots implements CloneFromSnapshotInterface

func (*FakeCloneFromSnapshots) Create

func (c *FakeCloneFromSnapshots) Create(ctx context.Context, cloneFromSnapshot *v1alpha1.CloneFromSnapshot, opts v1.CreateOptions) (result *v1alpha1.CloneFromSnapshot, err error)

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

func (*FakeCloneFromSnapshots) Delete

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

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

func (*FakeCloneFromSnapshots) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCloneFromSnapshots) Get

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

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

func (*FakeCloneFromSnapshots) List

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

func (*FakeCloneFromSnapshots) Patch

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

Patch applies the patch and returns the patched cloneFromSnapshot.

func (*FakeCloneFromSnapshots) Update

func (c *FakeCloneFromSnapshots) Update(ctx context.Context, cloneFromSnapshot *v1alpha1.CloneFromSnapshot, opts v1.UpdateOptions) (result *v1alpha1.CloneFromSnapshot, err error)

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

func (*FakeCloneFromSnapshots) UpdateStatus

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

func (*FakeCloneFromSnapshots) Watch

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

type FakeDeleteSnapshots

type FakeDeleteSnapshots struct {
	Fake *FakeBackupdriverV1alpha1
	// contains filtered or unexported fields
}

FakeDeleteSnapshots implements DeleteSnapshotInterface

func (*FakeDeleteSnapshots) Create

func (c *FakeDeleteSnapshots) Create(ctx context.Context, deleteSnapshot *v1alpha1.DeleteSnapshot, opts v1.CreateOptions) (result *v1alpha1.DeleteSnapshot, err error)

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

func (*FakeDeleteSnapshots) Delete

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

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

func (*FakeDeleteSnapshots) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDeleteSnapshots) Get

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

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

func (*FakeDeleteSnapshots) List

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

func (*FakeDeleteSnapshots) Patch

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

Patch applies the patch and returns the patched deleteSnapshot.

func (*FakeDeleteSnapshots) Update

func (c *FakeDeleteSnapshots) Update(ctx context.Context, deleteSnapshot *v1alpha1.DeleteSnapshot, opts v1.UpdateOptions) (result *v1alpha1.DeleteSnapshot, err error)

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

func (*FakeDeleteSnapshots) UpdateStatus

func (c *FakeDeleteSnapshots) UpdateStatus(ctx context.Context, deleteSnapshot *v1alpha1.DeleteSnapshot, opts v1.UpdateOptions) (*v1alpha1.DeleteSnapshot, error)

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

func (*FakeDeleteSnapshots) Watch

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

type FakeSnapshots

type FakeSnapshots struct {
	Fake *FakeBackupdriverV1alpha1
	// contains filtered or unexported fields
}

FakeSnapshots implements SnapshotInterface

func (*FakeSnapshots) Create

func (c *FakeSnapshots) Create(ctx context.Context, snapshot *v1alpha1.Snapshot, opts v1.CreateOptions) (result *v1alpha1.Snapshot, err error)

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

func (*FakeSnapshots) Delete

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

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

func (*FakeSnapshots) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSnapshots) Get

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

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

func (*FakeSnapshots) List

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

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

func (*FakeSnapshots) Patch

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

Patch applies the patch and returns the patched snapshot.

func (*FakeSnapshots) Update

func (c *FakeSnapshots) Update(ctx context.Context, snapshot *v1alpha1.Snapshot, opts v1.UpdateOptions) (result *v1alpha1.Snapshot, err error)

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

func (*FakeSnapshots) UpdateStatus

func (c *FakeSnapshots) UpdateStatus(ctx context.Context, snapshot *v1alpha1.Snapshot, opts v1.UpdateOptions) (*v1alpha1.Snapshot, error)

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

func (*FakeSnapshots) Watch

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

Jump to

Keyboard shortcuts

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