fake

package
v1.11.0-RC2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: Apache-2.0 Imports: 9 Imported by: 1

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 FakeBlockDeviceClaims

type FakeBlockDeviceClaims struct {
	Fake *FakeOpenebsV1alpha1
	// contains filtered or unexported fields
}

FakeBlockDeviceClaims implements BlockDeviceClaimInterface

func (*FakeBlockDeviceClaims) Create

func (c *FakeBlockDeviceClaims) Create(blockDeviceClaim *v1alpha1.BlockDeviceClaim) (result *v1alpha1.BlockDeviceClaim, err error)

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

func (*FakeBlockDeviceClaims) Delete

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

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

func (*FakeBlockDeviceClaims) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBlockDeviceClaims) Get

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

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

func (*FakeBlockDeviceClaims) List

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

func (*FakeBlockDeviceClaims) Patch

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

Patch applies the patch and returns the patched blockDeviceClaim.

func (*FakeBlockDeviceClaims) Update

func (c *FakeBlockDeviceClaims) Update(blockDeviceClaim *v1alpha1.BlockDeviceClaim) (result *v1alpha1.BlockDeviceClaim, err error)

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

func (*FakeBlockDeviceClaims) UpdateStatus

func (c *FakeBlockDeviceClaims) UpdateStatus(blockDeviceClaim *v1alpha1.BlockDeviceClaim) (*v1alpha1.BlockDeviceClaim, error)

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

func (*FakeBlockDeviceClaims) Watch

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

type FakeBlockDevices

type FakeBlockDevices struct {
	Fake *FakeOpenebsV1alpha1
	// contains filtered or unexported fields
}

FakeBlockDevices implements BlockDeviceInterface

func (*FakeBlockDevices) Create

func (c *FakeBlockDevices) Create(blockDevice *v1alpha1.BlockDevice) (result *v1alpha1.BlockDevice, err error)

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

func (*FakeBlockDevices) Delete

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

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

func (*FakeBlockDevices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBlockDevices) Get

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

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

func (*FakeBlockDevices) List

func (c *FakeBlockDevices) List(opts v1.ListOptions) (result *v1alpha1.BlockDeviceList, err error)

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

func (*FakeBlockDevices) Patch

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

Patch applies the patch and returns the patched blockDevice.

func (*FakeBlockDevices) Update

func (c *FakeBlockDevices) Update(blockDevice *v1alpha1.BlockDevice) (result *v1alpha1.BlockDevice, err error)

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

func (*FakeBlockDevices) UpdateStatus

func (c *FakeBlockDevices) UpdateStatus(blockDevice *v1alpha1.BlockDevice) (*v1alpha1.BlockDevice, error)

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

func (*FakeBlockDevices) Watch

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

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

type FakeDisks

type FakeDisks struct {
	Fake *FakeOpenebsV1alpha1
}

FakeDisks implements DiskInterface

func (*FakeDisks) Create

func (c *FakeDisks) Create(disk *v1alpha1.Disk) (result *v1alpha1.Disk, err error)

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

func (*FakeDisks) Delete

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

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

func (*FakeDisks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDisks) Get

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

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

func (*FakeDisks) List

func (c *FakeDisks) List(opts v1.ListOptions) (result *v1alpha1.DiskList, err error)

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

func (*FakeDisks) Patch

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

Patch applies the patch and returns the patched disk.

func (*FakeDisks) Update

func (c *FakeDisks) Update(disk *v1alpha1.Disk) (result *v1alpha1.Disk, err error)

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

func (*FakeDisks) UpdateStatus

func (c *FakeDisks) UpdateStatus(disk *v1alpha1.Disk) (*v1alpha1.Disk, error)

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

func (*FakeDisks) Watch

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

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

type FakeOpenebsV1alpha1

type FakeOpenebsV1alpha1 struct {
	*testing.Fake
}

func (*FakeOpenebsV1alpha1) BlockDeviceClaims

func (c *FakeOpenebsV1alpha1) BlockDeviceClaims(namespace string) v1alpha1.BlockDeviceClaimInterface

func (*FakeOpenebsV1alpha1) BlockDevices

func (c *FakeOpenebsV1alpha1) BlockDevices(namespace string) v1alpha1.BlockDeviceInterface

func (*FakeOpenebsV1alpha1) Disks

func (*FakeOpenebsV1alpha1) RESTClient

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