fake

package
v0.0.0-...-a6c227c Latest Latest
Warning

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

Go to latest
Published: Jul 26, 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 FakeProxyV1alpha1

type FakeProxyV1alpha1 struct {
	*testing.Fake
}

func (*FakeProxyV1alpha1) RESTClient

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

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

func (*FakeProxyV1alpha1) RateLimitConditions

func (c *FakeProxyV1alpha1) RateLimitConditions() v1alpha1.RateLimitConditionInterface

func (*FakeProxyV1alpha1) UpstreamClusters

func (c *FakeProxyV1alpha1) UpstreamClusters() v1alpha1.UpstreamClusterInterface

type FakeRateLimitConditions

type FakeRateLimitConditions struct {
	Fake *FakeProxyV1alpha1
}

FakeRateLimitConditions implements RateLimitConditionInterface

func (*FakeRateLimitConditions) Acquire

func (c *FakeRateLimitConditions) Acquire(ctx context.Context, rateLimitConditionName string, rateLimitAcquire *v1alpha1.RateLimitAcquire, opts v1.CreateOptions) (result *v1alpha1.RateLimitAcquire, err error)

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

func (*FakeRateLimitConditions) Create

func (c *FakeRateLimitConditions) Create(ctx context.Context, rateLimitCondition *v1alpha1.RateLimitCondition, opts v1.CreateOptions) (result *v1alpha1.RateLimitCondition, err error)

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

func (*FakeRateLimitConditions) Delete

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

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

func (*FakeRateLimitConditions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRateLimitConditions) Get

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

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

func (*FakeRateLimitConditions) List

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

func (*FakeRateLimitConditions) Patch

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

Patch applies the patch and returns the patched rateLimitCondition.

func (*FakeRateLimitConditions) Update

func (c *FakeRateLimitConditions) Update(ctx context.Context, rateLimitCondition *v1alpha1.RateLimitCondition, opts v1.UpdateOptions) (result *v1alpha1.RateLimitCondition, err error)

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

func (*FakeRateLimitConditions) UpdateStatus

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

func (*FakeRateLimitConditions) Watch

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

type FakeUpstreamClusters

type FakeUpstreamClusters struct {
	Fake *FakeProxyV1alpha1
}

FakeUpstreamClusters implements UpstreamClusterInterface

func (*FakeUpstreamClusters) Create

func (c *FakeUpstreamClusters) Create(ctx context.Context, upstreamCluster *v1alpha1.UpstreamCluster, opts v1.CreateOptions) (result *v1alpha1.UpstreamCluster, err error)

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

func (*FakeUpstreamClusters) Delete

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

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

func (*FakeUpstreamClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUpstreamClusters) Get

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

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

func (*FakeUpstreamClusters) List

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

func (*FakeUpstreamClusters) Patch

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

Patch applies the patch and returns the patched upstreamCluster.

func (*FakeUpstreamClusters) Update

func (c *FakeUpstreamClusters) Update(ctx context.Context, upstreamCluster *v1alpha1.UpstreamCluster, opts v1.UpdateOptions) (result *v1alpha1.UpstreamCluster, err error)

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

func (*FakeUpstreamClusters) UpdateStatus

func (c *FakeUpstreamClusters) UpdateStatus(ctx context.Context, upstreamCluster *v1alpha1.UpstreamCluster, opts v1.UpdateOptions) (*v1alpha1.UpstreamCluster, error)

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

func (*FakeUpstreamClusters) Watch

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

Jump to

Keyboard shortcuts

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