fake

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 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 FakeMinioV1alpha1

type FakeMinioV1alpha1 struct {
	*testing.Fake
}

func (*FakeMinioV1alpha1) ObjectStores

func (c *FakeMinioV1alpha1) ObjectStores(namespace string) v1alpha1.ObjectStoreInterface

func (*FakeMinioV1alpha1) RESTClient

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

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

type FakeObjectStores

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

FakeObjectStores implements ObjectStoreInterface

func (*FakeObjectStores) Create

func (c *FakeObjectStores) Create(objectStore *v1alpha1.ObjectStore) (result *v1alpha1.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 *v1alpha1.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 *v1alpha1.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 *v1alpha1.ObjectStore, err error)

Patch applies the patch and returns the patched objectStore.

func (*FakeObjectStores) Update

func (c *FakeObjectStores) Update(objectStore *v1alpha1.ObjectStore) (result *v1alpha1.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.

Jump to

Keyboard shortcuts

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