fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 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 FakeBackupV1alpha1

type FakeBackupV1alpha1 struct {
	*testing.Fake
}

func (*FakeBackupV1alpha1) ContainerStorageAccounts

func (c *FakeBackupV1alpha1) ContainerStorageAccounts(namespace string) v1alpha1.ContainerStorageAccountInterface

func (*FakeBackupV1alpha1) PolicyFileShares

func (c *FakeBackupV1alpha1) PolicyFileShares(namespace string) v1alpha1.PolicyFileShareInterface

func (*FakeBackupV1alpha1) PolicyVms

func (c *FakeBackupV1alpha1) PolicyVms(namespace string) v1alpha1.PolicyVmInterface

func (*FakeBackupV1alpha1) ProtectedFileShares

func (c *FakeBackupV1alpha1) ProtectedFileShares(namespace string) v1alpha1.ProtectedFileShareInterface

func (*FakeBackupV1alpha1) ProtectedVms

func (c *FakeBackupV1alpha1) ProtectedVms(namespace string) v1alpha1.ProtectedVmInterface

func (*FakeBackupV1alpha1) RESTClient

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

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

type FakeContainerStorageAccounts

type FakeContainerStorageAccounts struct {
	Fake *FakeBackupV1alpha1
	// contains filtered or unexported fields
}

FakeContainerStorageAccounts implements ContainerStorageAccountInterface

func (*FakeContainerStorageAccounts) Create

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

func (*FakeContainerStorageAccounts) Delete

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

func (*FakeContainerStorageAccounts) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeContainerStorageAccounts) Get

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

func (*FakeContainerStorageAccounts) List

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

func (*FakeContainerStorageAccounts) Patch

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

Patch applies the patch and returns the patched containerStorageAccount.

func (*FakeContainerStorageAccounts) Update

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

func (*FakeContainerStorageAccounts) UpdateStatus

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

func (*FakeContainerStorageAccounts) Watch

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

type FakePolicyFileShares

type FakePolicyFileShares struct {
	Fake *FakeBackupV1alpha1
	// contains filtered or unexported fields
}

FakePolicyFileShares implements PolicyFileShareInterface

func (*FakePolicyFileShares) Create

func (c *FakePolicyFileShares) Create(ctx context.Context, policyFileShare *v1alpha1.PolicyFileShare, opts v1.CreateOptions) (result *v1alpha1.PolicyFileShare, err error)

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

func (*FakePolicyFileShares) Delete

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

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

func (*FakePolicyFileShares) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePolicyFileShares) Get

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

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

func (*FakePolicyFileShares) List

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

func (*FakePolicyFileShares) Patch

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

Patch applies the patch and returns the patched policyFileShare.

func (*FakePolicyFileShares) Update

func (c *FakePolicyFileShares) Update(ctx context.Context, policyFileShare *v1alpha1.PolicyFileShare, opts v1.UpdateOptions) (result *v1alpha1.PolicyFileShare, err error)

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

func (*FakePolicyFileShares) UpdateStatus

func (c *FakePolicyFileShares) UpdateStatus(ctx context.Context, policyFileShare *v1alpha1.PolicyFileShare, opts v1.UpdateOptions) (*v1alpha1.PolicyFileShare, error)

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

func (*FakePolicyFileShares) Watch

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

type FakePolicyVms

type FakePolicyVms struct {
	Fake *FakeBackupV1alpha1
	// contains filtered or unexported fields
}

FakePolicyVms implements PolicyVmInterface

func (*FakePolicyVms) Create

func (c *FakePolicyVms) Create(ctx context.Context, policyVm *v1alpha1.PolicyVm, opts v1.CreateOptions) (result *v1alpha1.PolicyVm, err error)

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

func (*FakePolicyVms) Delete

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

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

func (*FakePolicyVms) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePolicyVms) Get

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

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

func (*FakePolicyVms) List

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

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

func (*FakePolicyVms) Patch

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

Patch applies the patch and returns the patched policyVm.

func (*FakePolicyVms) Update

func (c *FakePolicyVms) Update(ctx context.Context, policyVm *v1alpha1.PolicyVm, opts v1.UpdateOptions) (result *v1alpha1.PolicyVm, err error)

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

func (*FakePolicyVms) UpdateStatus

func (c *FakePolicyVms) UpdateStatus(ctx context.Context, policyVm *v1alpha1.PolicyVm, opts v1.UpdateOptions) (*v1alpha1.PolicyVm, error)

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

func (*FakePolicyVms) Watch

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

type FakeProtectedFileShares

type FakeProtectedFileShares struct {
	Fake *FakeBackupV1alpha1
	// contains filtered or unexported fields
}

FakeProtectedFileShares implements ProtectedFileShareInterface

func (*FakeProtectedFileShares) Create

func (c *FakeProtectedFileShares) Create(ctx context.Context, protectedFileShare *v1alpha1.ProtectedFileShare, opts v1.CreateOptions) (result *v1alpha1.ProtectedFileShare, err error)

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

func (*FakeProtectedFileShares) Delete

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

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

func (*FakeProtectedFileShares) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProtectedFileShares) Get

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

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

func (*FakeProtectedFileShares) List

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

func (*FakeProtectedFileShares) Patch

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

Patch applies the patch and returns the patched protectedFileShare.

func (*FakeProtectedFileShares) Update

func (c *FakeProtectedFileShares) Update(ctx context.Context, protectedFileShare *v1alpha1.ProtectedFileShare, opts v1.UpdateOptions) (result *v1alpha1.ProtectedFileShare, err error)

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

func (*FakeProtectedFileShares) UpdateStatus

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

func (*FakeProtectedFileShares) Watch

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

type FakeProtectedVms

type FakeProtectedVms struct {
	Fake *FakeBackupV1alpha1
	// contains filtered or unexported fields
}

FakeProtectedVms implements ProtectedVmInterface

func (*FakeProtectedVms) Create

func (c *FakeProtectedVms) Create(ctx context.Context, protectedVm *v1alpha1.ProtectedVm, opts v1.CreateOptions) (result *v1alpha1.ProtectedVm, err error)

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

func (*FakeProtectedVms) Delete

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

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

func (*FakeProtectedVms) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProtectedVms) Get

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

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

func (*FakeProtectedVms) List

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

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

func (*FakeProtectedVms) Patch

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

Patch applies the patch and returns the patched protectedVm.

func (*FakeProtectedVms) Update

func (c *FakeProtectedVms) Update(ctx context.Context, protectedVm *v1alpha1.ProtectedVm, opts v1.UpdateOptions) (result *v1alpha1.ProtectedVm, err error)

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

func (*FakeProtectedVms) UpdateStatus

func (c *FakeProtectedVms) UpdateStatus(ctx context.Context, protectedVm *v1alpha1.ProtectedVm, opts v1.UpdateOptions) (*v1alpha1.ProtectedVm, error)

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

func (*FakeProtectedVms) Watch

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

Jump to

Keyboard shortcuts

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