fake

package
v0.0.0-...-d88a328 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 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 FakeClusterLogSinks

type FakeClusterLogSinks struct {
	Fake *FakeObservabilityV1alpha1
	// contains filtered or unexported fields
}

FakeClusterLogSinks implements ClusterLogSinkInterface

func (*FakeClusterLogSinks) Create

func (c *FakeClusterLogSinks) Create(clusterLogSink *v1alpha1.ClusterLogSink) (result *v1alpha1.ClusterLogSink, err error)

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

func (*FakeClusterLogSinks) Delete

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

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

func (*FakeClusterLogSinks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterLogSinks) Get

func (c *FakeClusterLogSinks) Get(name string, options v1.GetOptions) (result *v1alpha1.ClusterLogSink, err error)

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

func (*FakeClusterLogSinks) List

func (c *FakeClusterLogSinks) List(opts v1.ListOptions) (result *v1alpha1.ClusterLogSinkList, err error)

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

func (*FakeClusterLogSinks) Patch

func (c *FakeClusterLogSinks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.ClusterLogSink, err error)

Patch applies the patch and returns the patched clusterLogSink.

func (*FakeClusterLogSinks) Update

func (c *FakeClusterLogSinks) Update(clusterLogSink *v1alpha1.ClusterLogSink) (result *v1alpha1.ClusterLogSink, err error)

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

func (*FakeClusterLogSinks) Watch

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

type FakeClusterMetricSinks

type FakeClusterMetricSinks struct {
	Fake *FakeObservabilityV1alpha1
	// contains filtered or unexported fields
}

FakeClusterMetricSinks implements ClusterMetricSinkInterface

func (*FakeClusterMetricSinks) Create

func (c *FakeClusterMetricSinks) Create(clusterMetricSink *v1alpha1.ClusterMetricSink) (result *v1alpha1.ClusterMetricSink, err error)

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

func (*FakeClusterMetricSinks) Delete

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

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

func (*FakeClusterMetricSinks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterMetricSinks) Get

func (c *FakeClusterMetricSinks) Get(name string, options v1.GetOptions) (result *v1alpha1.ClusterMetricSink, err error)

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

func (*FakeClusterMetricSinks) List

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

func (*FakeClusterMetricSinks) Patch

func (c *FakeClusterMetricSinks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.ClusterMetricSink, err error)

Patch applies the patch and returns the patched clusterMetricSink.

func (*FakeClusterMetricSinks) Update

func (c *FakeClusterMetricSinks) Update(clusterMetricSink *v1alpha1.ClusterMetricSink) (result *v1alpha1.ClusterMetricSink, err error)

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

func (*FakeClusterMetricSinks) UpdateStatus

func (c *FakeClusterMetricSinks) UpdateStatus(clusterMetricSink *v1alpha1.ClusterMetricSink) (*v1alpha1.ClusterMetricSink, error)

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

func (*FakeClusterMetricSinks) Watch

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

type FakeLogSinks

type FakeLogSinks struct {
	Fake *FakeObservabilityV1alpha1
	// contains filtered or unexported fields
}

FakeLogSinks implements LogSinkInterface

func (*FakeLogSinks) Create

func (c *FakeLogSinks) Create(logSink *v1alpha1.LogSink) (result *v1alpha1.LogSink, err error)

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

func (*FakeLogSinks) Delete

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

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

func (*FakeLogSinks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeLogSinks) Get

func (c *FakeLogSinks) Get(name string, options v1.GetOptions) (result *v1alpha1.LogSink, err error)

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

func (*FakeLogSinks) List

func (c *FakeLogSinks) List(opts v1.ListOptions) (result *v1alpha1.LogSinkList, err error)

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

func (*FakeLogSinks) Patch

func (c *FakeLogSinks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.LogSink, err error)

Patch applies the patch and returns the patched logSink.

func (*FakeLogSinks) Update

func (c *FakeLogSinks) Update(logSink *v1alpha1.LogSink) (result *v1alpha1.LogSink, err error)

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

func (*FakeLogSinks) Watch

func (c *FakeLogSinks) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeMetricSinks

type FakeMetricSinks struct {
	Fake *FakeObservabilityV1alpha1
	// contains filtered or unexported fields
}

FakeMetricSinks implements MetricSinkInterface

func (*FakeMetricSinks) Create

func (c *FakeMetricSinks) Create(metricSink *v1alpha1.MetricSink) (result *v1alpha1.MetricSink, err error)

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

func (*FakeMetricSinks) Delete

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

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

func (*FakeMetricSinks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMetricSinks) Get

func (c *FakeMetricSinks) Get(name string, options v1.GetOptions) (result *v1alpha1.MetricSink, err error)

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

func (*FakeMetricSinks) List

func (c *FakeMetricSinks) List(opts v1.ListOptions) (result *v1alpha1.MetricSinkList, err error)

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

func (*FakeMetricSinks) Patch

func (c *FakeMetricSinks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.MetricSink, err error)

Patch applies the patch and returns the patched metricSink.

func (*FakeMetricSinks) Update

func (c *FakeMetricSinks) Update(metricSink *v1alpha1.MetricSink) (result *v1alpha1.MetricSink, err error)

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

func (*FakeMetricSinks) UpdateStatus

func (c *FakeMetricSinks) UpdateStatus(metricSink *v1alpha1.MetricSink) (*v1alpha1.MetricSink, error)

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

func (*FakeMetricSinks) Watch

func (c *FakeMetricSinks) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeObservabilityV1alpha1

type FakeObservabilityV1alpha1 struct {
	*testing.Fake
}

func (*FakeObservabilityV1alpha1) ClusterLogSinks

func (c *FakeObservabilityV1alpha1) ClusterLogSinks(namespace string) v1alpha1.ClusterLogSinkInterface

func (*FakeObservabilityV1alpha1) ClusterMetricSinks

func (c *FakeObservabilityV1alpha1) ClusterMetricSinks(namespace string) v1alpha1.ClusterMetricSinkInterface

func (*FakeObservabilityV1alpha1) LogSinks

func (*FakeObservabilityV1alpha1) MetricSinks

func (*FakeObservabilityV1alpha1) RESTClient

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