fake

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 4

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 FakeAdmissionregistrationV1

type FakeAdmissionregistrationV1 struct {
	*testing.Fake
}

func (*FakeAdmissionregistrationV1) MutatingWebhookConfigurations

func (c *FakeAdmissionregistrationV1) MutatingWebhookConfigurations() v1.MutatingWebhookConfigurationInterface

func (*FakeAdmissionregistrationV1) RESTClient

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

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

func (*FakeAdmissionregistrationV1) ValidatingAdmissionPolicies added in v0.30.0

func (c *FakeAdmissionregistrationV1) ValidatingAdmissionPolicies() v1.ValidatingAdmissionPolicyInterface

func (*FakeAdmissionregistrationV1) ValidatingAdmissionPolicyBindings added in v0.30.0

func (c *FakeAdmissionregistrationV1) ValidatingAdmissionPolicyBindings() v1.ValidatingAdmissionPolicyBindingInterface

func (*FakeAdmissionregistrationV1) ValidatingWebhookConfigurations

func (c *FakeAdmissionregistrationV1) ValidatingWebhookConfigurations() v1.ValidatingWebhookConfigurationInterface

type FakeMutatingWebhookConfigurations

type FakeMutatingWebhookConfigurations struct {
	Fake *FakeAdmissionregistrationV1
}

FakeMutatingWebhookConfigurations implements MutatingWebhookConfigurationInterface

func (*FakeMutatingWebhookConfigurations) Apply added in v0.21.0

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

func (*FakeMutatingWebhookConfigurations) Create

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

func (*FakeMutatingWebhookConfigurations) Delete

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

func (*FakeMutatingWebhookConfigurations) DeleteCollection

DeleteCollection deletes a collection of objects.

func (*FakeMutatingWebhookConfigurations) Get

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

func (*FakeMutatingWebhookConfigurations) List

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

func (*FakeMutatingWebhookConfigurations) Patch

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

Patch applies the patch and returns the patched mutatingWebhookConfiguration.

func (*FakeMutatingWebhookConfigurations) Update

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

func (*FakeMutatingWebhookConfigurations) Watch

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

type FakeValidatingAdmissionPolicies added in v0.30.0

type FakeValidatingAdmissionPolicies struct {
	Fake *FakeAdmissionregistrationV1
}

FakeValidatingAdmissionPolicies implements ValidatingAdmissionPolicyInterface

func (*FakeValidatingAdmissionPolicies) Apply added in v0.30.0

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

func (*FakeValidatingAdmissionPolicies) ApplyStatus added in v0.30.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 added in v0.30.0

func (c *FakeValidatingAdmissionPolicies) Create(ctx context.Context, validatingAdmissionPolicy *v1.ValidatingAdmissionPolicy, opts metav1.CreateOptions) (result *v1.ValidatingAdmissionPolicy, err error)

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 added in v0.30.0

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

func (*FakeValidatingAdmissionPolicies) DeleteCollection added in v0.30.0

DeleteCollection deletes a collection of objects.

func (*FakeValidatingAdmissionPolicies) Get added in v0.30.0

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

func (*FakeValidatingAdmissionPolicies) List added in v0.30.0

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

func (*FakeValidatingAdmissionPolicies) Patch added in v0.30.0

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

Patch applies the patch and returns the patched validatingAdmissionPolicy.

func (*FakeValidatingAdmissionPolicies) Update added in v0.30.0

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

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.30.0

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 added in v0.30.0

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

type FakeValidatingAdmissionPolicyBindings added in v0.30.0

type FakeValidatingAdmissionPolicyBindings struct {
	Fake *FakeAdmissionregistrationV1
}

FakeValidatingAdmissionPolicyBindings implements ValidatingAdmissionPolicyBindingInterface

func (*FakeValidatingAdmissionPolicyBindings) Apply added in v0.30.0

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

func (*FakeValidatingAdmissionPolicyBindings) Create added in v0.30.0

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 added in v0.30.0

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

func (*FakeValidatingAdmissionPolicyBindings) DeleteCollection added in v0.30.0

DeleteCollection deletes a collection of objects.

func (*FakeValidatingAdmissionPolicyBindings) Get added in v0.30.0

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

func (*FakeValidatingAdmissionPolicyBindings) List added in v0.30.0

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

func (*FakeValidatingAdmissionPolicyBindings) Patch added in v0.30.0

Patch applies the patch and returns the patched validatingAdmissionPolicyBinding.

func (*FakeValidatingAdmissionPolicyBindings) Update added in v0.30.0

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 added in v0.30.0

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

type FakeValidatingWebhookConfigurations

type FakeValidatingWebhookConfigurations struct {
	Fake *FakeAdmissionregistrationV1
}

FakeValidatingWebhookConfigurations implements ValidatingWebhookConfigurationInterface

func (*FakeValidatingWebhookConfigurations) Apply added in v0.21.0

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

func (*FakeValidatingWebhookConfigurations) Create

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

func (*FakeValidatingWebhookConfigurations) Delete

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

func (*FakeValidatingWebhookConfigurations) DeleteCollection

DeleteCollection deletes a collection of objects.

func (*FakeValidatingWebhookConfigurations) Get

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

func (*FakeValidatingWebhookConfigurations) List

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

func (*FakeValidatingWebhookConfigurations) Patch

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

Patch applies the patch and returns the patched validatingWebhookConfiguration.

func (*FakeValidatingWebhookConfigurations) Update

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

func (*FakeValidatingWebhookConfigurations) Watch

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

Jump to

Keyboard shortcuts

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