fake

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more 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 FakeConfigMaps

type FakeConfigMaps struct {
	Fake *FakeMeshV1
}

FakeConfigMaps implements ConfigMapInterface

func (*FakeConfigMaps) Create

func (c *FakeConfigMaps) Create(ctx context.Context, configMap *meshv1.ConfigMap, opts v1.CreateOptions) (result *meshv1.ConfigMap, err error)

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

func (*FakeConfigMaps) Delete

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

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

func (*FakeConfigMaps) Get

func (c *FakeConfigMaps) Get(ctx context.Context, name string, options v1.GetOptions) (result *meshv1.ConfigMap, err error)

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

func (*FakeConfigMaps) List

func (c *FakeConfigMaps) List(ctx context.Context, opts v1.ListOptions) (result *meshv1.ConfigMapList, err error)

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

func (*FakeConfigMaps) Patch

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

Patch applies the patch and returns the patched configMap.

func (*FakeConfigMaps) Update

func (c *FakeConfigMaps) Update(ctx context.Context, configMap *meshv1.ConfigMap, opts v1.UpdateOptions) (result *meshv1.ConfigMap, err error)

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

func (*FakeConfigMaps) Watch

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

type FakeMeshManagers

type FakeMeshManagers struct {
	Fake *FakeMeshV1
}

FakeMeshManagers implements MeshManagerInterface

func (*FakeMeshManagers) Create

func (c *FakeMeshManagers) Create(ctx context.Context, meshManager *meshv1.MeshManager, opts v1.CreateOptions) (result *meshv1.MeshManager, err error)

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

func (*FakeMeshManagers) Delete

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

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

func (*FakeMeshManagers) Get

func (c *FakeMeshManagers) Get(ctx context.Context, name string, options v1.GetOptions) (result *meshv1.MeshManager, err error)

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

func (*FakeMeshManagers) List

func (c *FakeMeshManagers) List(ctx context.Context, opts v1.ListOptions) (result *meshv1.MeshManagerList, err error)

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

func (*FakeMeshManagers) Patch

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

Patch applies the patch and returns the patched meshManager.

func (*FakeMeshManagers) Update

func (c *FakeMeshManagers) Update(ctx context.Context, meshManager *meshv1.MeshManager, opts v1.UpdateOptions) (result *meshv1.MeshManager, err error)

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

func (*FakeMeshManagers) UpdateStatus

func (c *FakeMeshManagers) UpdateStatus(ctx context.Context, meshManager *meshv1.MeshManager, opts v1.UpdateOptions) (*meshv1.MeshManager, error)

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

func (*FakeMeshManagers) Watch

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

type FakeMeshV1

type FakeMeshV1 struct {
	*testing.Fake
}

func (*FakeMeshV1) ConfigMaps

func (c *FakeMeshV1) ConfigMaps() v1.ConfigMapInterface

func (*FakeMeshV1) MeshManagers

func (c *FakeMeshV1) MeshManagers() v1.MeshManagerInterface

func (*FakeMeshV1) RESTClient

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

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

Jump to

Keyboard shortcuts

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