fake

package
v0.0.0-...-a0a3502 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 9 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) PodInfo

func (c *FakeCiliumV1alpha1) PodInfo(namespace string) v1alpha1.PodInfoInterface

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

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

type FakePodInfo

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

FakePodInfo implements PodInfoInterface

func (*FakePodInfo) Create

func (c *FakePodInfo) Create(ctx context.Context, podInfo *v1alpha1.PodInfo, opts v1.CreateOptions) (result *v1alpha1.PodInfo, err error)

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

func (*FakePodInfo) Delete

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

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

func (*FakePodInfo) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePodInfo) Get

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

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

func (*FakePodInfo) List

func (c *FakePodInfo) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PodInfoList, err error)

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

func (*FakePodInfo) Patch

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

Patch applies the patch and returns the patched podInfo.

func (*FakePodInfo) Update

func (c *FakePodInfo) Update(ctx context.Context, podInfo *v1alpha1.PodInfo, opts v1.UpdateOptions) (result *v1alpha1.PodInfo, err error)

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

func (*FakePodInfo) UpdateStatus

func (c *FakePodInfo) UpdateStatus(ctx context.Context, podInfo *v1alpha1.PodInfo, opts v1.UpdateOptions) (*v1alpha1.PodInfo, error)

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

func (*FakePodInfo) Watch

func (c *FakePodInfo) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

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

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

FakeTracingPoliciesNamespaced implements TracingPolicyNamespacedInterface

func (*FakeTracingPoliciesNamespaced) Create

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

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

func (*FakeTracingPoliciesNamespaced) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTracingPoliciesNamespaced) Get

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

func (*FakeTracingPoliciesNamespaced) List

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

func (*FakeTracingPoliciesNamespaced) Patch

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

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

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