fake

package
v0.32.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 12 Imported by: 73

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 FakeAdmissionregistrationV1alpha1

type FakeAdmissionregistrationV1alpha1 struct {
	*testing.Fake
}

func (*FakeAdmissionregistrationV1alpha1) MutatingAdmissionPolicies added in v0.32.0

func (*FakeAdmissionregistrationV1alpha1) MutatingAdmissionPolicyBindings added in v0.32.0

func (*FakeAdmissionregistrationV1alpha1) RESTClient

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

func (*FakeAdmissionregistrationV1alpha1) ValidatingAdmissionPolicies

func (*FakeAdmissionregistrationV1alpha1) ValidatingAdmissionPolicyBindings

type FakeMutatingAdmissionPolicies

type FakeMutatingAdmissionPolicies struct {
	Fake *FakeAdmissionregistrationV1alpha1
}

FakeMutatingAdmissionPolicies implements MutatingAdmissionPolicyInterface

func (*FakeMutatingAdmissionPolicies) Apply

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

func (*FakeMutatingAdmissionPolicies) Create

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

func (*FakeMutatingAdmissionPolicies) Delete

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

func (*FakeMutatingAdmissionPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMutatingAdmissionPolicies) Get

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

func (*FakeMutatingAdmissionPolicies) List

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

func (*FakeMutatingAdmissionPolicies) Patch

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

Patch applies the patch and returns the patched mutatingAdmissionPolicy.

func (*FakeMutatingAdmissionPolicies) Update

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

func (*FakeMutatingAdmissionPolicies) Watch

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

type FakeMutatingAdmissionPolicyBindings

type FakeMutatingAdmissionPolicyBindings struct {
	Fake *FakeAdmissionregistrationV1alpha1
}

FakeMutatingAdmissionPolicyBindings implements MutatingAdmissionPolicyBindingInterface

func (*FakeMutatingAdmissionPolicyBindings) Apply

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

func (*FakeMutatingAdmissionPolicyBindings) Create

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

func (*FakeMutatingAdmissionPolicyBindings) Delete

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

func (*FakeMutatingAdmissionPolicyBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMutatingAdmissionPolicyBindings) Get

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

func (*FakeMutatingAdmissionPolicyBindings) List

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

func (*FakeMutatingAdmissionPolicyBindings) Patch

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

Patch applies the patch and returns the patched mutatingAdmissionPolicyBinding.

func (*FakeMutatingAdmissionPolicyBindings) Update

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

func (*FakeMutatingAdmissionPolicyBindings) Watch

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

type FakeValidatingAdmissionPolicies

type FakeValidatingAdmissionPolicies struct {
	Fake *FakeAdmissionregistrationV1alpha1
}

FakeValidatingAdmissionPolicies implements ValidatingAdmissionPolicyInterface

func (*FakeValidatingAdmissionPolicies) Apply

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

func (*FakeValidatingAdmissionPolicies) ApplyStatus added in v0.27.0

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

func (*FakeValidatingAdmissionPolicies) Create

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

func (*FakeValidatingAdmissionPolicies) Delete

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

func (*FakeValidatingAdmissionPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeValidatingAdmissionPolicies) Get

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

func (*FakeValidatingAdmissionPolicies) List

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

func (*FakeValidatingAdmissionPolicies) Patch

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

Patch applies the patch and returns the patched validatingAdmissionPolicy.

func (*FakeValidatingAdmissionPolicies) Update

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

func (*FakeValidatingAdmissionPolicies) UpdateStatus added in v0.27.0

func (c *FakeValidatingAdmissionPolicies) UpdateStatus(ctx context.Context, validatingAdmissionPolicy *v1alpha1.ValidatingAdmissionPolicy, opts v1.UpdateOptions) (result *v1alpha1.ValidatingAdmissionPolicy, err error)

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

func (*FakeValidatingAdmissionPolicies) Watch

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

type FakeValidatingAdmissionPolicyBindings

type FakeValidatingAdmissionPolicyBindings struct {
	Fake *FakeAdmissionregistrationV1alpha1
}

FakeValidatingAdmissionPolicyBindings implements ValidatingAdmissionPolicyBindingInterface

func (*FakeValidatingAdmissionPolicyBindings) Apply

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

func (*FakeValidatingAdmissionPolicyBindings) Create

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

func (*FakeValidatingAdmissionPolicyBindings) Delete

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

func (*FakeValidatingAdmissionPolicyBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeValidatingAdmissionPolicyBindings) Get

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

func (*FakeValidatingAdmissionPolicyBindings) List

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

func (*FakeValidatingAdmissionPolicyBindings) Patch

Patch applies the patch and returns the patched validatingAdmissionPolicyBinding.

func (*FakeValidatingAdmissionPolicyBindings) Update

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

func (*FakeValidatingAdmissionPolicyBindings) Watch

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

Jump to

Keyboard shortcuts

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