fake

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 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 *FakeWhereaboutsV1alpha1
	// 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) 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 FakeOverlappingRangeIPReservations

type FakeOverlappingRangeIPReservations struct {
	Fake *FakeWhereaboutsV1alpha1
	// contains filtered or unexported fields
}

FakeOverlappingRangeIPReservations implements OverlappingRangeIPReservationInterface

func (*FakeOverlappingRangeIPReservations) Create

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

func (*FakeOverlappingRangeIPReservations) Delete

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

func (*FakeOverlappingRangeIPReservations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeOverlappingRangeIPReservations) Get

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

func (*FakeOverlappingRangeIPReservations) List

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

func (*FakeOverlappingRangeIPReservations) Patch

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

Patch applies the patch and returns the patched overlappingRangeIPReservation.

func (*FakeOverlappingRangeIPReservations) Update

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

func (*FakeOverlappingRangeIPReservations) Watch

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

type FakeWhereaboutsV1alpha1

type FakeWhereaboutsV1alpha1 struct {
	*testing.Fake
}

func (*FakeWhereaboutsV1alpha1) IPPools

func (*FakeWhereaboutsV1alpha1) OverlappingRangeIPReservations

func (c *FakeWhereaboutsV1alpha1) OverlappingRangeIPReservations(namespace string) v1alpha1.OverlappingRangeIPReservationInterface

func (*FakeWhereaboutsV1alpha1) RESTClient

func (c *FakeWhereaboutsV1alpha1) 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