fake

package
v0.0.0-...-ff6338b Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 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 FakeCASTemplates

type FakeCASTemplates struct {
	Fake *FakeOpenebsV1alpha1
}

FakeCASTemplates implements CASTemplateInterface

func (*FakeCASTemplates) Create

func (c *FakeCASTemplates) Create(cASTemplate *v1alpha1.CASTemplate) (result *v1alpha1.CASTemplate, err error)

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

func (*FakeCASTemplates) Delete

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

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

func (*FakeCASTemplates) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCASTemplates) Get

func (c *FakeCASTemplates) Get(name string, options v1.GetOptions) (result *v1alpha1.CASTemplate, err error)

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

func (*FakeCASTemplates) List

func (c *FakeCASTemplates) List(opts v1.ListOptions) (result *v1alpha1.CASTemplateList, err error)

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

func (*FakeCASTemplates) Patch

func (c *FakeCASTemplates) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.CASTemplate, err error)

Patch applies the patch and returns the patched cASTemplate.

func (*FakeCASTemplates) Update

func (c *FakeCASTemplates) Update(cASTemplate *v1alpha1.CASTemplate) (result *v1alpha1.CASTemplate, err error)

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

func (*FakeCASTemplates) Watch

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

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

type FakeCStorPools

type FakeCStorPools struct {
	Fake *FakeOpenebsV1alpha1
}

FakeCStorPools implements CStorPoolInterface

func (*FakeCStorPools) Create

func (c *FakeCStorPools) Create(cStorPool *v1alpha1.CStorPool) (result *v1alpha1.CStorPool, err error)

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

func (*FakeCStorPools) Delete

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

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

func (*FakeCStorPools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCStorPools) Get

func (c *FakeCStorPools) Get(name string, options v1.GetOptions) (result *v1alpha1.CStorPool, err error)

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

func (*FakeCStorPools) List

func (c *FakeCStorPools) List(opts v1.ListOptions) (result *v1alpha1.CStorPoolList, err error)

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

func (*FakeCStorPools) Patch

func (c *FakeCStorPools) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.CStorPool, err error)

Patch applies the patch and returns the patched cStorPool.

func (*FakeCStorPools) Update

func (c *FakeCStorPools) Update(cStorPool *v1alpha1.CStorPool) (result *v1alpha1.CStorPool, err error)

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

func (*FakeCStorPools) Watch

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

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

type FakeCStorVolumeReplicas

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

FakeCStorVolumeReplicas implements CStorVolumeReplicaInterface

func (*FakeCStorVolumeReplicas) Create

func (c *FakeCStorVolumeReplicas) Create(cStorVolumeReplica *v1alpha1.CStorVolumeReplica) (result *v1alpha1.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 *v1alpha1.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 *v1alpha1.CStorVolumeReplica, err error)

Patch applies the patch and returns the patched cStorVolumeReplica.

func (*FakeCStorVolumeReplicas) Update

func (c *FakeCStorVolumeReplicas) Update(cStorVolumeReplica *v1alpha1.CStorVolumeReplica) (result *v1alpha1.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 *FakeOpenebsV1alpha1
	// contains filtered or unexported fields
}

FakeCStorVolumes implements CStorVolumeInterface

func (*FakeCStorVolumes) Create

func (c *FakeCStorVolumes) Create(cStorVolume *v1alpha1.CStorVolume) (result *v1alpha1.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 *v1alpha1.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 *v1alpha1.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 *v1alpha1.CStorVolume, err error)

Patch applies the patch and returns the patched cStorVolume.

func (*FakeCStorVolumes) Update

func (c *FakeCStorVolumes) Update(cStorVolume *v1alpha1.CStorVolume) (result *v1alpha1.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) Watch

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

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

type FakeDisks

type FakeDisks struct {
	Fake *FakeOpenebsV1alpha1
}

FakeDisks implements DiskInterface

func (*FakeDisks) Create

func (c *FakeDisks) Create(disk *v1alpha1.Disk) (result *v1alpha1.Disk, err error)

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

func (*FakeDisks) Delete

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

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

func (*FakeDisks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDisks) Get

func (c *FakeDisks) Get(name string, options v1.GetOptions) (result *v1alpha1.Disk, err error)

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

func (*FakeDisks) List

func (c *FakeDisks) List(opts v1.ListOptions) (result *v1alpha1.DiskList, err error)

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

func (*FakeDisks) Patch

func (c *FakeDisks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Disk, err error)

Patch applies the patch and returns the patched disk.

func (*FakeDisks) Update

func (c *FakeDisks) Update(disk *v1alpha1.Disk) (result *v1alpha1.Disk, err error)

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

func (*FakeDisks) Watch

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

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

type FakeOpenebsV1alpha1

type FakeOpenebsV1alpha1 struct {
	*testing.Fake
}

func (*FakeOpenebsV1alpha1) CASTemplates

func (*FakeOpenebsV1alpha1) CStorPools

func (*FakeOpenebsV1alpha1) CStorVolumeReplicas

func (c *FakeOpenebsV1alpha1) CStorVolumeReplicas(namespace string) v1alpha1.CStorVolumeReplicaInterface

func (*FakeOpenebsV1alpha1) CStorVolumes

func (c *FakeOpenebsV1alpha1) CStorVolumes(namespace string) v1alpha1.CStorVolumeInterface

func (*FakeOpenebsV1alpha1) Disks

func (*FakeOpenebsV1alpha1) RESTClient

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

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

func (*FakeOpenebsV1alpha1) RunTasks

func (c *FakeOpenebsV1alpha1) RunTasks(namespace string) v1alpha1.RunTaskInterface

func (*FakeOpenebsV1alpha1) StoragePoolClaims

func (*FakeOpenebsV1alpha1) StoragePools

type FakeRunTasks

type FakeRunTasks struct {
	Fake *FakeOpenebsV1alpha1
	// contains filtered or unexported fields
}

FakeRunTasks implements RunTaskInterface

func (*FakeRunTasks) Create

func (c *FakeRunTasks) Create(runTask *v1alpha1.RunTask) (result *v1alpha1.RunTask, err error)

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

func (*FakeRunTasks) Delete

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

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

func (*FakeRunTasks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRunTasks) Get

func (c *FakeRunTasks) Get(name string, options v1.GetOptions) (result *v1alpha1.RunTask, err error)

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

func (*FakeRunTasks) List

func (c *FakeRunTasks) List(opts v1.ListOptions) (result *v1alpha1.RunTaskList, err error)

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

func (*FakeRunTasks) Patch

func (c *FakeRunTasks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.RunTask, err error)

Patch applies the patch and returns the patched runTask.

func (*FakeRunTasks) Update

func (c *FakeRunTasks) Update(runTask *v1alpha1.RunTask) (result *v1alpha1.RunTask, err error)

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

func (*FakeRunTasks) Watch

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

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

type FakeStoragePoolClaims

type FakeStoragePoolClaims struct {
	Fake *FakeOpenebsV1alpha1
}

FakeStoragePoolClaims implements StoragePoolClaimInterface

func (*FakeStoragePoolClaims) Create

func (c *FakeStoragePoolClaims) Create(storagePoolClaim *v1alpha1.StoragePoolClaim) (result *v1alpha1.StoragePoolClaim, err error)

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

func (*FakeStoragePoolClaims) Delete

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

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

func (*FakeStoragePoolClaims) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeStoragePoolClaims) Get

func (c *FakeStoragePoolClaims) Get(name string, options v1.GetOptions) (result *v1alpha1.StoragePoolClaim, err error)

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

func (*FakeStoragePoolClaims) List

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

func (*FakeStoragePoolClaims) Patch

func (c *FakeStoragePoolClaims) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.StoragePoolClaim, err error)

Patch applies the patch and returns the patched storagePoolClaim.

func (*FakeStoragePoolClaims) Update

func (c *FakeStoragePoolClaims) Update(storagePoolClaim *v1alpha1.StoragePoolClaim) (result *v1alpha1.StoragePoolClaim, err error)

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

func (*FakeStoragePoolClaims) Watch

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

type FakeStoragePools

type FakeStoragePools struct {
	Fake *FakeOpenebsV1alpha1
}

FakeStoragePools implements StoragePoolInterface

func (*FakeStoragePools) Create

func (c *FakeStoragePools) Create(storagePool *v1alpha1.StoragePool) (result *v1alpha1.StoragePool, err error)

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

func (*FakeStoragePools) Delete

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

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

func (*FakeStoragePools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeStoragePools) Get

func (c *FakeStoragePools) Get(name string, options v1.GetOptions) (result *v1alpha1.StoragePool, err error)

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

func (*FakeStoragePools) List

func (c *FakeStoragePools) List(opts v1.ListOptions) (result *v1alpha1.StoragePoolList, err error)

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

func (*FakeStoragePools) Patch

func (c *FakeStoragePools) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.StoragePool, err error)

Patch applies the patch and returns the patched storagePool.

func (*FakeStoragePools) Update

func (c *FakeStoragePools) Update(storagePool *v1alpha1.StoragePool) (result *v1alpha1.StoragePool, err error)

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

func (*FakeStoragePools) Watch

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

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

Jump to

Keyboard shortcuts

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