v0.0.0-...-6b6aee0 Latest Latest

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

Go to latest
Published: May 20, 2022 License: GPL-3.0 Imports: 10 Imported by: 0



Package fake has the automatically generated clients.



This section is empty.


This section is empty.


This section is empty.


type FakeElasticsearchV1

type FakeElasticsearchV1 struct {

func (*FakeElasticsearchV1) Elasticsearches

func (c *FakeElasticsearchV1) Elasticsearches(namespace string) v1.ElasticsearchInterface

func (*FakeElasticsearchV1) RESTClient

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

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

type FakeElasticsearches

type FakeElasticsearches struct {
	Fake *FakeElasticsearchV1
	// contains filtered or unexported fields

FakeElasticsearches implements ElasticsearchInterface

func (*FakeElasticsearches) Create

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

func (*FakeElasticsearches) Delete

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

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

func (*FakeElasticsearches) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeElasticsearches) Get

func (c *FakeElasticsearches) Get(ctx context.Context, name string, options v1.GetOptions) (result *elasticsearchv1.Elasticsearch, err error)

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

func (*FakeElasticsearches) List

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

func (*FakeElasticsearches) Patch

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

Patch applies the patch and returns the patched elasticsearch.

func (*FakeElasticsearches) Update

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

func (*FakeElasticsearches) UpdateStatus

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

func (*FakeElasticsearches) Watch

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

Jump to

Keyboard shortcuts

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