Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeElasticsearchV1
- type FakeElasticsearches
- func (c *FakeElasticsearches) Create(ctx context.Context, elasticsearch *elasticsearchv1.Elasticsearch, ...) (result *elasticsearchv1.Elasticsearch, err error)
- func (c *FakeElasticsearches) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeElasticsearches) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeElasticsearches) Get(ctx context.Context, name string, options v1.GetOptions) (result *elasticsearchv1.Elasticsearch, err error)
- func (c *FakeElasticsearches) List(ctx context.Context, opts v1.ListOptions) (result *elasticsearchv1.ElasticsearchList, err error)
- func (c *FakeElasticsearches) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *elasticsearchv1.Elasticsearch, err error)
- func (c *FakeElasticsearches) Update(ctx context.Context, elasticsearch *elasticsearchv1.Elasticsearch, ...) (result *elasticsearchv1.Elasticsearch, err error)
- func (c *FakeElasticsearches) UpdateStatus(ctx context.Context, elasticsearch *elasticsearchv1.Elasticsearch, ...) (*elasticsearchv1.Elasticsearch, error)
- func (c *FakeElasticsearches) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeElasticsearchV1 ¶
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 ¶
func (c *FakeElasticsearches) Create(ctx context.Context, elasticsearch *elasticsearchv1.Elasticsearch, opts v1.CreateOptions) (result *elasticsearchv1.Elasticsearch, err error)
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 ¶
func (c *FakeElasticsearches) List(ctx context.Context, opts v1.ListOptions) (result *elasticsearchv1.ElasticsearchList, err error)
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 ¶
func (c *FakeElasticsearches) Update(ctx context.Context, elasticsearch *elasticsearchv1.Elasticsearch, opts v1.UpdateOptions) (result *elasticsearchv1.Elasticsearch, err error)
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 ¶
func (c *FakeElasticsearches) UpdateStatus(ctx context.Context, elasticsearch *elasticsearchv1.Elasticsearch, opts v1.UpdateOptions) (*elasticsearchv1.Elasticsearch, error)
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 ¶
func (c *FakeElasticsearches) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested elasticsearches.