fake

package
v3.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 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(ctx context.Context, blockDeviceClaim *v1alpha1.BlockDeviceClaim, opts v1.CreateOptions) (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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeBlockDeviceClaims) Get

func (c *FakeBlockDeviceClaims) Get(ctx context.Context, 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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BlockDeviceClaim, err error)

Patch applies the patch and returns the patched blockDeviceClaim.

func (*FakeBlockDeviceClaims) Update

func (c *FakeBlockDeviceClaims) Update(ctx context.Context, blockDeviceClaim *v1alpha1.BlockDeviceClaim, opts v1.UpdateOptions) (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

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(ctx context.Context, blockDevice *v1alpha1.BlockDevice, opts v1.CreateOptions) (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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeBlockDevices) Get

func (c *FakeBlockDevices) Get(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BlockDevice, err error)

Patch applies the patch and returns the patched blockDevice.

func (*FakeBlockDevices) Update

func (c *FakeBlockDevices) Update(ctx context.Context, blockDevice *v1alpha1.BlockDevice, opts v1.UpdateOptions) (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(ctx context.Context, blockDevice *v1alpha1.BlockDevice, opts v1.UpdateOptions) (*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

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

type FakeCStorBackups

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

FakeCStorBackups implements CStorBackupInterface

func (*FakeCStorBackups) Create

func (c *FakeCStorBackups) Create(ctx context.Context, cStorBackup *v1alpha1.CStorBackup, opts v1.CreateOptions) (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

func (c *FakeCStorBackups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeCStorBackups) DeleteCollection

func (c *FakeCStorBackups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCStorBackups) Get

func (c *FakeCStorBackups) Get(ctx context.Context, 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

func (c *FakeCStorBackups) List(ctx context.Context, 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

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

Patch applies the patch and returns the patched cStorBackup.

func (*FakeCStorBackups) Update

func (c *FakeCStorBackups) Update(ctx context.Context, cStorBackup *v1alpha1.CStorBackup, opts v1.UpdateOptions) (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

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

type FakeCStorCompletedBackups

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

FakeCStorCompletedBackups implements CStorCompletedBackupInterface

func (*FakeCStorCompletedBackups) Create

func (c *FakeCStorCompletedBackups) Create(ctx context.Context, cStorCompletedBackup *v1alpha1.CStorCompletedBackup, opts v1.CreateOptions) (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

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

func (*FakeCStorCompletedBackups) DeleteCollection

func (c *FakeCStorCompletedBackups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCStorCompletedBackups) Get

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

func (*FakeCStorCompletedBackups) List

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

func (*FakeCStorCompletedBackups) Patch

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

Patch applies the patch and returns the patched cStorCompletedBackup.

func (*FakeCStorCompletedBackups) Update

func (c *FakeCStorCompletedBackups) Update(ctx context.Context, cStorCompletedBackup *v1alpha1.CStorCompletedBackup, opts v1.UpdateOptions) (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

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

type FakeCStorRestores

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

FakeCStorRestores implements CStorRestoreInterface

func (*FakeCStorRestores) Create

func (c *FakeCStorRestores) Create(ctx context.Context, cStorRestore *v1alpha1.CStorRestore, opts v1.CreateOptions) (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

func (c *FakeCStorRestores) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeCStorRestores) DeleteCollection

func (c *FakeCStorRestores) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCStorRestores) Get

func (c *FakeCStorRestores) Get(ctx context.Context, 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

func (c *FakeCStorRestores) List(ctx context.Context, 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

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

Patch applies the patch and returns the patched cStorRestore.

func (*FakeCStorRestores) Update

func (c *FakeCStorRestores) Update(ctx context.Context, cStorRestore *v1alpha1.CStorRestore, opts v1.UpdateOptions) (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

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

type FakeMigrationTasks

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

FakeMigrationTasks implements MigrationTaskInterface

func (*FakeMigrationTasks) Create

func (c *FakeMigrationTasks) Create(ctx context.Context, migrationTask *v1alpha1.MigrationTask, opts v1.CreateOptions) (result *v1alpha1.MigrationTask, err error)

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

func (*FakeMigrationTasks) Delete

func (c *FakeMigrationTasks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeMigrationTasks) DeleteCollection

func (c *FakeMigrationTasks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeMigrationTasks) Get

func (c *FakeMigrationTasks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MigrationTask, err error)

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

func (*FakeMigrationTasks) List

func (c *FakeMigrationTasks) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MigrationTaskList, err error)

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

func (*FakeMigrationTasks) Patch

func (c *FakeMigrationTasks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MigrationTask, err error)

Patch applies the patch and returns the patched migrationTask.

func (*FakeMigrationTasks) Update

func (c *FakeMigrationTasks) Update(ctx context.Context, migrationTask *v1alpha1.MigrationTask, opts v1.UpdateOptions) (result *v1alpha1.MigrationTask, err error)

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

func (*FakeMigrationTasks) UpdateStatus

func (c *FakeMigrationTasks) UpdateStatus(ctx context.Context, migrationTask *v1alpha1.MigrationTask, opts v1.UpdateOptions) (*v1alpha1.MigrationTask, error)

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

func (*FakeMigrationTasks) Watch

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

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

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

func (*FakeOpenebsV1alpha1) CStorCompletedBackups

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

func (*FakeOpenebsV1alpha1) CStorRestores

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

func (*FakeOpenebsV1alpha1) MigrationTasks

func (c *FakeOpenebsV1alpha1) MigrationTasks(namespace string) v1alpha1.MigrationTaskInterface

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

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

type FakeUpgradeTasks

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

FakeUpgradeTasks implements UpgradeTaskInterface

func (*FakeUpgradeTasks) Create

func (c *FakeUpgradeTasks) Create(ctx context.Context, upgradeTask *v1alpha1.UpgradeTask, opts v1.CreateOptions) (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

func (c *FakeUpgradeTasks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeUpgradeTasks) DeleteCollection

func (c *FakeUpgradeTasks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeUpgradeTasks) Get

func (c *FakeUpgradeTasks) Get(ctx context.Context, 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

func (c *FakeUpgradeTasks) List(ctx context.Context, 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

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

Patch applies the patch and returns the patched upgradeTask.

func (*FakeUpgradeTasks) Update

func (c *FakeUpgradeTasks) Update(ctx context.Context, upgradeTask *v1alpha1.UpgradeTask, opts v1.UpdateOptions) (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

func (c *FakeUpgradeTasks) UpdateStatus(ctx context.Context, upgradeTask *v1alpha1.UpgradeTask, opts v1.UpdateOptions) (*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

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