fake

package
v0.0.0-...-c7dd6ca Latest Latest
Warning

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

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

type FakeFlipopV1alpha1 struct {
	*testing.Fake
}

func (*FakeFlipopV1alpha1) FloatingIPPools

func (c *FakeFlipopV1alpha1) FloatingIPPools(namespace string) v1alpha1.FloatingIPPoolInterface

func (*FakeFlipopV1alpha1) NodeDNSRecordSets

func (c *FakeFlipopV1alpha1) NodeDNSRecordSets(namespace string) v1alpha1.NodeDNSRecordSetInterface

func (*FakeFlipopV1alpha1) RESTClient

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

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

type FakeFloatingIPPools

type FakeFloatingIPPools struct {
	Fake *FakeFlipopV1alpha1
	// contains filtered or unexported fields
}

FakeFloatingIPPools implements FloatingIPPoolInterface

func (*FakeFloatingIPPools) Create

func (c *FakeFloatingIPPools) Create(ctx context.Context, floatingIPPool *v1alpha1.FloatingIPPool, opts v1.CreateOptions) (result *v1alpha1.FloatingIPPool, err error)

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

func (*FakeFloatingIPPools) Delete

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

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

func (*FakeFloatingIPPools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFloatingIPPools) Get

func (c *FakeFloatingIPPools) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.FloatingIPPool, err error)

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

func (*FakeFloatingIPPools) List

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

func (*FakeFloatingIPPools) Patch

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

Patch applies the patch and returns the patched floatingIPPool.

func (*FakeFloatingIPPools) Update

func (c *FakeFloatingIPPools) Update(ctx context.Context, floatingIPPool *v1alpha1.FloatingIPPool, opts v1.UpdateOptions) (result *v1alpha1.FloatingIPPool, err error)

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

func (*FakeFloatingIPPools) UpdateStatus

func (c *FakeFloatingIPPools) UpdateStatus(ctx context.Context, floatingIPPool *v1alpha1.FloatingIPPool, opts v1.UpdateOptions) (*v1alpha1.FloatingIPPool, error)

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

func (*FakeFloatingIPPools) Watch

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

type FakeNodeDNSRecordSets

type FakeNodeDNSRecordSets struct {
	Fake *FakeFlipopV1alpha1
	// contains filtered or unexported fields
}

FakeNodeDNSRecordSets implements NodeDNSRecordSetInterface

func (*FakeNodeDNSRecordSets) Create

func (c *FakeNodeDNSRecordSets) Create(ctx context.Context, nodeDNSRecordSet *v1alpha1.NodeDNSRecordSet, opts v1.CreateOptions) (result *v1alpha1.NodeDNSRecordSet, err error)

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

func (*FakeNodeDNSRecordSets) Delete

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

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

func (*FakeNodeDNSRecordSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNodeDNSRecordSets) Get

func (c *FakeNodeDNSRecordSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.NodeDNSRecordSet, err error)

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

func (*FakeNodeDNSRecordSets) List

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

func (*FakeNodeDNSRecordSets) Patch

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

Patch applies the patch and returns the patched nodeDNSRecordSet.

func (*FakeNodeDNSRecordSets) Update

func (c *FakeNodeDNSRecordSets) Update(ctx context.Context, nodeDNSRecordSet *v1alpha1.NodeDNSRecordSet, opts v1.UpdateOptions) (result *v1alpha1.NodeDNSRecordSet, err error)

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

func (*FakeNodeDNSRecordSets) UpdateStatus

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

func (*FakeNodeDNSRecordSets) Watch

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

Jump to

Keyboard shortcuts

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