fake

package
v0.0.0-...-0f9e047 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 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 FakeKubeArmorHostPolicies

type FakeKubeArmorHostPolicies struct {
	Fake *FakeSecurityV1
}

FakeKubeArmorHostPolicies implements KubeArmorHostPolicyInterface

func (*FakeKubeArmorHostPolicies) Create

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

func (*FakeKubeArmorHostPolicies) Delete

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

func (*FakeKubeArmorHostPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKubeArmorHostPolicies) Get

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

func (*FakeKubeArmorHostPolicies) List

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

func (*FakeKubeArmorHostPolicies) Patch

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

Patch applies the patch and returns the patched kubeArmorHostPolicy.

func (*FakeKubeArmorHostPolicies) Update

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

func (*FakeKubeArmorHostPolicies) UpdateStatus

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

func (*FakeKubeArmorHostPolicies) Watch

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

type FakeSecurityV1

type FakeSecurityV1 struct {
	*testing.Fake
}

func (*FakeSecurityV1) KubeArmorHostPolicies

func (c *FakeSecurityV1) KubeArmorHostPolicies() v1.KubeArmorHostPolicyInterface

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.

Jump to

Keyboard shortcuts

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