fake

package
v0.0.0-...-146a38b Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: BSD-3-Clause, BSD-3-Clause 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 FakeElasticsearchClusters

type FakeElasticsearchClusters struct {
	Fake *FakeEnterprisesV1
	// contains filtered or unexported fields
}

FakeElasticsearchClusters implements ElasticsearchClusterInterface

func (*FakeElasticsearchClusters) Create

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

func (*FakeElasticsearchClusters) Delete

func (c *FakeElasticsearchClusters) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeElasticsearchClusters) DeleteCollection

func (c *FakeElasticsearchClusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeElasticsearchClusters) Get

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

func (*FakeElasticsearchClusters) List

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

func (*FakeElasticsearchClusters) Patch

func (c *FakeElasticsearchClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *elasticsearchoperator_v1.ElasticsearchCluster, err error)

Patch applies the patch and returns the patched elasticsearchCluster.

func (*FakeElasticsearchClusters) Update

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

func (*FakeElasticsearchClusters) UpdateStatus

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

func (*FakeElasticsearchClusters) Watch

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

type FakeEnterprisesV1

type FakeEnterprisesV1 struct {
	*testing.Fake
}

func (*FakeEnterprisesV1) ElasticsearchClusters

func (c *FakeEnterprisesV1) ElasticsearchClusters(namespace string) v1.ElasticsearchClusterInterface

func (*FakeEnterprisesV1) RESTClient

func (c *FakeEnterprisesV1) 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