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 FakeFabrics

type FakeFabrics struct {
	Fake *FakeSiterecoveryV1alpha1
	// contains filtered or unexported fields
}

FakeFabrics implements FabricInterface

func (*FakeFabrics) Create

func (c *FakeFabrics) Create(ctx context.Context, fabric *v1alpha1.Fabric, opts v1.CreateOptions) (result *v1alpha1.Fabric, err error)

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

func (*FakeFabrics) Delete

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

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

func (*FakeFabrics) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFabrics) Get

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

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

func (*FakeFabrics) List

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

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

func (*FakeFabrics) Patch

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

Patch applies the patch and returns the patched fabric.

func (*FakeFabrics) Update

func (c *FakeFabrics) Update(ctx context.Context, fabric *v1alpha1.Fabric, opts v1.UpdateOptions) (result *v1alpha1.Fabric, err error)

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

func (*FakeFabrics) UpdateStatus

func (c *FakeFabrics) UpdateStatus(ctx context.Context, fabric *v1alpha1.Fabric, opts v1.UpdateOptions) (*v1alpha1.Fabric, error)

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

func (*FakeFabrics) Watch

func (c *FakeFabrics) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeNetworkMappings

type FakeNetworkMappings struct {
	Fake *FakeSiterecoveryV1alpha1
	// contains filtered or unexported fields
}

FakeNetworkMappings implements NetworkMappingInterface

func (*FakeNetworkMappings) Create

func (c *FakeNetworkMappings) Create(ctx context.Context, networkMapping *v1alpha1.NetworkMapping, opts v1.CreateOptions) (result *v1alpha1.NetworkMapping, err error)

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

func (*FakeNetworkMappings) Delete

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

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

func (*FakeNetworkMappings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNetworkMappings) Get

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

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

func (*FakeNetworkMappings) List

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

func (*FakeNetworkMappings) Patch

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

Patch applies the patch and returns the patched networkMapping.

func (*FakeNetworkMappings) Update

func (c *FakeNetworkMappings) Update(ctx context.Context, networkMapping *v1alpha1.NetworkMapping, opts v1.UpdateOptions) (result *v1alpha1.NetworkMapping, err error)

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

func (*FakeNetworkMappings) UpdateStatus

func (c *FakeNetworkMappings) UpdateStatus(ctx context.Context, networkMapping *v1alpha1.NetworkMapping, opts v1.UpdateOptions) (*v1alpha1.NetworkMapping, error)

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

func (*FakeNetworkMappings) Watch

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

type FakeProtectionContainerMappings

type FakeProtectionContainerMappings struct {
	Fake *FakeSiterecoveryV1alpha1
	// contains filtered or unexported fields
}

FakeProtectionContainerMappings implements ProtectionContainerMappingInterface

func (*FakeProtectionContainerMappings) Create

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

func (*FakeProtectionContainerMappings) Delete

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

func (*FakeProtectionContainerMappings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProtectionContainerMappings) Get

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

func (*FakeProtectionContainerMappings) List

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

func (*FakeProtectionContainerMappings) Patch

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

Patch applies the patch and returns the patched protectionContainerMapping.

func (*FakeProtectionContainerMappings) Update

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

func (*FakeProtectionContainerMappings) UpdateStatus

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

func (*FakeProtectionContainerMappings) Watch

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

type FakeProtectionContainers

type FakeProtectionContainers struct {
	Fake *FakeSiterecoveryV1alpha1
	// contains filtered or unexported fields
}

FakeProtectionContainers implements ProtectionContainerInterface

func (*FakeProtectionContainers) Create

func (c *FakeProtectionContainers) Create(ctx context.Context, protectionContainer *v1alpha1.ProtectionContainer, opts v1.CreateOptions) (result *v1alpha1.ProtectionContainer, err error)

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

func (*FakeProtectionContainers) Delete

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

func (*FakeProtectionContainers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProtectionContainers) Get

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

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

func (*FakeProtectionContainers) List

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

func (*FakeProtectionContainers) Patch

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

Patch applies the patch and returns the patched protectionContainer.

func (*FakeProtectionContainers) Update

func (c *FakeProtectionContainers) Update(ctx context.Context, protectionContainer *v1alpha1.ProtectionContainer, opts v1.UpdateOptions) (result *v1alpha1.ProtectionContainer, err error)

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

func (*FakeProtectionContainers) UpdateStatus

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

func (*FakeProtectionContainers) Watch

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

type FakeReplicatedVms

type FakeReplicatedVms struct {
	Fake *FakeSiterecoveryV1alpha1
	// contains filtered or unexported fields
}

FakeReplicatedVms implements ReplicatedVmInterface

func (*FakeReplicatedVms) Create

func (c *FakeReplicatedVms) Create(ctx context.Context, replicatedVm *v1alpha1.ReplicatedVm, opts v1.CreateOptions) (result *v1alpha1.ReplicatedVm, err error)

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

func (*FakeReplicatedVms) Delete

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

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

func (*FakeReplicatedVms) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeReplicatedVms) Get

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

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

func (*FakeReplicatedVms) List

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

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

func (*FakeReplicatedVms) Patch

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

Patch applies the patch and returns the patched replicatedVm.

func (*FakeReplicatedVms) Update

func (c *FakeReplicatedVms) Update(ctx context.Context, replicatedVm *v1alpha1.ReplicatedVm, opts v1.UpdateOptions) (result *v1alpha1.ReplicatedVm, err error)

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

func (*FakeReplicatedVms) UpdateStatus

func (c *FakeReplicatedVms) UpdateStatus(ctx context.Context, replicatedVm *v1alpha1.ReplicatedVm, opts v1.UpdateOptions) (*v1alpha1.ReplicatedVm, error)

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

func (*FakeReplicatedVms) Watch

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

type FakeReplicationPolicies

type FakeReplicationPolicies struct {
	Fake *FakeSiterecoveryV1alpha1
	// contains filtered or unexported fields
}

FakeReplicationPolicies implements ReplicationPolicyInterface

func (*FakeReplicationPolicies) Create

func (c *FakeReplicationPolicies) Create(ctx context.Context, replicationPolicy *v1alpha1.ReplicationPolicy, opts v1.CreateOptions) (result *v1alpha1.ReplicationPolicy, err error)

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

func (*FakeReplicationPolicies) Delete

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

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

func (*FakeReplicationPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeReplicationPolicies) Get

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

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

func (*FakeReplicationPolicies) List

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

func (*FakeReplicationPolicies) Patch

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

Patch applies the patch and returns the patched replicationPolicy.

func (*FakeReplicationPolicies) Update

func (c *FakeReplicationPolicies) Update(ctx context.Context, replicationPolicy *v1alpha1.ReplicationPolicy, opts v1.UpdateOptions) (result *v1alpha1.ReplicationPolicy, err error)

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

func (*FakeReplicationPolicies) UpdateStatus

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

func (*FakeReplicationPolicies) Watch

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

type FakeSiterecoveryV1alpha1

type FakeSiterecoveryV1alpha1 struct {
	*testing.Fake
}

func (*FakeSiterecoveryV1alpha1) Fabrics

func (*FakeSiterecoveryV1alpha1) NetworkMappings

func (c *FakeSiterecoveryV1alpha1) NetworkMappings(namespace string) v1alpha1.NetworkMappingInterface

func (*FakeSiterecoveryV1alpha1) ProtectionContainerMappings

func (c *FakeSiterecoveryV1alpha1) ProtectionContainerMappings(namespace string) v1alpha1.ProtectionContainerMappingInterface

func (*FakeSiterecoveryV1alpha1) ProtectionContainers

func (c *FakeSiterecoveryV1alpha1) ProtectionContainers(namespace string) v1alpha1.ProtectionContainerInterface

func (*FakeSiterecoveryV1alpha1) RESTClient

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

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

func (*FakeSiterecoveryV1alpha1) ReplicatedVms

func (c *FakeSiterecoveryV1alpha1) ReplicatedVms(namespace string) v1alpha1.ReplicatedVmInterface

func (*FakeSiterecoveryV1alpha1) ReplicationPolicies

func (c *FakeSiterecoveryV1alpha1) ReplicationPolicies(namespace string) v1alpha1.ReplicationPolicyInterface

Jump to

Keyboard shortcuts

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