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 FakeCephV1beta1

type FakeCephV1beta1 struct {
	*testing.Fake
}

func (*FakeCephV1beta1) Clusters

func (c *FakeCephV1beta1) Clusters(namespace string) v1beta1.ClusterInterface

func (*FakeCephV1beta1) Filesystems

func (c *FakeCephV1beta1) Filesystems(namespace string) v1beta1.FilesystemInterface

func (*FakeCephV1beta1) ObjectStoreUsers

func (c *FakeCephV1beta1) ObjectStoreUsers(namespace string) v1beta1.ObjectStoreUserInterface

func (*FakeCephV1beta1) ObjectStores

func (c *FakeCephV1beta1) ObjectStores(namespace string) v1beta1.ObjectStoreInterface

func (*FakeCephV1beta1) Pools

func (c *FakeCephV1beta1) Pools(namespace string) v1beta1.PoolInterface

func (*FakeCephV1beta1) RESTClient

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

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

type FakeClusters

type FakeClusters struct {
	Fake *FakeCephV1beta1
	// contains filtered or unexported fields
}

FakeClusters implements ClusterInterface

func (*FakeClusters) Create

func (c *FakeClusters) Create(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error)

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

func (*FakeClusters) Delete

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

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

func (*FakeClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusters) Get

func (c *FakeClusters) Get(name string, options v1.GetOptions) (result *v1beta1.Cluster, err error)

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

func (*FakeClusters) List

func (c *FakeClusters) List(opts v1.ListOptions) (result *v1beta1.ClusterList, err error)

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

func (*FakeClusters) Patch

func (c *FakeClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Cluster, err error)

Patch applies the patch and returns the patched cluster.

func (*FakeClusters) Update

func (c *FakeClusters) Update(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error)

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

func (*FakeClusters) Watch

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

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

type FakeFilesystems

type FakeFilesystems struct {
	Fake *FakeCephV1beta1
	// contains filtered or unexported fields
}

FakeFilesystems implements FilesystemInterface

func (*FakeFilesystems) Create

func (c *FakeFilesystems) Create(filesystem *v1beta1.Filesystem) (result *v1beta1.Filesystem, err error)

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

func (*FakeFilesystems) Delete

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

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

func (*FakeFilesystems) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFilesystems) Get

func (c *FakeFilesystems) Get(name string, options v1.GetOptions) (result *v1beta1.Filesystem, err error)

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

func (*FakeFilesystems) List

func (c *FakeFilesystems) List(opts v1.ListOptions) (result *v1beta1.FilesystemList, err error)

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

func (*FakeFilesystems) Patch

func (c *FakeFilesystems) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Filesystem, err error)

Patch applies the patch and returns the patched filesystem.

func (*FakeFilesystems) Update

func (c *FakeFilesystems) Update(filesystem *v1beta1.Filesystem) (result *v1beta1.Filesystem, err error)

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

func (*FakeFilesystems) Watch

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

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

type FakeObjectStoreUsers

type FakeObjectStoreUsers struct {
	Fake *FakeCephV1beta1
	// contains filtered or unexported fields
}

FakeObjectStoreUsers implements ObjectStoreUserInterface

func (*FakeObjectStoreUsers) Create

func (c *FakeObjectStoreUsers) Create(objectStoreUser *v1beta1.ObjectStoreUser) (result *v1beta1.ObjectStoreUser, err error)

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

func (*FakeObjectStoreUsers) Delete

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

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

func (*FakeObjectStoreUsers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeObjectStoreUsers) Get

func (c *FakeObjectStoreUsers) Get(name string, options v1.GetOptions) (result *v1beta1.ObjectStoreUser, err error)

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

func (*FakeObjectStoreUsers) List

func (c *FakeObjectStoreUsers) List(opts v1.ListOptions) (result *v1beta1.ObjectStoreUserList, err error)

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

func (*FakeObjectStoreUsers) Patch

func (c *FakeObjectStoreUsers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.ObjectStoreUser, err error)

Patch applies the patch and returns the patched objectStoreUser.

func (*FakeObjectStoreUsers) Update

func (c *FakeObjectStoreUsers) Update(objectStoreUser *v1beta1.ObjectStoreUser) (result *v1beta1.ObjectStoreUser, err error)

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

func (*FakeObjectStoreUsers) Watch

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

type FakeObjectStores

type FakeObjectStores struct {
	Fake *FakeCephV1beta1
	// contains filtered or unexported fields
}

FakeObjectStores implements ObjectStoreInterface

func (*FakeObjectStores) Create

func (c *FakeObjectStores) Create(objectStore *v1beta1.ObjectStore) (result *v1beta1.ObjectStore, err error)

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

func (*FakeObjectStores) Delete

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

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

func (*FakeObjectStores) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeObjectStores) Get

func (c *FakeObjectStores) Get(name string, options v1.GetOptions) (result *v1beta1.ObjectStore, err error)

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

func (*FakeObjectStores) List

func (c *FakeObjectStores) List(opts v1.ListOptions) (result *v1beta1.ObjectStoreList, err error)

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

func (*FakeObjectStores) Patch

func (c *FakeObjectStores) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.ObjectStore, err error)

Patch applies the patch and returns the patched objectStore.

func (*FakeObjectStores) Update

func (c *FakeObjectStores) Update(objectStore *v1beta1.ObjectStore) (result *v1beta1.ObjectStore, err error)

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

func (*FakeObjectStores) Watch

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

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

type FakePools

type FakePools struct {
	Fake *FakeCephV1beta1
	// contains filtered or unexported fields
}

FakePools implements PoolInterface

func (*FakePools) Create

func (c *FakePools) Create(pool *v1beta1.Pool) (result *v1beta1.Pool, err error)

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

func (*FakePools) Delete

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

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

func (*FakePools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePools) Get

func (c *FakePools) Get(name string, options v1.GetOptions) (result *v1beta1.Pool, err error)

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

func (*FakePools) List

func (c *FakePools) List(opts v1.ListOptions) (result *v1beta1.PoolList, err error)

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

func (*FakePools) Patch

func (c *FakePools) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Pool, err error)

Patch applies the patch and returns the patched pool.

func (*FakePools) Update

func (c *FakePools) Update(pool *v1beta1.Pool) (result *v1beta1.Pool, err error)

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

func (*FakePools) Watch

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

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

Jump to

Keyboard shortcuts

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