fake

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 10 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 FakeKubeVirts

type FakeKubeVirts struct {
	Fake *FakeKubevirtV1
	// contains filtered or unexported fields
}

FakeKubeVirts implements KubeVirtInterface

func (*FakeKubeVirts) Create

func (c *FakeKubeVirts) Create(ctx context.Context, kubeVirt *corev1.KubeVirt, opts v1.CreateOptions) (result *corev1.KubeVirt, err error)

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

func (*FakeKubeVirts) Delete

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

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

func (*FakeKubeVirts) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKubeVirts) Get

func (c *FakeKubeVirts) Get(ctx context.Context, name string, options v1.GetOptions) (result *corev1.KubeVirt, err error)

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

func (*FakeKubeVirts) List

func (c *FakeKubeVirts) List(ctx context.Context, opts v1.ListOptions) (result *corev1.KubeVirtList, err error)

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

func (*FakeKubeVirts) Patch

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

Patch applies the patch and returns the patched kubeVirt.

func (*FakeKubeVirts) Update

func (c *FakeKubeVirts) Update(ctx context.Context, kubeVirt *corev1.KubeVirt, opts v1.UpdateOptions) (result *corev1.KubeVirt, err error)

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

func (*FakeKubeVirts) UpdateStatus

func (c *FakeKubeVirts) UpdateStatus(ctx context.Context, kubeVirt *corev1.KubeVirt, opts v1.UpdateOptions) (*corev1.KubeVirt, error)

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

func (*FakeKubeVirts) Watch

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

type FakeKubevirtV1

type FakeKubevirtV1 struct {
	*testing.Fake
}

func (*FakeKubevirtV1) KubeVirts

func (c *FakeKubevirtV1) KubeVirts(namespace string) v1.KubeVirtInterface

func (*FakeKubevirtV1) RESTClient

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

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

func (*FakeKubevirtV1) VirtualMachineInstanceMigrations

func (c *FakeKubevirtV1) VirtualMachineInstanceMigrations(namespace string) v1.VirtualMachineInstanceMigrationInterface

func (*FakeKubevirtV1) VirtualMachineInstancePresets

func (c *FakeKubevirtV1) VirtualMachineInstancePresets(namespace string) v1.VirtualMachineInstancePresetInterface

func (*FakeKubevirtV1) VirtualMachineInstanceReplicaSets

func (c *FakeKubevirtV1) VirtualMachineInstanceReplicaSets(namespace string) v1.VirtualMachineInstanceReplicaSetInterface

func (*FakeKubevirtV1) VirtualMachineInstances

func (c *FakeKubevirtV1) VirtualMachineInstances(namespace string) v1.VirtualMachineInstanceInterface

func (*FakeKubevirtV1) VirtualMachines

func (c *FakeKubevirtV1) VirtualMachines(namespace string) v1.VirtualMachineInterface

type FakeVirtualMachineInstanceMigrations

type FakeVirtualMachineInstanceMigrations struct {
	Fake *FakeKubevirtV1
	// contains filtered or unexported fields
}

FakeVirtualMachineInstanceMigrations implements VirtualMachineInstanceMigrationInterface

func (*FakeVirtualMachineInstanceMigrations) Create

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

func (*FakeVirtualMachineInstanceMigrations) Delete

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

func (*FakeVirtualMachineInstanceMigrations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualMachineInstanceMigrations) Get

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

func (*FakeVirtualMachineInstanceMigrations) List

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

func (*FakeVirtualMachineInstanceMigrations) Patch

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

Patch applies the patch and returns the patched virtualMachineInstanceMigration.

func (*FakeVirtualMachineInstanceMigrations) Update

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

func (*FakeVirtualMachineInstanceMigrations) UpdateStatus

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

func (*FakeVirtualMachineInstanceMigrations) Watch

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

type FakeVirtualMachineInstancePresets

type FakeVirtualMachineInstancePresets struct {
	Fake *FakeKubevirtV1
	// contains filtered or unexported fields
}

FakeVirtualMachineInstancePresets implements VirtualMachineInstancePresetInterface

func (*FakeVirtualMachineInstancePresets) Create

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

func (*FakeVirtualMachineInstancePresets) Delete

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

func (*FakeVirtualMachineInstancePresets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualMachineInstancePresets) Get

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

func (*FakeVirtualMachineInstancePresets) List

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

func (*FakeVirtualMachineInstancePresets) Patch

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

Patch applies the patch and returns the patched virtualMachineInstancePreset.

func (*FakeVirtualMachineInstancePresets) Update

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

func (*FakeVirtualMachineInstancePresets) Watch

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

type FakeVirtualMachineInstanceReplicaSets

type FakeVirtualMachineInstanceReplicaSets struct {
	Fake *FakeKubevirtV1
	// contains filtered or unexported fields
}

FakeVirtualMachineInstanceReplicaSets implements VirtualMachineInstanceReplicaSetInterface

func (*FakeVirtualMachineInstanceReplicaSets) Create

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

func (*FakeVirtualMachineInstanceReplicaSets) Delete

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

func (*FakeVirtualMachineInstanceReplicaSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualMachineInstanceReplicaSets) Get

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

func (*FakeVirtualMachineInstanceReplicaSets) List

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

func (*FakeVirtualMachineInstanceReplicaSets) Patch

Patch applies the patch and returns the patched virtualMachineInstanceReplicaSet.

func (*FakeVirtualMachineInstanceReplicaSets) Update

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

func (*FakeVirtualMachineInstanceReplicaSets) UpdateStatus

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

func (*FakeVirtualMachineInstanceReplicaSets) Watch

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

type FakeVirtualMachineInstances

type FakeVirtualMachineInstances struct {
	Fake *FakeKubevirtV1
	// contains filtered or unexported fields
}

FakeVirtualMachineInstances implements VirtualMachineInstanceInterface

func (*FakeVirtualMachineInstances) Create

func (c *FakeVirtualMachineInstances) Create(ctx context.Context, virtualMachineInstance *corev1.VirtualMachineInstance, opts v1.CreateOptions) (result *corev1.VirtualMachineInstance, err error)

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

func (*FakeVirtualMachineInstances) Delete

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

func (*FakeVirtualMachineInstances) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualMachineInstances) Get

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

func (*FakeVirtualMachineInstances) List

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

func (*FakeVirtualMachineInstances) Patch

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

Patch applies the patch and returns the patched virtualMachineInstance.

func (*FakeVirtualMachineInstances) Update

func (c *FakeVirtualMachineInstances) Update(ctx context.Context, virtualMachineInstance *corev1.VirtualMachineInstance, opts v1.UpdateOptions) (result *corev1.VirtualMachineInstance, err error)

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

func (*FakeVirtualMachineInstances) UpdateStatus

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

func (*FakeVirtualMachineInstances) Watch

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

type FakeVirtualMachines

type FakeVirtualMachines struct {
	Fake *FakeKubevirtV1
	// contains filtered or unexported fields
}

FakeVirtualMachines implements VirtualMachineInterface

func (*FakeVirtualMachines) Create

func (c *FakeVirtualMachines) Create(ctx context.Context, virtualMachine *corev1.VirtualMachine, opts v1.CreateOptions) (result *corev1.VirtualMachine, err error)

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

func (*FakeVirtualMachines) Delete

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

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

func (*FakeVirtualMachines) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualMachines) Get

func (c *FakeVirtualMachines) Get(ctx context.Context, name string, options v1.GetOptions) (result *corev1.VirtualMachine, err error)

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

func (*FakeVirtualMachines) List

func (c *FakeVirtualMachines) List(ctx context.Context, opts v1.ListOptions) (result *corev1.VirtualMachineList, err error)

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

func (*FakeVirtualMachines) Patch

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

Patch applies the patch and returns the patched virtualMachine.

func (*FakeVirtualMachines) Update

func (c *FakeVirtualMachines) Update(ctx context.Context, virtualMachine *corev1.VirtualMachine, opts v1.UpdateOptions) (result *corev1.VirtualMachine, err error)

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

func (*FakeVirtualMachines) UpdateStatus

func (c *FakeVirtualMachines) UpdateStatus(ctx context.Context, virtualMachine *corev1.VirtualMachine, opts v1.UpdateOptions) (*corev1.VirtualMachine, error)

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

func (*FakeVirtualMachines) Watch

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

Jump to

Keyboard shortcuts

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