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 FakeCoreV1

type FakeCoreV1 struct {
	*testing.Fake
}

func (*FakeCoreV1) RESTClient

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

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

func (*FakeCoreV1) ServiceMeshControlPlanes

func (c *FakeCoreV1) ServiceMeshControlPlanes(namespace string) v1.ServiceMeshControlPlaneInterface

func (*FakeCoreV1) ServiceMeshExtensions

func (c *FakeCoreV1) ServiceMeshExtensions(namespace string) v1.ServiceMeshExtensionInterface

func (*FakeCoreV1) ServiceMeshMemberRolls

func (c *FakeCoreV1) ServiceMeshMemberRolls(namespace string) v1.ServiceMeshMemberRollInterface

func (*FakeCoreV1) ServiceMeshMembers

func (c *FakeCoreV1) ServiceMeshMembers(namespace string) v1.ServiceMeshMemberInterface

type FakeServiceMeshControlPlanes

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

FakeServiceMeshControlPlanes implements ServiceMeshControlPlaneInterface

func (*FakeServiceMeshControlPlanes) Create

func (c *FakeServiceMeshControlPlanes) Create(ctx context.Context, serviceMeshControlPlane *v1.ServiceMeshControlPlane, opts metav1.CreateOptions) (result *v1.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 metav1.DeleteOptions, listOpts metav1.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 metav1.PatchOptions, subresources ...string) (result *v1.ServiceMeshControlPlane, err error)

Patch applies the patch and returns the patched serviceMeshControlPlane.

func (*FakeServiceMeshControlPlanes) Update

func (c *FakeServiceMeshControlPlanes) Update(ctx context.Context, serviceMeshControlPlane *v1.ServiceMeshControlPlane, opts metav1.UpdateOptions) (result *v1.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

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.

type FakeServiceMeshExtensions

type FakeServiceMeshExtensions struct {
	Fake *FakeCoreV1
	// contains filtered or unexported fields
}

FakeServiceMeshExtensions implements ServiceMeshExtensionInterface

func (*FakeServiceMeshExtensions) Create

func (c *FakeServiceMeshExtensions) Create(ctx context.Context, serviceMeshExtension *v1.ServiceMeshExtension, opts metav1.CreateOptions) (result *v1.ServiceMeshExtension, err error)

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

func (*FakeServiceMeshExtensions) Delete

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

func (*FakeServiceMeshExtensions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceMeshExtensions) Get

func (c *FakeServiceMeshExtensions) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ServiceMeshExtension, err error)

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

func (*FakeServiceMeshExtensions) List

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

func (*FakeServiceMeshExtensions) Patch

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

Patch applies the patch and returns the patched serviceMeshExtension.

func (*FakeServiceMeshExtensions) Update

func (c *FakeServiceMeshExtensions) Update(ctx context.Context, serviceMeshExtension *v1.ServiceMeshExtension, opts metav1.UpdateOptions) (result *v1.ServiceMeshExtension, err error)

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

func (*FakeServiceMeshExtensions) UpdateStatus

func (c *FakeServiceMeshExtensions) UpdateStatus(ctx context.Context, serviceMeshExtension *v1.ServiceMeshExtension, opts metav1.UpdateOptions) (*v1.ServiceMeshExtension, error)

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

func (*FakeServiceMeshExtensions) Watch

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

type FakeServiceMeshMemberRolls

type FakeServiceMeshMemberRolls struct {
	Fake *FakeCoreV1
	// contains filtered or unexported fields
}

FakeServiceMeshMemberRolls implements ServiceMeshMemberRollInterface

func (*FakeServiceMeshMemberRolls) Create

func (c *FakeServiceMeshMemberRolls) Create(ctx context.Context, serviceMeshMemberRoll *v1.ServiceMeshMemberRoll, opts metav1.CreateOptions) (result *v1.ServiceMeshMemberRoll, err error)

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

func (*FakeServiceMeshMemberRolls) Delete

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

func (*FakeServiceMeshMemberRolls) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceMeshMemberRolls) Get

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

func (*FakeServiceMeshMemberRolls) List

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

func (*FakeServiceMeshMemberRolls) Patch

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

Patch applies the patch and returns the patched serviceMeshMemberRoll.

func (*FakeServiceMeshMemberRolls) Update

func (c *FakeServiceMeshMemberRolls) Update(ctx context.Context, serviceMeshMemberRoll *v1.ServiceMeshMemberRoll, opts metav1.UpdateOptions) (result *v1.ServiceMeshMemberRoll, err error)

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

func (*FakeServiceMeshMemberRolls) UpdateStatus

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

func (*FakeServiceMeshMemberRolls) Watch

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

type FakeServiceMeshMembers

type FakeServiceMeshMembers struct {
	Fake *FakeCoreV1
	// contains filtered or unexported fields
}

FakeServiceMeshMembers implements ServiceMeshMemberInterface

func (*FakeServiceMeshMembers) Create

func (c *FakeServiceMeshMembers) Create(ctx context.Context, serviceMeshMember *v1.ServiceMeshMember, opts metav1.CreateOptions) (result *v1.ServiceMeshMember, err error)

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

func (*FakeServiceMeshMembers) Delete

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

func (*FakeServiceMeshMembers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceMeshMembers) Get

func (c *FakeServiceMeshMembers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ServiceMeshMember, err error)

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

func (*FakeServiceMeshMembers) List

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

func (*FakeServiceMeshMembers) Patch

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

Patch applies the patch and returns the patched serviceMeshMember.

func (*FakeServiceMeshMembers) Update

func (c *FakeServiceMeshMembers) Update(ctx context.Context, serviceMeshMember *v1.ServiceMeshMember, opts metav1.UpdateOptions) (result *v1.ServiceMeshMember, err error)

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

func (*FakeServiceMeshMembers) UpdateStatus

func (c *FakeServiceMeshMembers) UpdateStatus(ctx context.Context, serviceMeshMember *v1.ServiceMeshMember, opts metav1.UpdateOptions) (*v1.ServiceMeshMember, error)

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

func (*FakeServiceMeshMembers) Watch

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

Jump to

Keyboard shortcuts

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