fake

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: Apache-2.0 Imports: 9 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 FakeCStorPoolClusters

type FakeCStorPoolClusters struct {
	Fake *FakeCstorV1
	// contains filtered or unexported fields
}

FakeCStorPoolClusters implements CStorPoolClusterInterface

func (*FakeCStorPoolClusters) Create

func (c *FakeCStorPoolClusters) Create(cStorPoolCluster *cstorv1.CStorPoolCluster) (result *cstorv1.CStorPoolCluster, err error)

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

func (*FakeCStorPoolClusters) Delete

func (c *FakeCStorPoolClusters) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeCStorPoolClusters) DeleteCollection

func (c *FakeCStorPoolClusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCStorPoolClusters) Get

func (c *FakeCStorPoolClusters) Get(name string, options v1.GetOptions) (result *cstorv1.CStorPoolCluster, err error)

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

func (*FakeCStorPoolClusters) List

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

func (*FakeCStorPoolClusters) Patch

func (c *FakeCStorPoolClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *cstorv1.CStorPoolCluster, err error)

Patch applies the patch and returns the patched cStorPoolCluster.

func (*FakeCStorPoolClusters) Update

func (c *FakeCStorPoolClusters) Update(cStorPoolCluster *cstorv1.CStorPoolCluster) (result *cstorv1.CStorPoolCluster, err error)

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

func (*FakeCStorPoolClusters) Watch

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

type FakeCStorPoolInstances

type FakeCStorPoolInstances struct {
	Fake *FakeCstorV1
	// contains filtered or unexported fields
}

FakeCStorPoolInstances implements CStorPoolInstanceInterface

func (*FakeCStorPoolInstances) Create

func (c *FakeCStorPoolInstances) Create(cStorPoolInstance *cstorv1.CStorPoolInstance) (result *cstorv1.CStorPoolInstance, err error)

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

func (*FakeCStorPoolInstances) Delete

func (c *FakeCStorPoolInstances) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeCStorPoolInstances) DeleteCollection

func (c *FakeCStorPoolInstances) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCStorPoolInstances) Get

func (c *FakeCStorPoolInstances) Get(name string, options v1.GetOptions) (result *cstorv1.CStorPoolInstance, err error)

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

func (*FakeCStorPoolInstances) List

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

func (*FakeCStorPoolInstances) Patch

func (c *FakeCStorPoolInstances) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *cstorv1.CStorPoolInstance, err error)

Patch applies the patch and returns the patched cStorPoolInstance.

func (*FakeCStorPoolInstances) Update

func (c *FakeCStorPoolInstances) Update(cStorPoolInstance *cstorv1.CStorPoolInstance) (result *cstorv1.CStorPoolInstance, err error)

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

func (*FakeCStorPoolInstances) Watch

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

type FakeCStorVolumeConfigs

type FakeCStorVolumeConfigs struct {
	Fake *FakeCstorV1
	// contains filtered or unexported fields
}

FakeCStorVolumeConfigs implements CStorVolumeConfigInterface

func (*FakeCStorVolumeConfigs) Create

func (c *FakeCStorVolumeConfigs) Create(cStorVolumeConfig *cstorv1.CStorVolumeConfig) (result *cstorv1.CStorVolumeConfig, err error)

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

func (*FakeCStorVolumeConfigs) Delete

func (c *FakeCStorVolumeConfigs) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeCStorVolumeConfigs) DeleteCollection

func (c *FakeCStorVolumeConfigs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCStorVolumeConfigs) Get

func (c *FakeCStorVolumeConfigs) Get(name string, options v1.GetOptions) (result *cstorv1.CStorVolumeConfig, err error)

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

func (*FakeCStorVolumeConfigs) List

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

func (*FakeCStorVolumeConfigs) Patch

func (c *FakeCStorVolumeConfigs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *cstorv1.CStorVolumeConfig, err error)

Patch applies the patch and returns the patched cStorVolumeConfig.

func (*FakeCStorVolumeConfigs) Update

func (c *FakeCStorVolumeConfigs) Update(cStorVolumeConfig *cstorv1.CStorVolumeConfig) (result *cstorv1.CStorVolumeConfig, err error)

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

func (*FakeCStorVolumeConfigs) UpdateStatus

func (c *FakeCStorVolumeConfigs) UpdateStatus(cStorVolumeConfig *cstorv1.CStorVolumeConfig) (*cstorv1.CStorVolumeConfig, error)

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

func (*FakeCStorVolumeConfigs) Watch

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

type FakeCStorVolumePolicies

type FakeCStorVolumePolicies struct {
	Fake *FakeCstorV1
	// contains filtered or unexported fields
}

FakeCStorVolumePolicies implements CStorVolumePolicyInterface

func (*FakeCStorVolumePolicies) Create

func (c *FakeCStorVolumePolicies) Create(cStorVolumePolicy *cstorv1.CStorVolumePolicy) (result *cstorv1.CStorVolumePolicy, err error)

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

func (*FakeCStorVolumePolicies) Delete

func (c *FakeCStorVolumePolicies) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeCStorVolumePolicies) DeleteCollection

func (c *FakeCStorVolumePolicies) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCStorVolumePolicies) Get

func (c *FakeCStorVolumePolicies) Get(name string, options v1.GetOptions) (result *cstorv1.CStorVolumePolicy, err error)

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

func (*FakeCStorVolumePolicies) List

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

func (*FakeCStorVolumePolicies) Patch

func (c *FakeCStorVolumePolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *cstorv1.CStorVolumePolicy, err error)

Patch applies the patch and returns the patched cStorVolumePolicy.

func (*FakeCStorVolumePolicies) Update

func (c *FakeCStorVolumePolicies) Update(cStorVolumePolicy *cstorv1.CStorVolumePolicy) (result *cstorv1.CStorVolumePolicy, err error)

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

func (*FakeCStorVolumePolicies) UpdateStatus

func (c *FakeCStorVolumePolicies) UpdateStatus(cStorVolumePolicy *cstorv1.CStorVolumePolicy) (*cstorv1.CStorVolumePolicy, error)

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

func (*FakeCStorVolumePolicies) Watch

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

type FakeCStorVolumeReplicas

type FakeCStorVolumeReplicas struct {
	Fake *FakeCstorV1
	// contains filtered or unexported fields
}

FakeCStorVolumeReplicas implements CStorVolumeReplicaInterface

func (*FakeCStorVolumeReplicas) Create

func (c *FakeCStorVolumeReplicas) Create(cStorVolumeReplica *cstorv1.CStorVolumeReplica) (result *cstorv1.CStorVolumeReplica, err error)

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

func (*FakeCStorVolumeReplicas) Delete

func (c *FakeCStorVolumeReplicas) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeCStorVolumeReplicas) DeleteCollection

func (c *FakeCStorVolumeReplicas) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCStorVolumeReplicas) Get

func (c *FakeCStorVolumeReplicas) Get(name string, options v1.GetOptions) (result *cstorv1.CStorVolumeReplica, err error)

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

func (*FakeCStorVolumeReplicas) List

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

func (*FakeCStorVolumeReplicas) Patch

func (c *FakeCStorVolumeReplicas) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *cstorv1.CStorVolumeReplica, err error)

Patch applies the patch and returns the patched cStorVolumeReplica.

func (*FakeCStorVolumeReplicas) Update

func (c *FakeCStorVolumeReplicas) Update(cStorVolumeReplica *cstorv1.CStorVolumeReplica) (result *cstorv1.CStorVolumeReplica, err error)

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

func (*FakeCStorVolumeReplicas) Watch

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

type FakeCStorVolumes

type FakeCStorVolumes struct {
	Fake *FakeCstorV1
	// contains filtered or unexported fields
}

FakeCStorVolumes implements CStorVolumeInterface

func (*FakeCStorVolumes) Create

func (c *FakeCStorVolumes) Create(cStorVolume *cstorv1.CStorVolume) (result *cstorv1.CStorVolume, err error)

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

func (*FakeCStorVolumes) Delete

func (c *FakeCStorVolumes) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeCStorVolumes) DeleteCollection

func (c *FakeCStorVolumes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCStorVolumes) Get

func (c *FakeCStorVolumes) Get(name string, options v1.GetOptions) (result *cstorv1.CStorVolume, err error)

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

func (*FakeCStorVolumes) List

func (c *FakeCStorVolumes) List(opts v1.ListOptions) (result *cstorv1.CStorVolumeList, err error)

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

func (*FakeCStorVolumes) Patch

func (c *FakeCStorVolumes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *cstorv1.CStorVolume, err error)

Patch applies the patch and returns the patched cStorVolume.

func (*FakeCStorVolumes) Update

func (c *FakeCStorVolumes) Update(cStorVolume *cstorv1.CStorVolume) (result *cstorv1.CStorVolume, err error)

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

func (*FakeCStorVolumes) UpdateStatus

func (c *FakeCStorVolumes) UpdateStatus(cStorVolume *cstorv1.CStorVolume) (*cstorv1.CStorVolume, error)

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

func (*FakeCStorVolumes) Watch

func (c *FakeCStorVolumes) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeCstorV1

type FakeCstorV1 struct {
	*testing.Fake
}

func (*FakeCstorV1) CStorPoolClusters

func (c *FakeCstorV1) CStorPoolClusters(namespace string) v1.CStorPoolClusterInterface

func (*FakeCstorV1) CStorPoolInstances

func (c *FakeCstorV1) CStorPoolInstances(namespace string) v1.CStorPoolInstanceInterface

func (*FakeCstorV1) CStorVolumeConfigs

func (c *FakeCstorV1) CStorVolumeConfigs(namespace string) v1.CStorVolumeConfigInterface

func (*FakeCstorV1) CStorVolumePolicies

func (c *FakeCstorV1) CStorVolumePolicies(namespace string) v1.CStorVolumePolicyInterface

func (*FakeCstorV1) CStorVolumeReplicas

func (c *FakeCstorV1) CStorVolumeReplicas(namespace string) v1.CStorVolumeReplicaInterface

func (*FakeCstorV1) CStorVolumes

func (c *FakeCstorV1) CStorVolumes(namespace string) v1.CStorVolumeInterface

func (*FakeCstorV1) RESTClient

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

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

Jump to

Keyboard shortcuts

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