fake

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 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 FakeConfigV1alpha1

type FakeConfigV1alpha1 struct {
	*testing.Fake
}

func (*FakeConfigV1alpha1) MeshConfigs

func (c *FakeConfigV1alpha1) MeshConfigs(namespace string) v1alpha1.MeshConfigInterface

func (*FakeConfigV1alpha1) MultiClusterServices added in v0.10.0

func (c *FakeConfigV1alpha1) MultiClusterServices(namespace string) v1alpha1.MultiClusterServiceInterface

func (*FakeConfigV1alpha1) RESTClient

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

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

type FakeMeshConfigs

type FakeMeshConfigs struct {
	Fake *FakeConfigV1alpha1
	// contains filtered or unexported fields
}

FakeMeshConfigs implements MeshConfigInterface

func (*FakeMeshConfigs) Create

func (c *FakeMeshConfigs) Create(ctx context.Context, meshConfig *v1alpha1.MeshConfig, opts v1.CreateOptions) (result *v1alpha1.MeshConfig, err error)

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

func (*FakeMeshConfigs) Delete

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

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

func (*FakeMeshConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMeshConfigs) Get

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

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

func (*FakeMeshConfigs) List

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

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

func (*FakeMeshConfigs) Patch

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

Patch applies the patch and returns the patched meshConfig.

func (*FakeMeshConfigs) Update

func (c *FakeMeshConfigs) Update(ctx context.Context, meshConfig *v1alpha1.MeshConfig, opts v1.UpdateOptions) (result *v1alpha1.MeshConfig, err error)

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

func (*FakeMeshConfigs) Watch

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

type FakeMultiClusterServices added in v0.10.0

type FakeMultiClusterServices struct {
	Fake *FakeConfigV1alpha1
	// contains filtered or unexported fields
}

FakeMultiClusterServices implements MultiClusterServiceInterface

func (*FakeMultiClusterServices) Create added in v0.10.0

func (c *FakeMultiClusterServices) Create(ctx context.Context, multiClusterService *v1alpha1.MultiClusterService, opts v1.CreateOptions) (result *v1alpha1.MultiClusterService, err error)

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

func (*FakeMultiClusterServices) Delete added in v0.10.0

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

func (*FakeMultiClusterServices) DeleteCollection added in v0.10.0

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

DeleteCollection deletes a collection of objects.

func (*FakeMultiClusterServices) Get added in v0.10.0

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

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

func (*FakeMultiClusterServices) List added in v0.10.0

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

func (*FakeMultiClusterServices) Patch added in v0.10.0

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

Patch applies the patch and returns the patched multiClusterService.

func (*FakeMultiClusterServices) Update added in v0.10.0

func (c *FakeMultiClusterServices) Update(ctx context.Context, multiClusterService *v1alpha1.MultiClusterService, opts v1.UpdateOptions) (result *v1alpha1.MultiClusterService, err error)

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

func (*FakeMultiClusterServices) Watch added in v0.10.0

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

Jump to

Keyboard shortcuts

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