fake

package
v0.0.0-...-dfc9681 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 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 FakeCoreV2

type FakeCoreV2 struct {
	*testing.Fake
}

func (*FakeCoreV2) RESTClient

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

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

func (*FakeCoreV2) ServiceMeshControlPlanes

func (c *FakeCoreV2) ServiceMeshControlPlanes(namespace string) v2.ServiceMeshControlPlaneInterface

type FakeServiceMeshControlPlanes

type FakeServiceMeshControlPlanes struct {
	Fake *FakeCoreV2
	// contains filtered or unexported fields
}

FakeServiceMeshControlPlanes implements ServiceMeshControlPlaneInterface

func (*FakeServiceMeshControlPlanes) Create

func (c *FakeServiceMeshControlPlanes) Create(ctx context.Context, serviceMeshControlPlane *v2.ServiceMeshControlPlane, opts v1.CreateOptions) (result *v2.ServiceMeshControlPlane, err error)

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

func (*FakeServiceMeshControlPlanes) Delete

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

func (*FakeServiceMeshControlPlanes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceMeshControlPlanes) Get

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

func (*FakeServiceMeshControlPlanes) List

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

func (*FakeServiceMeshControlPlanes) Patch

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

Patch applies the patch and returns the patched serviceMeshControlPlane.

func (*FakeServiceMeshControlPlanes) Update

func (c *FakeServiceMeshControlPlanes) Update(ctx context.Context, serviceMeshControlPlane *v2.ServiceMeshControlPlane, opts v1.UpdateOptions) (result *v2.ServiceMeshControlPlane, err error)

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

func (*FakeServiceMeshControlPlanes) UpdateStatus

func (c *FakeServiceMeshControlPlanes) UpdateStatus(ctx context.Context, serviceMeshControlPlane *v2.ServiceMeshControlPlane, opts v1.UpdateOptions) (*v2.ServiceMeshControlPlane, error)

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

func (*FakeServiceMeshControlPlanes) Watch

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

Jump to

Keyboard shortcuts

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