fake

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

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

Go to latest
Published: May 10, 2022 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 FakeMeshDeployments

type FakeMeshDeployments struct {
	Fake *FakeMeshV1alpha1
	// contains filtered or unexported fields
}

FakeMeshDeployments implements MeshDeploymentInterface

func (*FakeMeshDeployments) Create

func (c *FakeMeshDeployments) Create(ctx context.Context, meshDeployment *v1alpha1.MeshDeployment, opts v1.CreateOptions) (result *v1alpha1.MeshDeployment, err error)

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

func (*FakeMeshDeployments) Delete

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

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

func (*FakeMeshDeployments) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMeshDeployments) Get

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

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

func (*FakeMeshDeployments) List

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

func (*FakeMeshDeployments) Patch

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

Patch applies the patch and returns the patched meshDeployment.

func (*FakeMeshDeployments) Update

func (c *FakeMeshDeployments) Update(ctx context.Context, meshDeployment *v1alpha1.MeshDeployment, opts v1.UpdateOptions) (result *v1alpha1.MeshDeployment, err error)

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

func (*FakeMeshDeployments) UpdateStatus

func (c *FakeMeshDeployments) UpdateStatus(ctx context.Context, meshDeployment *v1alpha1.MeshDeployment, opts v1.UpdateOptions) (*v1alpha1.MeshDeployment, error)

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

func (*FakeMeshDeployments) Watch

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

type FakeMeshFederations

type FakeMeshFederations struct {
	Fake *FakeMeshV1alpha1
	// contains filtered or unexported fields
}

FakeMeshFederations implements MeshFederationInterface

func (*FakeMeshFederations) Create

func (c *FakeMeshFederations) Create(ctx context.Context, meshFederation *v1alpha1.MeshFederation, opts v1.CreateOptions) (result *v1alpha1.MeshFederation, err error)

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

func (*FakeMeshFederations) Delete

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

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

func (*FakeMeshFederations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMeshFederations) Get

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

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

func (*FakeMeshFederations) List

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

func (*FakeMeshFederations) Patch

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

Patch applies the patch and returns the patched meshFederation.

func (*FakeMeshFederations) Update

func (c *FakeMeshFederations) Update(ctx context.Context, meshFederation *v1alpha1.MeshFederation, opts v1.UpdateOptions) (result *v1alpha1.MeshFederation, err error)

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

func (*FakeMeshFederations) UpdateStatus

func (c *FakeMeshFederations) UpdateStatus(ctx context.Context, meshFederation *v1alpha1.MeshFederation, opts v1.UpdateOptions) (*v1alpha1.MeshFederation, error)

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

func (*FakeMeshFederations) Watch

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

type FakeMeshV1alpha1

type FakeMeshV1alpha1 struct {
	*testing.Fake
}

func (*FakeMeshV1alpha1) MeshDeployments

func (c *FakeMeshV1alpha1) MeshDeployments(namespace string) v1alpha1.MeshDeploymentInterface

func (*FakeMeshV1alpha1) MeshFederations

func (c *FakeMeshV1alpha1) MeshFederations(namespace string) v1alpha1.MeshFederationInterface

func (*FakeMeshV1alpha1) Meshes

func (c *FakeMeshV1alpha1) Meshes(namespace string) v1alpha1.MeshInterface

func (*FakeMeshV1alpha1) RESTClient

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

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

type FakeMeshes

type FakeMeshes struct {
	Fake *FakeMeshV1alpha1
	// contains filtered or unexported fields
}

FakeMeshes implements MeshInterface

func (*FakeMeshes) Create

func (c *FakeMeshes) Create(ctx context.Context, mesh *v1alpha1.Mesh, opts v1.CreateOptions) (result *v1alpha1.Mesh, err error)

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

func (*FakeMeshes) Delete

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

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

func (*FakeMeshes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMeshes) Get

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

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

func (*FakeMeshes) List

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

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

func (*FakeMeshes) Patch

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

Patch applies the patch and returns the patched mesh.

func (*FakeMeshes) Update

func (c *FakeMeshes) Update(ctx context.Context, mesh *v1alpha1.Mesh, opts v1.UpdateOptions) (result *v1alpha1.Mesh, err error)

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

func (*FakeMeshes) UpdateStatus

func (c *FakeMeshes) UpdateStatus(ctx context.Context, mesh *v1alpha1.Mesh, opts v1.UpdateOptions) (*v1alpha1.Mesh, error)

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

func (*FakeMeshes) Watch

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

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

Jump to

Keyboard shortcuts

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