fake

package
v1.14.9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0, 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 FakeCSIDrivers

type FakeCSIDrivers struct {
	Fake *FakeCsiV1alpha1
}

FakeCSIDrivers implements CSIDriverInterface

func (*FakeCSIDrivers) Create

func (c *FakeCSIDrivers) Create(cSIDriver *v1alpha1.CSIDriver) (result *v1alpha1.CSIDriver, err error)

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

func (*FakeCSIDrivers) Delete

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

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

func (*FakeCSIDrivers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCSIDrivers) Get

func (c *FakeCSIDrivers) Get(name string, options v1.GetOptions) (result *v1alpha1.CSIDriver, err error)

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

func (*FakeCSIDrivers) List

func (c *FakeCSIDrivers) List(opts v1.ListOptions) (result *v1alpha1.CSIDriverList, err error)

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

func (*FakeCSIDrivers) Patch

func (c *FakeCSIDrivers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.CSIDriver, err error)

Patch applies the patch and returns the patched cSIDriver.

func (*FakeCSIDrivers) Update

func (c *FakeCSIDrivers) Update(cSIDriver *v1alpha1.CSIDriver) (result *v1alpha1.CSIDriver, err error)

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

func (*FakeCSIDrivers) Watch

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

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

type FakeCSINodeInfos

type FakeCSINodeInfos struct {
	Fake *FakeCsiV1alpha1
}

FakeCSINodeInfos implements CSINodeInfoInterface

func (*FakeCSINodeInfos) Create

func (c *FakeCSINodeInfos) Create(cSINodeInfo *v1alpha1.CSINodeInfo) (result *v1alpha1.CSINodeInfo, err error)

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

func (*FakeCSINodeInfos) Delete

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

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

func (*FakeCSINodeInfos) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCSINodeInfos) Get

func (c *FakeCSINodeInfos) Get(name string, options v1.GetOptions) (result *v1alpha1.CSINodeInfo, err error)

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

func (*FakeCSINodeInfos) List

func (c *FakeCSINodeInfos) List(opts v1.ListOptions) (result *v1alpha1.CSINodeInfoList, err error)

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

func (*FakeCSINodeInfos) Patch

func (c *FakeCSINodeInfos) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.CSINodeInfo, err error)

Patch applies the patch and returns the patched cSINodeInfo.

func (*FakeCSINodeInfos) Update

func (c *FakeCSINodeInfos) Update(cSINodeInfo *v1alpha1.CSINodeInfo) (result *v1alpha1.CSINodeInfo, err error)

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

func (*FakeCSINodeInfos) UpdateStatus added in v1.13.0

func (c *FakeCSINodeInfos) UpdateStatus(cSINodeInfo *v1alpha1.CSINodeInfo) (*v1alpha1.CSINodeInfo, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeCSINodeInfos) Watch

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

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

type FakeCsiV1alpha1

type FakeCsiV1alpha1 struct {
	*testing.Fake
}

func (*FakeCsiV1alpha1) CSIDrivers

func (*FakeCsiV1alpha1) CSINodeInfos

func (c *FakeCsiV1alpha1) CSINodeInfos() v1alpha1.CSINodeInfoInterface

func (*FakeCsiV1alpha1) RESTClient

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