fake

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 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 FakeIPPools

type FakeIPPools struct {
	Fake *FakeNetworkV1alpha1
	// contains filtered or unexported fields
}

FakeIPPools implements IPPoolInterface

func (*FakeIPPools) Create

func (c *FakeIPPools) Create(ctx context.Context, iPPool *v1alpha1.IPPool, opts v1.CreateOptions) (result *v1alpha1.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 v1.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 v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeIPPools) Get

func (c *FakeIPPools) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.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 v1.ListOptions) (result *v1alpha1.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 v1.PatchOptions, subresources ...string) (result *v1alpha1.IPPool, err error)

Patch applies the patch and returns the patched iPPool.

func (*FakeIPPools) Update

func (c *FakeIPPools) Update(ctx context.Context, iPPool *v1alpha1.IPPool, opts v1.UpdateOptions) (result *v1alpha1.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 *v1alpha1.IPPool, opts v1.UpdateOptions) (*v1alpha1.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

func (c *FakeIPPools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeNetworkV1alpha1

type FakeNetworkV1alpha1 struct {
	*testing.Fake
}

func (*FakeNetworkV1alpha1) IPPools

func (c *FakeNetworkV1alpha1) IPPools(namespace string) v1alpha1.IPPoolInterface

func (*FakeNetworkV1alpha1) RESTClient

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

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

func (*FakeNetworkV1alpha1) VirtualMachineNetworkConfigs

func (c *FakeNetworkV1alpha1) VirtualMachineNetworkConfigs(namespace string) v1alpha1.VirtualMachineNetworkConfigInterface

type FakeVirtualMachineNetworkConfigs

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

FakeVirtualMachineNetworkConfigs implements VirtualMachineNetworkConfigInterface

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

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

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 v1.PatchOptions, subresources ...string) (result *v1alpha1.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