fake

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 12 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 FakeIPPools

type FakeIPPools struct {
	Fake *FakeKubevirtiphelperV1
}

FakeIPPools implements IPPoolInterface

func (*FakeIPPools) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied iPPool.

func (*FakeIPPools) ApplyStatus

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

func (*FakeIPPools) Create

func (c *FakeIPPools) Create(ctx context.Context, iPPool *v1.IPPool, opts metav1.CreateOptions) (result *v1.IPPool, err error)

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

func (*FakeIPPools) Delete

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

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

func (*FakeIPPools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIPPools) Get

func (c *FakeIPPools) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.IPPool, err error)

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

func (*FakeIPPools) List

func (c *FakeIPPools) List(ctx context.Context, opts metav1.ListOptions) (result *v1.IPPoolList, err error)

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

func (*FakeIPPools) Patch

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

Patch applies the patch and returns the patched iPPool.

func (*FakeIPPools) Update

func (c *FakeIPPools) Update(ctx context.Context, iPPool *v1.IPPool, opts metav1.UpdateOptions) (result *v1.IPPool, err error)

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

func (*FakeIPPools) UpdateStatus

func (c *FakeIPPools) UpdateStatus(ctx context.Context, iPPool *v1.IPPool, opts metav1.UpdateOptions) (*v1.IPPool, error)

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

func (*FakeIPPools) Watch

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

type FakeKubevirtiphelperV1

type FakeKubevirtiphelperV1 struct {
	*testing.Fake
}

func (*FakeKubevirtiphelperV1) IPPools

func (*FakeKubevirtiphelperV1) RESTClient

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

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

func (*FakeKubevirtiphelperV1) VirtualMachineNetworkConfigs

func (c *FakeKubevirtiphelperV1) VirtualMachineNetworkConfigs(namespace string) v1.VirtualMachineNetworkConfigInterface

type FakeVirtualMachineNetworkConfigs

type FakeVirtualMachineNetworkConfigs struct {
	Fake *FakeKubevirtiphelperV1
	// contains filtered or unexported fields
}

FakeVirtualMachineNetworkConfigs implements VirtualMachineNetworkConfigInterface

func (*FakeVirtualMachineNetworkConfigs) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied virtualMachineNetworkConfig.

func (*FakeVirtualMachineNetworkConfigs) ApplyStatus

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

func (*FakeVirtualMachineNetworkConfigs) Create

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

func (*FakeVirtualMachineNetworkConfigs) Delete

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

func (*FakeVirtualMachineNetworkConfigs) DeleteCollection

DeleteCollection deletes a collection of objects.

func (*FakeVirtualMachineNetworkConfigs) Get

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

func (*FakeVirtualMachineNetworkConfigs) List

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

func (*FakeVirtualMachineNetworkConfigs) Patch

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

Patch applies the patch and returns the patched virtualMachineNetworkConfig.

func (*FakeVirtualMachineNetworkConfigs) Update

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

func (*FakeVirtualMachineNetworkConfigs) UpdateStatus

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

func (*FakeVirtualMachineNetworkConfigs) Watch

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

Jump to

Keyboard shortcuts

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