fake

package

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 FakeClusterOverviews added in v1.4.0

type FakeClusterOverviews struct {
	Fake *FakeMonitor
}

FakeClusterOverviews implements ClusterOverviewInterface

func (*FakeClusterOverviews) Create added in v1.4.0

func (c *FakeClusterOverviews) Create(ctx context.Context, clusterOverview *monitor.ClusterOverview, opts v1.CreateOptions) (result *monitor.ClusterOverview, err error)

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

type FakeConfigMaps

type FakeConfigMaps struct {
	Fake *FakeMonitor
}

FakeConfigMaps implements ConfigMapInterface

func (*FakeConfigMaps) Create

func (c *FakeConfigMaps) Create(ctx context.Context, configMap *monitor.ConfigMap, opts v1.CreateOptions) (result *monitor.ConfigMap, err error)

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

func (*FakeConfigMaps) Delete

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

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

func (*FakeConfigMaps) Get

func (c *FakeConfigMaps) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitor.ConfigMap, err error)

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

func (*FakeConfigMaps) List

func (c *FakeConfigMaps) List(ctx context.Context, opts v1.ListOptions) (result *monitor.ConfigMapList, err error)

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

func (*FakeConfigMaps) Patch

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

Patch applies the patch and returns the patched configMap.

func (*FakeConfigMaps) Update

func (c *FakeConfigMaps) Update(ctx context.Context, configMap *monitor.ConfigMap, opts v1.UpdateOptions) (result *monitor.ConfigMap, err error)

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

func (*FakeConfigMaps) Watch

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

type FakeMetrics

type FakeMetrics struct {
	Fake *FakeMonitor
}

FakeMetrics implements MetricInterface

func (*FakeMetrics) Create

func (c *FakeMetrics) Create(ctx context.Context, metric *monitor.Metric, opts v1.CreateOptions) (result *monitor.Metric, err error)

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

type FakeMonitor

type FakeMonitor struct {
	*testing.Fake
}

func (*FakeMonitor) ClusterOverviews added in v1.4.0

func (*FakeMonitor) ConfigMaps

func (*FakeMonitor) Metrics

func (*FakeMonitor) Prometheuses added in v1.3.1

func (*FakeMonitor) RESTClient

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

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

type FakePrometheuses added in v1.3.1

type FakePrometheuses struct {
	Fake *FakeMonitor
}

FakePrometheuses implements PrometheusInterface

func (*FakePrometheuses) Create added in v1.3.1

func (c *FakePrometheuses) Create(ctx context.Context, prometheus *monitor.Prometheus, opts v1.CreateOptions) (result *monitor.Prometheus, err error)

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

func (*FakePrometheuses) Delete added in v1.3.1

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

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

func (*FakePrometheuses) Get added in v1.3.1

func (c *FakePrometheuses) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitor.Prometheus, err error)

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

func (*FakePrometheuses) List added in v1.3.1

func (c *FakePrometheuses) List(ctx context.Context, opts v1.ListOptions) (result *monitor.PrometheusList, err error)

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

func (*FakePrometheuses) Patch added in v1.3.1

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

Patch applies the patch and returns the patched prometheus.

func (*FakePrometheuses) Update added in v1.3.1

func (c *FakePrometheuses) Update(ctx context.Context, prometheus *monitor.Prometheus, opts v1.UpdateOptions) (result *monitor.Prometheus, err error)

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

func (*FakePrometheuses) UpdateStatus added in v1.3.1

func (c *FakePrometheuses) UpdateStatus(ctx context.Context, prometheus *monitor.Prometheus, opts v1.UpdateOptions) (*monitor.Prometheus, error)

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

func (*FakePrometheuses) Watch added in v1.3.1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL