fake

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 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 FakeIPClaims

type FakeIPClaims struct {
	Fake *FakeIpamV1alpha1
	// contains filtered or unexported fields
}

FakeIPClaims implements IPClaimInterface

func (*FakeIPClaims) Create

func (c *FakeIPClaims) Create(ctx context.Context, iPClaim *v1alpha1.IPClaim, opts v1.CreateOptions) (result *v1alpha1.IPClaim, err error)

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

func (*FakeIPClaims) Delete

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

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

func (*FakeIPClaims) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIPClaims) Get

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

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

func (*FakeIPClaims) List

func (c *FakeIPClaims) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IPClaimList, err error)

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

func (*FakeIPClaims) Patch

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

Patch applies the patch and returns the patched iPClaim.

func (*FakeIPClaims) Update

func (c *FakeIPClaims) Update(ctx context.Context, iPClaim *v1alpha1.IPClaim, opts v1.UpdateOptions) (result *v1alpha1.IPClaim, err error)

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

func (*FakeIPClaims) UpdateStatus

func (c *FakeIPClaims) UpdateStatus(ctx context.Context, iPClaim *v1alpha1.IPClaim, opts v1.UpdateOptions) (*v1alpha1.IPClaim, error)

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

func (*FakeIPClaims) Watch

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

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

type FakeIPEntries

type FakeIPEntries struct {
	Fake *FakeIpamV1alpha1
	// contains filtered or unexported fields
}

FakeIPEntries implements IPEntryInterface

func (*FakeIPEntries) Create

func (c *FakeIPEntries) Create(ctx context.Context, iPEntry *v1alpha1.IPEntry, opts v1.CreateOptions) (result *v1alpha1.IPEntry, err error)

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

func (*FakeIPEntries) Delete

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

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

func (*FakeIPEntries) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIPEntries) Get

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

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

func (*FakeIPEntries) List

func (c *FakeIPEntries) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IPEntryList, err error)

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

func (*FakeIPEntries) Patch

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

Patch applies the patch and returns the patched iPEntry.

func (*FakeIPEntries) Update

func (c *FakeIPEntries) Update(ctx context.Context, iPEntry *v1alpha1.IPEntry, opts v1.UpdateOptions) (result *v1alpha1.IPEntry, err error)

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

func (*FakeIPEntries) UpdateStatus

func (c *FakeIPEntries) UpdateStatus(ctx context.Context, iPEntry *v1alpha1.IPEntry, opts v1.UpdateOptions) (*v1alpha1.IPEntry, error)

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

func (*FakeIPEntries) Watch

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

type FakeIPIndexes

type FakeIPIndexes struct {
	Fake *FakeIpamV1alpha1
	// contains filtered or unexported fields
}

FakeIPIndexes implements IPIndexInterface

func (*FakeIPIndexes) Create

func (c *FakeIPIndexes) Create(ctx context.Context, iPIndex *v1alpha1.IPIndex, opts v1.CreateOptions) (result *v1alpha1.IPIndex, err error)

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

func (*FakeIPIndexes) Delete

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

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

func (*FakeIPIndexes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIPIndexes) Get

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

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

func (*FakeIPIndexes) List

func (c *FakeIPIndexes) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IPIndexList, err error)

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

func (*FakeIPIndexes) Patch

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

Patch applies the patch and returns the patched iPIndex.

func (*FakeIPIndexes) Update

func (c *FakeIPIndexes) Update(ctx context.Context, iPIndex *v1alpha1.IPIndex, opts v1.UpdateOptions) (result *v1alpha1.IPIndex, err error)

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

func (*FakeIPIndexes) UpdateStatus

func (c *FakeIPIndexes) UpdateStatus(ctx context.Context, iPIndex *v1alpha1.IPIndex, opts v1.UpdateOptions) (*v1alpha1.IPIndex, error)

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

func (*FakeIPIndexes) Watch

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

type FakeIpamV1alpha1

type FakeIpamV1alpha1 struct {
	*testing.Fake
}

func (*FakeIpamV1alpha1) IPClaims

func (c *FakeIpamV1alpha1) IPClaims(namespace string) v1alpha1.IPClaimInterface

func (*FakeIpamV1alpha1) IPEntries

func (c *FakeIpamV1alpha1) IPEntries(namespace string) v1alpha1.IPEntryInterface

func (*FakeIpamV1alpha1) IPIndexes

func (c *FakeIpamV1alpha1) IPIndexes(namespace string) v1alpha1.IPIndexInterface

func (*FakeIpamV1alpha1) RESTClient

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