fake

package
v1.21.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 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 FakeAuthorizationPolicies

type FakeAuthorizationPolicies struct {
	Fake *FakeSecurityV1
	// 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) ApplyStatus

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

func (*FakeAuthorizationPolicies) Create

func (c *FakeAuthorizationPolicies) Create(ctx context.Context, authorizationPolicy *v1.AuthorizationPolicy, opts metav1.CreateOptions) (result *v1.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 metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeAuthorizationPolicies) Get

func (c *FakeAuthorizationPolicies) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.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 metav1.PatchOptions, subresources ...string) (result *v1.AuthorizationPolicy, err error)

Patch applies the patch and returns the patched authorizationPolicy.

func (*FakeAuthorizationPolicies) Update

func (c *FakeAuthorizationPolicies) Update(ctx context.Context, authorizationPolicy *v1.AuthorizationPolicy, opts metav1.UpdateOptions) (result *v1.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) UpdateStatus

func (c *FakeAuthorizationPolicies) UpdateStatus(ctx context.Context, authorizationPolicy *v1.AuthorizationPolicy, opts metav1.UpdateOptions) (*v1.AuthorizationPolicy, error)

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

func (*FakeAuthorizationPolicies) Watch

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

type FakeRequestAuthentications

type FakeRequestAuthentications struct {
	Fake *FakeSecurityV1
	// contains filtered or unexported fields
}

FakeRequestAuthentications implements RequestAuthenticationInterface

func (*FakeRequestAuthentications) Apply

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

func (*FakeRequestAuthentications) ApplyStatus

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

func (*FakeRequestAuthentications) Create

func (c *FakeRequestAuthentications) Create(ctx context.Context, requestAuthentication *v1.RequestAuthentication, opts metav1.CreateOptions) (result *v1.RequestAuthentication, err error)

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

func (*FakeRequestAuthentications) Delete

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

func (*FakeRequestAuthentications) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRequestAuthentications) Get

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

func (*FakeRequestAuthentications) List

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

func (*FakeRequestAuthentications) Patch

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

Patch applies the patch and returns the patched requestAuthentication.

func (*FakeRequestAuthentications) Update

func (c *FakeRequestAuthentications) Update(ctx context.Context, requestAuthentication *v1.RequestAuthentication, opts metav1.UpdateOptions) (result *v1.RequestAuthentication, err error)

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

func (*FakeRequestAuthentications) UpdateStatus

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

func (*FakeRequestAuthentications) Watch

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

type FakeSecurityV1

type FakeSecurityV1 struct {
	*testing.Fake
}

func (*FakeSecurityV1) AuthorizationPolicies

func (c *FakeSecurityV1) AuthorizationPolicies(namespace string) v1.AuthorizationPolicyInterface

func (*FakeSecurityV1) RESTClient

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

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

func (*FakeSecurityV1) RequestAuthentications

func (c *FakeSecurityV1) RequestAuthentications(namespace string) v1.RequestAuthenticationInterface

Jump to

Keyboard shortcuts

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