client-go: k8s.io/client-go/kubernetes/typed/storage/v1/fake Index | Files

package fake

import "k8s.io/client-go/kubernetes/typed/storage/v1/fake"

Package fake has the automatically generated clients.

Index

Package Files

doc.go fake_storage_client.go fake_storageclass.go

type FakeStorageClasses Uses

type FakeStorageClasses struct {
    Fake *FakeStorageV1
}

FakeStorageClasses implements StorageClassInterface

func (*FakeStorageClasses) Create Uses

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

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

func (*FakeStorageClasses) Delete Uses

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

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

func (*FakeStorageClasses) DeleteCollection Uses

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

DeleteCollection deletes a collection of objects.

func (*FakeStorageClasses) Get Uses

func (c *FakeStorageClasses) Get(name string, options v1.GetOptions) (result *storagev1.StorageClass, err error)

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

func (*FakeStorageClasses) List Uses

func (c *FakeStorageClasses) List(opts v1.ListOptions) (result *storagev1.StorageClassList, err error)

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

func (*FakeStorageClasses) Patch Uses

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

Patch applies the patch and returns the patched storageClass.

func (*FakeStorageClasses) Update Uses

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

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

func (*FakeStorageClasses) Watch Uses

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

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

type FakeStorageV1 Uses

type FakeStorageV1 struct {
    *testing.Fake
}

func (*FakeStorageV1) RESTClient Uses

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

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

func (*FakeStorageV1) StorageClasses Uses

func (c *FakeStorageV1) StorageClasses() v1.StorageClassInterface

Package fake imports 9 packages (graph) and is imported by 2 packages. Updated 2018-07-12. Refresh now. Tools for package owners.