fake

package
v0.0.0-...-97dd610 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 12 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 FakeAuthenticationPolicies

type FakeAuthenticationPolicies struct {
	Fake *FakeDubboV1beta1
	// contains filtered or unexported fields
}

FakeAuthenticationPolicies implements AuthenticationPolicyInterface

func (*FakeAuthenticationPolicies) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied authenticationPolicy.

func (*FakeAuthenticationPolicies) Create

func (c *FakeAuthenticationPolicies) Create(ctx context.Context, authenticationPolicy *v1beta1.AuthenticationPolicy, opts v1.CreateOptions) (result *v1beta1.AuthenticationPolicy, err error)

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

func (*FakeAuthenticationPolicies) Delete

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

func (*FakeAuthenticationPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAuthenticationPolicies) Get

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

func (*FakeAuthenticationPolicies) List

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

func (*FakeAuthenticationPolicies) Patch

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

Patch applies the patch and returns the patched authenticationPolicy.

func (*FakeAuthenticationPolicies) Update

func (c *FakeAuthenticationPolicies) Update(ctx context.Context, authenticationPolicy *v1beta1.AuthenticationPolicy, opts v1.UpdateOptions) (result *v1beta1.AuthenticationPolicy, err error)

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

func (*FakeAuthenticationPolicies) Watch

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

type FakeAuthorizationPolicies

type FakeAuthorizationPolicies struct {
	Fake *FakeDubboV1beta1
	// contains filtered or unexported fields
}

FakeAuthorizationPolicies implements AuthorizationPolicyInterface

func (*FakeAuthorizationPolicies) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied authorizationPolicy.

func (*FakeAuthorizationPolicies) Create

func (c *FakeAuthorizationPolicies) Create(ctx context.Context, authorizationPolicy *v1beta1.AuthorizationPolicy, opts v1.CreateOptions) (result *v1beta1.AuthorizationPolicy, err error)

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

func (*FakeAuthorizationPolicies) Delete

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

func (*FakeAuthorizationPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAuthorizationPolicies) Get

func (c *FakeAuthorizationPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.AuthorizationPolicy, err error)

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

func (*FakeAuthorizationPolicies) List

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

func (*FakeAuthorizationPolicies) Patch

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

Patch applies the patch and returns the patched authorizationPolicy.

func (*FakeAuthorizationPolicies) Update

func (c *FakeAuthorizationPolicies) Update(ctx context.Context, authorizationPolicy *v1beta1.AuthorizationPolicy, opts v1.UpdateOptions) (result *v1beta1.AuthorizationPolicy, err error)

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

func (*FakeAuthorizationPolicies) Watch

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

type FakeDubboV1beta1

type FakeDubboV1beta1 struct {
	*testing.Fake
}

func (*FakeDubboV1beta1) AuthenticationPolicies

func (c *FakeDubboV1beta1) AuthenticationPolicies(namespace string) v1beta1.AuthenticationPolicyInterface

func (*FakeDubboV1beta1) AuthorizationPolicies

func (c *FakeDubboV1beta1) AuthorizationPolicies(namespace string) v1beta1.AuthorizationPolicyInterface

func (*FakeDubboV1beta1) RESTClient

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