fake

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 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 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 FakeCStorBackups added in v1.11.0

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

FakeCStorBackups implements CStorBackupInterface

func (*FakeCStorBackups) Create added in v1.11.0

func (c *FakeCStorBackups) Create(cStorBackup *v1alpha1.CStorBackup) (result *v1alpha1.CStorBackup, err error)

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

func (*FakeCStorBackups) Delete added in v1.11.0

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

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

func (*FakeCStorBackups) DeleteCollection added in v1.11.0

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

DeleteCollection deletes a collection of objects.

func (*FakeCStorBackups) Get added in v1.11.0

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

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

func (*FakeCStorBackups) List added in v1.11.0

func (c *FakeCStorBackups) List(opts v1.ListOptions) (result *v1alpha1.CStorBackupList, err error)

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

func (*FakeCStorBackups) Patch added in v1.11.0

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

Patch applies the patch and returns the patched cStorBackup.

func (*FakeCStorBackups) Update added in v1.11.0

func (c *FakeCStorBackups) Update(cStorBackup *v1alpha1.CStorBackup) (result *v1alpha1.CStorBackup, err error)

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

func (*FakeCStorBackups) Watch added in v1.11.0

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

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

type FakeCStorCompletedBackups added in v1.11.0

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

FakeCStorCompletedBackups implements CStorCompletedBackupInterface

func (*FakeCStorCompletedBackups) Create added in v1.11.0

func (c *FakeCStorCompletedBackups) Create(cStorCompletedBackup *v1alpha1.CStorCompletedBackup) (result *v1alpha1.CStorCompletedBackup, err error)

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

func (*FakeCStorCompletedBackups) Delete added in v1.11.0

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

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

func (*FakeCStorCompletedBackups) DeleteCollection added in v1.11.0

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

DeleteCollection deletes a collection of objects.

func (*FakeCStorCompletedBackups) Get added in v1.11.0

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

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

func (*FakeCStorCompletedBackups) List added in v1.11.0

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

func (*FakeCStorCompletedBackups) Patch added in v1.11.0

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

Patch applies the patch and returns the patched cStorCompletedBackup.

func (*FakeCStorCompletedBackups) Update added in v1.11.0

func (c *FakeCStorCompletedBackups) Update(cStorCompletedBackup *v1alpha1.CStorCompletedBackup) (result *v1alpha1.CStorCompletedBackup, err error)

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

func (*FakeCStorCompletedBackups) Watch added in v1.11.0

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

type FakeCStorRestores added in v1.11.0

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

FakeCStorRestores implements CStorRestoreInterface

func (*FakeCStorRestores) Create added in v1.11.0

func (c *FakeCStorRestores) Create(cStorRestore *v1alpha1.CStorRestore) (result *v1alpha1.CStorRestore, err error)

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

func (*FakeCStorRestores) Delete added in v1.11.0

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

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

func (*FakeCStorRestores) DeleteCollection added in v1.11.0

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

DeleteCollection deletes a collection of objects.

func (*FakeCStorRestores) Get added in v1.11.0

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

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

func (*FakeCStorRestores) List added in v1.11.0

func (c *FakeCStorRestores) List(opts v1.ListOptions) (result *v1alpha1.CStorRestoreList, err error)

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

func (*FakeCStorRestores) Patch added in v1.11.0

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

Patch applies the patch and returns the patched cStorRestore.

func (*FakeCStorRestores) Update added in v1.11.0

func (c *FakeCStorRestores) Update(cStorRestore *v1alpha1.CStorRestore) (result *v1alpha1.CStorRestore, err error)

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

func (*FakeCStorRestores) Watch added in v1.11.0

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

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) CStorBackups added in v1.11.0

func (c *FakeOpenebsV1alpha1) CStorBackups(namespace string) v1alpha1.CStorBackupInterface

func (*FakeOpenebsV1alpha1) CStorCompletedBackups added in v1.11.0

func (c *FakeOpenebsV1alpha1) CStorCompletedBackups(namespace string) v1alpha1.CStorCompletedBackupInterface

func (*FakeOpenebsV1alpha1) CStorRestores added in v1.11.0

func (c *FakeOpenebsV1alpha1) CStorRestores(namespace string) v1alpha1.CStorRestoreInterface

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.

func (*FakeOpenebsV1alpha1) UpgradeTasks added in v1.12.0

func (c *FakeOpenebsV1alpha1) UpgradeTasks(namespace string) v1alpha1.UpgradeTaskInterface

type FakeUpgradeTasks added in v1.12.0

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

FakeUpgradeTasks implements UpgradeTaskInterface

func (*FakeUpgradeTasks) Create added in v1.12.0

func (c *FakeUpgradeTasks) Create(upgradeTask *v1alpha1.UpgradeTask) (result *v1alpha1.UpgradeTask, err error)

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

func (*FakeUpgradeTasks) Delete added in v1.12.0

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

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

func (*FakeUpgradeTasks) DeleteCollection added in v1.12.0

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

DeleteCollection deletes a collection of objects.

func (*FakeUpgradeTasks) Get added in v1.12.0

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

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

func (*FakeUpgradeTasks) List added in v1.12.0

func (c *FakeUpgradeTasks) List(opts v1.ListOptions) (result *v1alpha1.UpgradeTaskList, err error)

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

func (*FakeUpgradeTasks) Patch added in v1.12.0

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

Patch applies the patch and returns the patched upgradeTask.

func (*FakeUpgradeTasks) Update added in v1.12.0

func (c *FakeUpgradeTasks) Update(upgradeTask *v1alpha1.UpgradeTask) (result *v1alpha1.UpgradeTask, err error)

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

func (*FakeUpgradeTasks) UpdateStatus added in v1.12.0

func (c *FakeUpgradeTasks) UpdateStatus(upgradeTask *v1alpha1.UpgradeTask) (*v1alpha1.UpgradeTask, error)

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

func (*FakeUpgradeTasks) Watch added in v1.12.0

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

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

Jump to

Keyboard shortcuts

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