fake

package
v0.0.0-...-86c1652 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 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 FakeClusterVirtualMachineImages

type FakeClusterVirtualMachineImages struct {
	Fake *FakeVirtualizationV1alpha2
}

FakeClusterVirtualMachineImages implements ClusterVirtualMachineImageInterface

func (*FakeClusterVirtualMachineImages) Create

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

func (*FakeClusterVirtualMachineImages) Delete

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

func (*FakeClusterVirtualMachineImages) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterVirtualMachineImages) Get

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

func (*FakeClusterVirtualMachineImages) List

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

func (*FakeClusterVirtualMachineImages) Patch

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

Patch applies the patch and returns the patched clusterVirtualMachineImage.

func (*FakeClusterVirtualMachineImages) Update

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

func (*FakeClusterVirtualMachineImages) UpdateStatus

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

func (*FakeClusterVirtualMachineImages) Watch

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

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 FakeVirtualMachineDisks

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

FakeVirtualMachineDisks implements VirtualMachineDiskInterface

func (*FakeVirtualMachineDisks) Create

func (c *FakeVirtualMachineDisks) Create(ctx context.Context, virtualMachineDisk *v1alpha2.VirtualMachineDisk, opts v1.CreateOptions) (result *v1alpha2.VirtualMachineDisk, err error)

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

func (*FakeVirtualMachineDisks) Delete

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

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

func (*FakeVirtualMachineDisks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualMachineDisks) Get

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

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

func (*FakeVirtualMachineDisks) List

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

func (*FakeVirtualMachineDisks) Patch

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

Patch applies the patch and returns the patched virtualMachineDisk.

func (*FakeVirtualMachineDisks) Update

func (c *FakeVirtualMachineDisks) Update(ctx context.Context, virtualMachineDisk *v1alpha2.VirtualMachineDisk, opts v1.UpdateOptions) (result *v1alpha2.VirtualMachineDisk, err error)

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

func (*FakeVirtualMachineDisks) UpdateStatus

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

func (*FakeVirtualMachineDisks) Watch

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

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 FakeVirtualMachineImages

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

FakeVirtualMachineImages implements VirtualMachineImageInterface

func (*FakeVirtualMachineImages) Create

func (c *FakeVirtualMachineImages) Create(ctx context.Context, virtualMachineImage *v1alpha2.VirtualMachineImage, opts v1.CreateOptions) (result *v1alpha2.VirtualMachineImage, err error)

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

func (*FakeVirtualMachineImages) Delete

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

func (*FakeVirtualMachineImages) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualMachineImages) Get

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

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

func (*FakeVirtualMachineImages) List

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

func (*FakeVirtualMachineImages) Patch

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

Patch applies the patch and returns the patched virtualMachineImage.

func (*FakeVirtualMachineImages) Update

func (c *FakeVirtualMachineImages) Update(ctx context.Context, virtualMachineImage *v1alpha2.VirtualMachineImage, opts v1.UpdateOptions) (result *v1alpha2.VirtualMachineImage, err error)

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

func (*FakeVirtualMachineImages) UpdateStatus

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

func (*FakeVirtualMachineImages) Watch

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

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) ClusterVirtualMachineImages

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) VirtualMachineBlockDeviceAttachments

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

func (*FakeVirtualizationV1alpha2) VirtualMachineCPUModels

func (*FakeVirtualizationV1alpha2) VirtualMachineDisks

func (c *FakeVirtualizationV1alpha2) VirtualMachineDisks(namespace string) v1alpha2.VirtualMachineDiskInterface

func (*FakeVirtualizationV1alpha2) VirtualMachineIPAddressClaims

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

func (*FakeVirtualizationV1alpha2) VirtualMachineIPAddressLeases

func (*FakeVirtualizationV1alpha2) VirtualMachineImages

func (c *FakeVirtualizationV1alpha2) VirtualMachineImages(namespace string) v1alpha2.VirtualMachineImageInterface

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