fake

package
Version: v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2016 License: Apache-2.0, Apache-2.0 Imports: 8 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 FakeStorage

type FakeStorage struct {
	*testing.Fake
}

func (*FakeStorage) GetRESTClient

func (c *FakeStorage) GetRESTClient() *rest.RESTClient

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

func (*FakeStorage) StorageClasses

func (c *FakeStorage) StorageClasses() v1beta1.StorageClassInterface

type FakeStorageClasses

type FakeStorageClasses struct {
	Fake *FakeStorage
}

FakeStorageClasses implements StorageClassInterface

func (*FakeStorageClasses) Create

func (c *FakeStorageClasses) Create(storageClass *v1beta1.StorageClass) (result *v1beta1.StorageClass, err error)

func (*FakeStorageClasses) Delete

func (c *FakeStorageClasses) Delete(name string, options *api.DeleteOptions) error

func (*FakeStorageClasses) DeleteCollection

func (c *FakeStorageClasses) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error

func (*FakeStorageClasses) Get

func (c *FakeStorageClasses) Get(name string) (result *v1beta1.StorageClass, err error)

func (*FakeStorageClasses) List

func (c *FakeStorageClasses) List(opts api.ListOptions) (result *v1beta1.StorageClassList, err error)

func (*FakeStorageClasses) Patch

func (c *FakeStorageClasses) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.StorageClass, err error)

Patch applies the patch and returns the patched storageClass.

func (*FakeStorageClasses) Update

func (c *FakeStorageClasses) Update(storageClass *v1beta1.StorageClass) (result *v1beta1.StorageClass, err error)

func (*FakeStorageClasses) Watch

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

Jump to

Keyboard shortcuts

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