fake

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 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 FakeCiliumV1alpha1

type FakeCiliumV1alpha1 struct {
	*testing.Fake
}

func (*FakeCiliumV1alpha1) RESTClient

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

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

func (*FakeCiliumV1alpha1) TracingPolicies

func (c *FakeCiliumV1alpha1) TracingPolicies() v1alpha1.TracingPolicyInterface

func (*FakeCiliumV1alpha1) TracingPoliciesNamespaced added in v0.8.20

func (c *FakeCiliumV1alpha1) TracingPoliciesNamespaced(namespace string) v1alpha1.TracingPolicyNamespacedInterface

type FakeTracingPolicies

type FakeTracingPolicies struct {
	Fake *FakeCiliumV1alpha1
}

FakeTracingPolicies implements TracingPolicyInterface

func (*FakeTracingPolicies) Create

func (c *FakeTracingPolicies) Create(ctx context.Context, tracingPolicy *v1alpha1.TracingPolicy, opts v1.CreateOptions) (result *v1alpha1.TracingPolicy, err error)

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

func (*FakeTracingPolicies) Delete

func (c *FakeTracingPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeTracingPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTracingPolicies) Get

func (c *FakeTracingPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.TracingPolicy, err error)

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

func (*FakeTracingPolicies) List

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

func (*FakeTracingPolicies) Patch

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

Patch applies the patch and returns the patched tracingPolicy.

func (*FakeTracingPolicies) Update

func (c *FakeTracingPolicies) Update(ctx context.Context, tracingPolicy *v1alpha1.TracingPolicy, opts v1.UpdateOptions) (result *v1alpha1.TracingPolicy, err error)

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

func (*FakeTracingPolicies) Watch

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

type FakeTracingPoliciesNamespaced added in v0.8.20

type FakeTracingPoliciesNamespaced struct {
	Fake *FakeCiliumV1alpha1
	// contains filtered or unexported fields
}

FakeTracingPoliciesNamespaced implements TracingPolicyNamespacedInterface

func (*FakeTracingPoliciesNamespaced) Create added in v0.8.20

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

func (*FakeTracingPoliciesNamespaced) Delete added in v0.8.20

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

func (*FakeTracingPoliciesNamespaced) DeleteCollection added in v0.8.20

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

DeleteCollection deletes a collection of objects.

func (*FakeTracingPoliciesNamespaced) Get added in v0.8.20

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

func (*FakeTracingPoliciesNamespaced) List added in v0.8.20

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

func (*FakeTracingPoliciesNamespaced) Patch added in v0.8.20

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

Patch applies the patch and returns the patched tracingPolicyNamespaced.

func (*FakeTracingPoliciesNamespaced) Update added in v0.8.20

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

func (*FakeTracingPoliciesNamespaced) Watch added in v0.8.20

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

Jump to

Keyboard shortcuts

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