fake

package
v0.0.0-...-a70a58d Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 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 FakeClusterVirtualImages

type FakeClusterVirtualImages struct {
	Fake *FakeVirtualizationV1alpha2
}

FakeClusterVirtualImages implements ClusterVirtualImageInterface

func (*FakeClusterVirtualImages) Create

func (c *FakeClusterVirtualImages) Create(ctx context.Context, clusterVirtualImage *v1alpha2.ClusterVirtualImage, opts v1.CreateOptions) (result *v1alpha2.ClusterVirtualImage, err error)

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

func (*FakeClusterVirtualImages) Delete

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

func (*FakeClusterVirtualImages) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterVirtualImages) Get

func (c *FakeClusterVirtualImages) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ClusterVirtualImage, err error)

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

func (*FakeClusterVirtualImages) List

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

func (*FakeClusterVirtualImages) Patch

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

Patch applies the patch and returns the patched clusterVirtualImage.

func (*FakeClusterVirtualImages) Update

func (c *FakeClusterVirtualImages) Update(ctx context.Context, clusterVirtualImage *v1alpha2.ClusterVirtualImage, opts v1.UpdateOptions) (result *v1alpha2.ClusterVirtualImage, err error)

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

func (*FakeClusterVirtualImages) UpdateStatus

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

func (*FakeClusterVirtualImages) Watch

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

type FakeVirtualDisks

type FakeVirtualDisks struct {
	Fake *FakeVirtualizationV1alpha2
	// contains filtered or unexported fields
}

FakeVirtualDisks implements VirtualDiskInterface

func (*FakeVirtualDisks) Create

func (c *FakeVirtualDisks) Create(ctx context.Context, virtualDisk *v1alpha2.VirtualDisk, opts v1.CreateOptions) (result *v1alpha2.VirtualDisk, err error)

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

func (*FakeVirtualDisks) Delete

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

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

func (*FakeVirtualDisks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualDisks) Get

func (c *FakeVirtualDisks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.VirtualDisk, err error)

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

func (*FakeVirtualDisks) List

func (c *FakeVirtualDisks) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.VirtualDiskList, err error)

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

func (*FakeVirtualDisks) Patch

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

Patch applies the patch and returns the patched virtualDisk.

func (*FakeVirtualDisks) Update

func (c *FakeVirtualDisks) Update(ctx context.Context, virtualDisk *v1alpha2.VirtualDisk, opts v1.UpdateOptions) (result *v1alpha2.VirtualDisk, err error)

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

func (*FakeVirtualDisks) UpdateStatus

func (c *FakeVirtualDisks) UpdateStatus(ctx context.Context, virtualDisk *v1alpha2.VirtualDisk, opts v1.UpdateOptions) (*v1alpha2.VirtualDisk, error)

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

func (*FakeVirtualDisks) Watch

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

type FakeVirtualImages

type FakeVirtualImages struct {
	Fake *FakeVirtualizationV1alpha2
	// contains filtered or unexported fields
}

FakeVirtualImages implements VirtualImageInterface

func (*FakeVirtualImages) Create

func (c *FakeVirtualImages) Create(ctx context.Context, virtualImage *v1alpha2.VirtualImage, opts v1.CreateOptions) (result *v1alpha2.VirtualImage, err error)

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

func (*FakeVirtualImages) Delete

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

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

func (*FakeVirtualImages) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualImages) Get

func (c *FakeVirtualImages) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.VirtualImage, err error)

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

func (*FakeVirtualImages) List

func (c *FakeVirtualImages) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.VirtualImageList, err error)

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

func (*FakeVirtualImages) Patch

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

Patch applies the patch and returns the patched virtualImage.

func (*FakeVirtualImages) Update

func (c *FakeVirtualImages) Update(ctx context.Context, virtualImage *v1alpha2.VirtualImage, opts v1.UpdateOptions) (result *v1alpha2.VirtualImage, err error)

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

func (*FakeVirtualImages) UpdateStatus

func (c *FakeVirtualImages) UpdateStatus(ctx context.Context, virtualImage *v1alpha2.VirtualImage, opts v1.UpdateOptions) (*v1alpha2.VirtualImage, error)

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

func (*FakeVirtualImages) Watch

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

type FakeVirtualMachineBlockDeviceAttachments

type FakeVirtualMachineBlockDeviceAttachments struct {
	Fake *FakeVirtualizationV1alpha2
	// contains filtered or unexported fields
}

FakeVirtualMachineBlockDeviceAttachments implements VirtualMachineBlockDeviceAttachmentInterface

func (*FakeVirtualMachineBlockDeviceAttachments) Create

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

func (*FakeVirtualMachineBlockDeviceAttachments) Delete

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

func (*FakeVirtualMachineBlockDeviceAttachments) DeleteCollection

DeleteCollection deletes a collection of objects.

func (*FakeVirtualMachineBlockDeviceAttachments) Get

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

func (*FakeVirtualMachineBlockDeviceAttachments) List

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

func (*FakeVirtualMachineBlockDeviceAttachments) Patch

Patch applies the patch and returns the patched virtualMachineBlockDeviceAttachment.

func (*FakeVirtualMachineBlockDeviceAttachments) Update

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

func (*FakeVirtualMachineBlockDeviceAttachments) UpdateStatus

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

func (*FakeVirtualMachineBlockDeviceAttachments) Watch

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

type FakeVirtualMachineCPUModels

type FakeVirtualMachineCPUModels struct {
	Fake *FakeVirtualizationV1alpha2
}

FakeVirtualMachineCPUModels implements VirtualMachineCPUModelInterface

func (*FakeVirtualMachineCPUModels) Create

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

func (*FakeVirtualMachineCPUModels) Delete

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

func (*FakeVirtualMachineCPUModels) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualMachineCPUModels) Get

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

func (*FakeVirtualMachineCPUModels) List

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

func (*FakeVirtualMachineCPUModels) Patch

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

Patch applies the patch and returns the patched virtualMachineCPUModel.

func (*FakeVirtualMachineCPUModels) Update

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

func (*FakeVirtualMachineCPUModels) UpdateStatus

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

func (*FakeVirtualMachineCPUModels) Watch

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

type FakeVirtualMachineIPAddressClaims

type FakeVirtualMachineIPAddressClaims struct {
	Fake *FakeVirtualizationV1alpha2
	// contains filtered or unexported fields
}

FakeVirtualMachineIPAddressClaims implements VirtualMachineIPAddressClaimInterface

func (*FakeVirtualMachineIPAddressClaims) Create

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

func (*FakeVirtualMachineIPAddressClaims) Delete

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

func (*FakeVirtualMachineIPAddressClaims) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualMachineIPAddressClaims) Get

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

func (*FakeVirtualMachineIPAddressClaims) List

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

func (*FakeVirtualMachineIPAddressClaims) Patch

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

Patch applies the patch and returns the patched virtualMachineIPAddressClaim.

func (*FakeVirtualMachineIPAddressClaims) Update

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

func (*FakeVirtualMachineIPAddressClaims) UpdateStatus

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

func (*FakeVirtualMachineIPAddressClaims) Watch

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

type FakeVirtualMachineIPAddressLeases

type FakeVirtualMachineIPAddressLeases struct {
	Fake *FakeVirtualizationV1alpha2
}

FakeVirtualMachineIPAddressLeases implements VirtualMachineIPAddressLeaseInterface

func (*FakeVirtualMachineIPAddressLeases) Create

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

func (*FakeVirtualMachineIPAddressLeases) Delete

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

func (*FakeVirtualMachineIPAddressLeases) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualMachineIPAddressLeases) Get

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

func (*FakeVirtualMachineIPAddressLeases) List

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

func (*FakeVirtualMachineIPAddressLeases) Patch

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

Patch applies the patch and returns the patched virtualMachineIPAddressLease.

func (*FakeVirtualMachineIPAddressLeases) Update

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

func (*FakeVirtualMachineIPAddressLeases) UpdateStatus

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

func (*FakeVirtualMachineIPAddressLeases) Watch

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

type FakeVirtualMachineOperations

type FakeVirtualMachineOperations struct {
	Fake *FakeVirtualizationV1alpha2
	// contains filtered or unexported fields
}

FakeVirtualMachineOperations implements VirtualMachineOperationInterface

func (*FakeVirtualMachineOperations) Create

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

func (*FakeVirtualMachineOperations) Delete

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

func (*FakeVirtualMachineOperations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualMachineOperations) Get

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

func (*FakeVirtualMachineOperations) List

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

func (*FakeVirtualMachineOperations) Patch

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

Patch applies the patch and returns the patched virtualMachineOperation.

func (*FakeVirtualMachineOperations) Update

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

func (*FakeVirtualMachineOperations) UpdateStatus

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

func (*FakeVirtualMachineOperations) Watch

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

type FakeVirtualMachines

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

FakeVirtualMachines implements VirtualMachineInterface

func (*FakeVirtualMachines) Create

func (c *FakeVirtualMachines) Create(ctx context.Context, virtualMachine *v1alpha2.VirtualMachine, opts v1.CreateOptions) (result *v1alpha2.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 *v1alpha2.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

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 *v1alpha2.VirtualMachine, err error)

Patch applies the patch and returns the patched virtualMachine.

func (*FakeVirtualMachines) Update

func (c *FakeVirtualMachines) Update(ctx context.Context, virtualMachine *v1alpha2.VirtualMachine, opts v1.UpdateOptions) (result *v1alpha2.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 *v1alpha2.VirtualMachine, opts v1.UpdateOptions) (*v1alpha2.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.

type FakeVirtualizationV1alpha2

type FakeVirtualizationV1alpha2 struct {
	*testing.Fake
}

func (*FakeVirtualizationV1alpha2) ClusterVirtualImages

func (*FakeVirtualizationV1alpha2) RESTClient

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

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

func (*FakeVirtualizationV1alpha2) VirtualDisks

func (*FakeVirtualizationV1alpha2) VirtualImages

func (*FakeVirtualizationV1alpha2) VirtualMachineBlockDeviceAttachments

func (c *FakeVirtualizationV1alpha2) VirtualMachineBlockDeviceAttachments(namespace string) v1alpha2.VirtualMachineBlockDeviceAttachmentInterface

func (*FakeVirtualizationV1alpha2) VirtualMachineCPUModels

func (*FakeVirtualizationV1alpha2) VirtualMachineIPAddressClaims

func (c *FakeVirtualizationV1alpha2) VirtualMachineIPAddressClaims(namespace string) v1alpha2.VirtualMachineIPAddressClaimInterface

func (*FakeVirtualizationV1alpha2) VirtualMachineIPAddressLeases

func (*FakeVirtualizationV1alpha2) VirtualMachineOperations

func (c *FakeVirtualizationV1alpha2) VirtualMachineOperations(namespace string) v1alpha2.VirtualMachineOperationInterface

func (*FakeVirtualizationV1alpha2) VirtualMachines

func (c *FakeVirtualizationV1alpha2) VirtualMachines(namespace string) v1alpha2.VirtualMachineInterface

Jump to

Keyboard shortcuts

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