fake

package
v1.2.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 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 FakeAccessControlPolicies

type FakeAccessControlPolicies struct {
	Fake *FakeGatewayV1alpha1
	// contains filtered or unexported fields
}

FakeAccessControlPolicies implements AccessControlPolicyInterface

func (*FakeAccessControlPolicies) Create

func (c *FakeAccessControlPolicies) Create(ctx context.Context, accessControlPolicy *v1alpha1.AccessControlPolicy, opts v1.CreateOptions) (result *v1alpha1.AccessControlPolicy, err error)

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

func (*FakeAccessControlPolicies) Delete

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

func (*FakeAccessControlPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAccessControlPolicies) Get

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

func (*FakeAccessControlPolicies) List

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

func (*FakeAccessControlPolicies) Patch

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

Patch applies the patch and returns the patched accessControlPolicy.

func (*FakeAccessControlPolicies) Update

func (c *FakeAccessControlPolicies) Update(ctx context.Context, accessControlPolicy *v1alpha1.AccessControlPolicy, opts v1.UpdateOptions) (result *v1alpha1.AccessControlPolicy, err error)

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

func (*FakeAccessControlPolicies) UpdateStatus

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

func (*FakeAccessControlPolicies) Watch

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

type FakeCircuitBreakingPolicies

type FakeCircuitBreakingPolicies struct {
	Fake *FakeGatewayV1alpha1
	// contains filtered or unexported fields
}

FakeCircuitBreakingPolicies implements CircuitBreakingPolicyInterface

func (*FakeCircuitBreakingPolicies) Create

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

func (*FakeCircuitBreakingPolicies) Delete

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

func (*FakeCircuitBreakingPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCircuitBreakingPolicies) Get

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

func (*FakeCircuitBreakingPolicies) List

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

func (*FakeCircuitBreakingPolicies) Patch

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

Patch applies the patch and returns the patched circuitBreakingPolicy.

func (*FakeCircuitBreakingPolicies) Update

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

func (*FakeCircuitBreakingPolicies) UpdateStatus

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

func (*FakeCircuitBreakingPolicies) Watch

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

type FakeGatewayV1alpha1

type FakeGatewayV1alpha1 struct {
	*testing.Fake
}

func (*FakeGatewayV1alpha1) AccessControlPolicies

func (c *FakeGatewayV1alpha1) AccessControlPolicies(namespace string) v1alpha1.AccessControlPolicyInterface

func (*FakeGatewayV1alpha1) CircuitBreakingPolicies

func (c *FakeGatewayV1alpha1) CircuitBreakingPolicies(namespace string) v1alpha1.CircuitBreakingPolicyInterface

func (*FakeGatewayV1alpha1) LoadBalancerPolicies

func (c *FakeGatewayV1alpha1) LoadBalancerPolicies(namespace string) v1alpha1.LoadBalancerPolicyInterface

func (*FakeGatewayV1alpha1) RESTClient

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

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

func (*FakeGatewayV1alpha1) RateLimitPolicies

func (c *FakeGatewayV1alpha1) RateLimitPolicies(namespace string) v1alpha1.RateLimitPolicyInterface

func (*FakeGatewayV1alpha1) SessionStickyPolicies

func (c *FakeGatewayV1alpha1) SessionStickyPolicies(namespace string) v1alpha1.SessionStickyPolicyInterface

type FakeLoadBalancerPolicies

type FakeLoadBalancerPolicies struct {
	Fake *FakeGatewayV1alpha1
	// contains filtered or unexported fields
}

FakeLoadBalancerPolicies implements LoadBalancerPolicyInterface

func (*FakeLoadBalancerPolicies) Create

func (c *FakeLoadBalancerPolicies) Create(ctx context.Context, loadBalancerPolicy *v1alpha1.LoadBalancerPolicy, opts v1.CreateOptions) (result *v1alpha1.LoadBalancerPolicy, err error)

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

func (*FakeLoadBalancerPolicies) Delete

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

func (*FakeLoadBalancerPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeLoadBalancerPolicies) Get

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

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

func (*FakeLoadBalancerPolicies) List

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

func (*FakeLoadBalancerPolicies) Patch

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

Patch applies the patch and returns the patched loadBalancerPolicy.

func (*FakeLoadBalancerPolicies) Update

func (c *FakeLoadBalancerPolicies) Update(ctx context.Context, loadBalancerPolicy *v1alpha1.LoadBalancerPolicy, opts v1.UpdateOptions) (result *v1alpha1.LoadBalancerPolicy, err error)

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

func (*FakeLoadBalancerPolicies) UpdateStatus

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

func (*FakeLoadBalancerPolicies) Watch

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

type FakeRateLimitPolicies

type FakeRateLimitPolicies struct {
	Fake *FakeGatewayV1alpha1
	// contains filtered or unexported fields
}

FakeRateLimitPolicies implements RateLimitPolicyInterface

func (*FakeRateLimitPolicies) Create

func (c *FakeRateLimitPolicies) Create(ctx context.Context, rateLimitPolicy *v1alpha1.RateLimitPolicy, opts v1.CreateOptions) (result *v1alpha1.RateLimitPolicy, err error)

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

func (*FakeRateLimitPolicies) Delete

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

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

func (*FakeRateLimitPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRateLimitPolicies) Get

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

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

func (*FakeRateLimitPolicies) List

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

func (*FakeRateLimitPolicies) Patch

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

Patch applies the patch and returns the patched rateLimitPolicy.

func (*FakeRateLimitPolicies) Update

func (c *FakeRateLimitPolicies) Update(ctx context.Context, rateLimitPolicy *v1alpha1.RateLimitPolicy, opts v1.UpdateOptions) (result *v1alpha1.RateLimitPolicy, err error)

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

func (*FakeRateLimitPolicies) UpdateStatus

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

func (*FakeRateLimitPolicies) Watch

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

type FakeSessionStickyPolicies

type FakeSessionStickyPolicies struct {
	Fake *FakeGatewayV1alpha1
	// contains filtered or unexported fields
}

FakeSessionStickyPolicies implements SessionStickyPolicyInterface

func (*FakeSessionStickyPolicies) Create

func (c *FakeSessionStickyPolicies) Create(ctx context.Context, sessionStickyPolicy *v1alpha1.SessionStickyPolicy, opts v1.CreateOptions) (result *v1alpha1.SessionStickyPolicy, err error)

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

func (*FakeSessionStickyPolicies) Delete

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

func (*FakeSessionStickyPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSessionStickyPolicies) Get

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

func (*FakeSessionStickyPolicies) List

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

func (*FakeSessionStickyPolicies) Patch

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

Patch applies the patch and returns the patched sessionStickyPolicy.

func (*FakeSessionStickyPolicies) Update

func (c *FakeSessionStickyPolicies) Update(ctx context.Context, sessionStickyPolicy *v1alpha1.SessionStickyPolicy, opts v1.UpdateOptions) (result *v1alpha1.SessionStickyPolicy, err error)

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

func (*FakeSessionStickyPolicies) UpdateStatus

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

func (*FakeSessionStickyPolicies) Watch

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

Jump to

Keyboard shortcuts

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