fake

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 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 FakeDatadogAgents

type FakeDatadogAgents struct {
	Fake *FakeDatadoghqV1alpha1
	// contains filtered or unexported fields
}

FakeDatadogAgents implements DatadogAgentInterface

func (*FakeDatadogAgents) Create

func (c *FakeDatadogAgents) Create(ctx context.Context, datadogAgent *v1alpha1.DatadogAgent, opts v1.CreateOptions) (result *v1alpha1.DatadogAgent, err error)

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

func (*FakeDatadogAgents) Delete

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

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

func (*FakeDatadogAgents) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDatadogAgents) Get

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

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

func (*FakeDatadogAgents) List

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

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

func (*FakeDatadogAgents) Patch

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

Patch applies the patch and returns the patched datadogAgent.

func (*FakeDatadogAgents) Update

func (c *FakeDatadogAgents) Update(ctx context.Context, datadogAgent *v1alpha1.DatadogAgent, opts v1.UpdateOptions) (result *v1alpha1.DatadogAgent, err error)

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

func (*FakeDatadogAgents) UpdateStatus

func (c *FakeDatadogAgents) UpdateStatus(ctx context.Context, datadogAgent *v1alpha1.DatadogAgent, opts v1.UpdateOptions) (*v1alpha1.DatadogAgent, error)

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

func (*FakeDatadogAgents) Watch

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

type FakeDatadogMetrics added in v0.3.0

type FakeDatadogMetrics struct {
	Fake *FakeDatadoghqV1alpha1
	// contains filtered or unexported fields
}

FakeDatadogMetrics implements DatadogMetricInterface

func (*FakeDatadogMetrics) Create added in v0.3.0

func (c *FakeDatadogMetrics) Create(ctx context.Context, datadogMetric *v1alpha1.DatadogMetric, opts v1.CreateOptions) (result *v1alpha1.DatadogMetric, err error)

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

func (*FakeDatadogMetrics) Delete added in v0.3.0

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

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

func (*FakeDatadogMetrics) DeleteCollection added in v0.3.0

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

DeleteCollection deletes a collection of objects.

func (*FakeDatadogMetrics) Get added in v0.3.0

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

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

func (*FakeDatadogMetrics) List added in v0.3.0

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

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

func (*FakeDatadogMetrics) Patch added in v0.3.0

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

Patch applies the patch and returns the patched datadogMetric.

func (*FakeDatadogMetrics) Update added in v0.3.0

func (c *FakeDatadogMetrics) Update(ctx context.Context, datadogMetric *v1alpha1.DatadogMetric, opts v1.UpdateOptions) (result *v1alpha1.DatadogMetric, err error)

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

func (*FakeDatadogMetrics) UpdateStatus added in v0.3.0

func (c *FakeDatadogMetrics) UpdateStatus(ctx context.Context, datadogMetric *v1alpha1.DatadogMetric, opts v1.UpdateOptions) (*v1alpha1.DatadogMetric, error)

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

func (*FakeDatadogMetrics) Watch added in v0.3.0

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

type FakeDatadoghqV1alpha1

type FakeDatadoghqV1alpha1 struct {
	*testing.Fake
}

func (*FakeDatadoghqV1alpha1) DatadogAgents

func (c *FakeDatadoghqV1alpha1) DatadogAgents(namespace string) v1alpha1.DatadogAgentInterface

func (*FakeDatadoghqV1alpha1) DatadogMetrics added in v0.3.0

func (c *FakeDatadoghqV1alpha1) DatadogMetrics(namespace string) v1alpha1.DatadogMetricInterface

func (*FakeDatadoghqV1alpha1) RESTClient

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