fake

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 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 FakeFloatingIPRanges

type FakeFloatingIPRanges struct {
	Fake *FakeKubefipV1
}

FakeFloatingIPRanges implements FloatingIPRangeInterface

func (*FakeFloatingIPRanges) Create

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

func (*FakeFloatingIPRanges) Delete

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

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

func (*FakeFloatingIPRanges) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFloatingIPRanges) Get

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

func (*FakeFloatingIPRanges) List

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

func (*FakeFloatingIPRanges) Patch

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

Patch applies the patch and returns the patched floatingIPRange.

func (*FakeFloatingIPRanges) Update

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

func (*FakeFloatingIPRanges) UpdateStatus

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

func (*FakeFloatingIPRanges) Watch

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

type FakeFloatingIPs

type FakeFloatingIPs struct {
	Fake *FakeKubefipV1
	// contains filtered or unexported fields
}

FakeFloatingIPs implements FloatingIPInterface

func (*FakeFloatingIPs) Create

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

func (*FakeFloatingIPs) Delete

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

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

func (*FakeFloatingIPs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFloatingIPs) Get

func (c *FakeFloatingIPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubefipk8sbinbashorgv1.FloatingIP, err error)

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

func (*FakeFloatingIPs) List

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

func (*FakeFloatingIPs) Patch

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

Patch applies the patch and returns the patched floatingIP.

func (*FakeFloatingIPs) Update

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

func (*FakeFloatingIPs) UpdateStatus

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

func (*FakeFloatingIPs) Watch

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

type FakeKubefipV1

type FakeKubefipV1 struct {
	*testing.Fake
}

func (*FakeKubefipV1) FloatingIPRanges

func (c *FakeKubefipV1) FloatingIPRanges() v1.FloatingIPRangeInterface

func (*FakeKubefipV1) FloatingIPs

func (c *FakeKubefipV1) FloatingIPs(namespace string) v1.FloatingIPInterface

func (*FakeKubefipV1) RESTClient

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

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

Jump to

Keyboard shortcuts

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