fake

package
v0.0.0-...-193ed55 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 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 FakeIPPools

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

FakeIPPools implements IPPoolInterface

func (*FakeIPPools) Create

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 *ipamcontrolleropenshiftiov1.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

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 *ipamcontrolleropenshiftiov1.IPPool, err error)

Patch applies the patch and returns the patched iPPool.

func (*FakeIPPools) Update

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 FakeIpamcontrollerV1

type FakeIpamcontrollerV1 struct {
	*testing.Fake
}

func (*FakeIpamcontrollerV1) IPPools

func (c *FakeIpamcontrollerV1) IPPools(namespace string) v1.IPPoolInterface

func (*FakeIpamcontrollerV1) RESTClient

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