fake

package
v1.72.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 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 FakeBinaryAuthorizationAttestors

type FakeBinaryAuthorizationAttestors struct {
	Fake *FakeBinaryauthorizationV1beta1
	// contains filtered or unexported fields
}

FakeBinaryAuthorizationAttestors implements BinaryAuthorizationAttestorInterface

func (*FakeBinaryAuthorizationAttestors) Create

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

func (*FakeBinaryAuthorizationAttestors) Delete

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

func (*FakeBinaryAuthorizationAttestors) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBinaryAuthorizationAttestors) Get

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

func (*FakeBinaryAuthorizationAttestors) List

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

func (*FakeBinaryAuthorizationAttestors) Patch

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

Patch applies the patch and returns the patched binaryAuthorizationAttestor.

func (*FakeBinaryAuthorizationAttestors) Update

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

func (*FakeBinaryAuthorizationAttestors) UpdateStatus

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

func (*FakeBinaryAuthorizationAttestors) Watch

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

type FakeBinaryAuthorizationPolicies added in v1.56.0

type FakeBinaryAuthorizationPolicies struct {
	Fake *FakeBinaryauthorizationV1beta1
	// contains filtered or unexported fields
}

FakeBinaryAuthorizationPolicies implements BinaryAuthorizationPolicyInterface

func (*FakeBinaryAuthorizationPolicies) Create added in v1.56.0

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

func (*FakeBinaryAuthorizationPolicies) Delete added in v1.56.0

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

func (*FakeBinaryAuthorizationPolicies) DeleteCollection added in v1.56.0

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

DeleteCollection deletes a collection of objects.

func (*FakeBinaryAuthorizationPolicies) Get added in v1.56.0

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

func (*FakeBinaryAuthorizationPolicies) List added in v1.56.0

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

func (*FakeBinaryAuthorizationPolicies) Patch added in v1.56.0

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

Patch applies the patch and returns the patched binaryAuthorizationPolicy.

func (*FakeBinaryAuthorizationPolicies) Update added in v1.56.0

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

func (*FakeBinaryAuthorizationPolicies) UpdateStatus added in v1.56.0

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

func (*FakeBinaryAuthorizationPolicies) Watch added in v1.56.0

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

type FakeBinaryauthorizationV1beta1

type FakeBinaryauthorizationV1beta1 struct {
	*testing.Fake
}

func (*FakeBinaryauthorizationV1beta1) BinaryAuthorizationAttestors

func (c *FakeBinaryauthorizationV1beta1) BinaryAuthorizationAttestors(namespace string) v1beta1.BinaryAuthorizationAttestorInterface

func (*FakeBinaryauthorizationV1beta1) BinaryAuthorizationPolicies added in v1.56.0

func (c *FakeBinaryauthorizationV1beta1) BinaryAuthorizationPolicies(namespace string) v1beta1.BinaryAuthorizationPolicyInterface

func (*FakeBinaryauthorizationV1beta1) RESTClient

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