fake

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 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 FakeCephBlockPools

type FakeCephBlockPools struct {
	Fake *FakeCephV1
	// contains filtered or unexported fields
}

FakeCephBlockPools implements CephBlockPoolInterface

func (*FakeCephBlockPools) Create

func (c *FakeCephBlockPools) Create(cephBlockPool *cephrookiov1.CephBlockPool) (result *cephrookiov1.CephBlockPool, err error)

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

func (*FakeCephBlockPools) Delete

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

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

func (*FakeCephBlockPools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCephBlockPools) Get

func (c *FakeCephBlockPools) Get(name string, options v1.GetOptions) (result *cephrookiov1.CephBlockPool, err error)

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

func (*FakeCephBlockPools) List

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

func (*FakeCephBlockPools) Patch

func (c *FakeCephBlockPools) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *cephrookiov1.CephBlockPool, err error)

Patch applies the patch and returns the patched cephBlockPool.

func (*FakeCephBlockPools) Update

func (c *FakeCephBlockPools) Update(cephBlockPool *cephrookiov1.CephBlockPool) (result *cephrookiov1.CephBlockPool, err error)

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

func (*FakeCephBlockPools) Watch

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

type FakeCephClusters

type FakeCephClusters struct {
	Fake *FakeCephV1
	// contains filtered or unexported fields
}

FakeCephClusters implements CephClusterInterface

func (*FakeCephClusters) Create

func (c *FakeCephClusters) Create(cephCluster *cephrookiov1.CephCluster) (result *cephrookiov1.CephCluster, err error)

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

func (*FakeCephClusters) Delete

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

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

func (*FakeCephClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCephClusters) Get

func (c *FakeCephClusters) Get(name string, options v1.GetOptions) (result *cephrookiov1.CephCluster, err error)

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

func (*FakeCephClusters) List

func (c *FakeCephClusters) List(opts v1.ListOptions) (result *cephrookiov1.CephClusterList, err error)

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

func (*FakeCephClusters) Patch

func (c *FakeCephClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *cephrookiov1.CephCluster, err error)

Patch applies the patch and returns the patched cephCluster.

func (*FakeCephClusters) Update

func (c *FakeCephClusters) Update(cephCluster *cephrookiov1.CephCluster) (result *cephrookiov1.CephCluster, err error)

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

func (*FakeCephClusters) Watch

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

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

type FakeCephFilesystems

type FakeCephFilesystems struct {
	Fake *FakeCephV1
	// contains filtered or unexported fields
}

FakeCephFilesystems implements CephFilesystemInterface

func (*FakeCephFilesystems) Create

func (c *FakeCephFilesystems) Create(cephFilesystem *cephrookiov1.CephFilesystem) (result *cephrookiov1.CephFilesystem, err error)

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

func (*FakeCephFilesystems) Delete

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

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

func (*FakeCephFilesystems) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCephFilesystems) Get

func (c *FakeCephFilesystems) Get(name string, options v1.GetOptions) (result *cephrookiov1.CephFilesystem, err error)

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

func (*FakeCephFilesystems) List

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

func (*FakeCephFilesystems) Patch

func (c *FakeCephFilesystems) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *cephrookiov1.CephFilesystem, err error)

Patch applies the patch and returns the patched cephFilesystem.

func (*FakeCephFilesystems) Update

func (c *FakeCephFilesystems) Update(cephFilesystem *cephrookiov1.CephFilesystem) (result *cephrookiov1.CephFilesystem, err error)

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

func (*FakeCephFilesystems) Watch

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

type FakeCephNFSes added in v1.0.0

type FakeCephNFSes struct {
	Fake *FakeCephV1
	// contains filtered or unexported fields
}

FakeCephNFSes implements CephNFSInterface

func (*FakeCephNFSes) Create added in v1.0.0

func (c *FakeCephNFSes) Create(cephNFS *cephrookiov1.CephNFS) (result *cephrookiov1.CephNFS, err error)

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

func (*FakeCephNFSes) Delete added in v1.0.0

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

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

func (*FakeCephNFSes) DeleteCollection added in v1.0.0

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

DeleteCollection deletes a collection of objects.

func (*FakeCephNFSes) Get added in v1.0.0

func (c *FakeCephNFSes) Get(name string, options v1.GetOptions) (result *cephrookiov1.CephNFS, err error)

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

func (*FakeCephNFSes) List added in v1.0.0

func (c *FakeCephNFSes) List(opts v1.ListOptions) (result *cephrookiov1.CephNFSList, err error)

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

func (*FakeCephNFSes) Patch added in v1.0.0

func (c *FakeCephNFSes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *cephrookiov1.CephNFS, err error)

Patch applies the patch and returns the patched cephNFS.

func (*FakeCephNFSes) Update added in v1.0.0

func (c *FakeCephNFSes) Update(cephNFS *cephrookiov1.CephNFS) (result *cephrookiov1.CephNFS, err error)

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

func (*FakeCephNFSes) Watch added in v1.0.0

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

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

type FakeCephObjectStoreUsers

type FakeCephObjectStoreUsers struct {
	Fake *FakeCephV1
	// contains filtered or unexported fields
}

FakeCephObjectStoreUsers implements CephObjectStoreUserInterface

func (*FakeCephObjectStoreUsers) Create

func (c *FakeCephObjectStoreUsers) Create(cephObjectStoreUser *cephrookiov1.CephObjectStoreUser) (result *cephrookiov1.CephObjectStoreUser, err error)

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

func (*FakeCephObjectStoreUsers) Delete

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

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

func (*FakeCephObjectStoreUsers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCephObjectStoreUsers) Get

func (c *FakeCephObjectStoreUsers) Get(name string, options v1.GetOptions) (result *cephrookiov1.CephObjectStoreUser, err error)

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

func (*FakeCephObjectStoreUsers) List

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

func (*FakeCephObjectStoreUsers) Patch

func (c *FakeCephObjectStoreUsers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *cephrookiov1.CephObjectStoreUser, err error)

Patch applies the patch and returns the patched cephObjectStoreUser.

func (*FakeCephObjectStoreUsers) Update

func (c *FakeCephObjectStoreUsers) Update(cephObjectStoreUser *cephrookiov1.CephObjectStoreUser) (result *cephrookiov1.CephObjectStoreUser, err error)

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

func (*FakeCephObjectStoreUsers) Watch

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

type FakeCephObjectStores

type FakeCephObjectStores struct {
	Fake *FakeCephV1
	// contains filtered or unexported fields
}

FakeCephObjectStores implements CephObjectStoreInterface

func (*FakeCephObjectStores) Create

func (c *FakeCephObjectStores) Create(cephObjectStore *cephrookiov1.CephObjectStore) (result *cephrookiov1.CephObjectStore, err error)

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

func (*FakeCephObjectStores) Delete

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

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

func (*FakeCephObjectStores) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCephObjectStores) Get

func (c *FakeCephObjectStores) Get(name string, options v1.GetOptions) (result *cephrookiov1.CephObjectStore, err error)

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

func (*FakeCephObjectStores) List

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

func (*FakeCephObjectStores) Patch

func (c *FakeCephObjectStores) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *cephrookiov1.CephObjectStore, err error)

Patch applies the patch and returns the patched cephObjectStore.

func (*FakeCephObjectStores) Update

func (c *FakeCephObjectStores) Update(cephObjectStore *cephrookiov1.CephObjectStore) (result *cephrookiov1.CephObjectStore, err error)

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

func (*FakeCephObjectStores) Watch

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

type FakeCephV1

type FakeCephV1 struct {
	*testing.Fake
}

func (*FakeCephV1) CephBlockPools

func (c *FakeCephV1) CephBlockPools(namespace string) v1.CephBlockPoolInterface

func (*FakeCephV1) CephClusters

func (c *FakeCephV1) CephClusters(namespace string) v1.CephClusterInterface

func (*FakeCephV1) CephFilesystems

func (c *FakeCephV1) CephFilesystems(namespace string) v1.CephFilesystemInterface

func (*FakeCephV1) CephNFSes added in v1.0.0

func (c *FakeCephV1) CephNFSes(namespace string) v1.CephNFSInterface

func (*FakeCephV1) CephObjectStoreUsers

func (c *FakeCephV1) CephObjectStoreUsers(namespace string) v1.CephObjectStoreUserInterface

func (*FakeCephV1) CephObjectStores

func (c *FakeCephV1) CephObjectStores(namespace string) v1.CephObjectStoreInterface

func (*FakeCephV1) RESTClient

func (c *FakeCephV1) 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