fake

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 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 FakeIPAMs added in v0.1.5

type FakeIPAMs struct {
	Fake *FakeK8sV1
	// contains filtered or unexported fields
}

FakeIPAMs implements IPAMInterface

func (*FakeIPAMs) Create added in v0.1.5

func (c *FakeIPAMs) Create(ctx context.Context, iPAM *ficv1.IPAM, opts v1.CreateOptions) (result *ficv1.IPAM, err error)

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

func (*FakeIPAMs) Delete added in v0.1.5

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

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

func (*FakeIPAMs) DeleteCollection added in v0.1.5

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

DeleteCollection deletes a collection of objects.

func (*FakeIPAMs) Get added in v0.1.5

func (c *FakeIPAMs) Get(ctx context.Context, name string, options v1.GetOptions) (result *ficv1.IPAM, err error)

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

func (*FakeIPAMs) List added in v0.1.5

func (c *FakeIPAMs) List(ctx context.Context, opts v1.ListOptions) (result *ficv1.IPAMList, err error)

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

func (*FakeIPAMs) Patch added in v0.1.5

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

Patch applies the patch and returns the patched iPAM.

func (*FakeIPAMs) Update added in v0.1.5

func (c *FakeIPAMs) Update(ctx context.Context, iPAM *ficv1.IPAM, opts v1.UpdateOptions) (result *ficv1.IPAM, err error)

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

func (*FakeIPAMs) UpdateStatus added in v0.1.5

func (c *FakeIPAMs) UpdateStatus(ctx context.Context, iPAM *ficv1.IPAM, opts v1.UpdateOptions) (*ficv1.IPAM, error)

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

func (*FakeIPAMs) Watch added in v0.1.5

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

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

type FakeK8sV1

type FakeK8sV1 struct {
	*testing.Fake
}

func (*FakeK8sV1) IPAMs added in v0.1.5

func (c *FakeK8sV1) IPAMs(namespace string) v1.IPAMInterface

func (*FakeK8sV1) RESTClient

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