fake

package
v0.41.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 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 FakeAlertmanagers

type FakeAlertmanagers struct {
	Fake *FakeMonitoringV1
	// contains filtered or unexported fields
}

FakeAlertmanagers implements AlertmanagerInterface

func (*FakeAlertmanagers) Create

func (c *FakeAlertmanagers) Create(ctx context.Context, alertmanager *monitoringv1.Alertmanager, opts v1.CreateOptions) (result *monitoringv1.Alertmanager, err error)

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

func (*FakeAlertmanagers) Delete

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

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

func (*FakeAlertmanagers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAlertmanagers) Get

func (c *FakeAlertmanagers) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.Alertmanager, err error)

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

func (*FakeAlertmanagers) List

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

func (*FakeAlertmanagers) Patch

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

Patch applies the patch and returns the patched alertmanager.

func (*FakeAlertmanagers) Update

func (c *FakeAlertmanagers) Update(ctx context.Context, alertmanager *monitoringv1.Alertmanager, opts v1.UpdateOptions) (result *monitoringv1.Alertmanager, err error)

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

func (*FakeAlertmanagers) UpdateStatus

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

func (*FakeAlertmanagers) Watch

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

type FakeMonitoringV1

type FakeMonitoringV1 struct {
	*testing.Fake
}

func (*FakeMonitoringV1) Alertmanagers

func (c *FakeMonitoringV1) Alertmanagers(namespace string) v1.AlertmanagerInterface

func (*FakeMonitoringV1) PodMonitors added in v0.31.0

func (c *FakeMonitoringV1) PodMonitors(namespace string) v1.PodMonitorInterface

func (*FakeMonitoringV1) Probes added in v0.41.0

func (c *FakeMonitoringV1) Probes(namespace string) v1.ProbeInterface

func (*FakeMonitoringV1) PrometheusRules

func (c *FakeMonitoringV1) PrometheusRules(namespace string) v1.PrometheusRuleInterface

func (*FakeMonitoringV1) Prometheuses

func (c *FakeMonitoringV1) Prometheuses(namespace string) v1.PrometheusInterface

func (*FakeMonitoringV1) RESTClient

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

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

func (*FakeMonitoringV1) ServiceMonitors

func (c *FakeMonitoringV1) ServiceMonitors(namespace string) v1.ServiceMonitorInterface

func (*FakeMonitoringV1) ThanosRulers added in v0.36.0

func (c *FakeMonitoringV1) ThanosRulers(namespace string) v1.ThanosRulerInterface

type FakePodMonitors added in v0.31.0

type FakePodMonitors struct {
	Fake *FakeMonitoringV1
	// contains filtered or unexported fields
}

FakePodMonitors implements PodMonitorInterface

func (*FakePodMonitors) Create added in v0.31.0

func (c *FakePodMonitors) Create(ctx context.Context, podMonitor *monitoringv1.PodMonitor, opts v1.CreateOptions) (result *monitoringv1.PodMonitor, err error)

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

func (*FakePodMonitors) Delete added in v0.31.0

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

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

func (*FakePodMonitors) DeleteCollection added in v0.31.0

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

DeleteCollection deletes a collection of objects.

func (*FakePodMonitors) Get added in v0.31.0

func (c *FakePodMonitors) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.PodMonitor, err error)

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

func (*FakePodMonitors) List added in v0.31.0

func (c *FakePodMonitors) List(ctx context.Context, opts v1.ListOptions) (result *monitoringv1.PodMonitorList, err error)

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

func (*FakePodMonitors) Patch added in v0.31.0

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

Patch applies the patch and returns the patched podMonitor.

func (*FakePodMonitors) Update added in v0.31.0

func (c *FakePodMonitors) Update(ctx context.Context, podMonitor *monitoringv1.PodMonitor, opts v1.UpdateOptions) (result *monitoringv1.PodMonitor, err error)

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

func (*FakePodMonitors) Watch added in v0.31.0

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

type FakeProbes added in v0.41.0

type FakeProbes struct {
	Fake *FakeMonitoringV1
	// contains filtered or unexported fields
}

FakeProbes implements ProbeInterface

func (*FakeProbes) Create added in v0.41.0

func (c *FakeProbes) Create(ctx context.Context, probe *monitoringv1.Probe, opts v1.CreateOptions) (result *monitoringv1.Probe, err error)

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

func (*FakeProbes) Delete added in v0.41.0

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

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

func (*FakeProbes) DeleteCollection added in v0.41.0

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

DeleteCollection deletes a collection of objects.

func (*FakeProbes) Get added in v0.41.0

func (c *FakeProbes) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.Probe, err error)

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

func (*FakeProbes) List added in v0.41.0

func (c *FakeProbes) List(ctx context.Context, opts v1.ListOptions) (result *monitoringv1.ProbeList, err error)

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

func (*FakeProbes) Patch added in v0.41.0

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

Patch applies the patch and returns the patched probe.

func (*FakeProbes) Update added in v0.41.0

func (c *FakeProbes) Update(ctx context.Context, probe *monitoringv1.Probe, opts v1.UpdateOptions) (result *monitoringv1.Probe, err error)

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

func (*FakeProbes) Watch added in v0.41.0

func (c *FakeProbes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakePrometheusRules

type FakePrometheusRules struct {
	Fake *FakeMonitoringV1
	// contains filtered or unexported fields
}

FakePrometheusRules implements PrometheusRuleInterface

func (*FakePrometheusRules) Create

func (c *FakePrometheusRules) Create(ctx context.Context, prometheusRule *monitoringv1.PrometheusRule, opts v1.CreateOptions) (result *monitoringv1.PrometheusRule, err error)

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

func (*FakePrometheusRules) Delete

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

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

func (*FakePrometheusRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePrometheusRules) Get

func (c *FakePrometheusRules) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.PrometheusRule, err error)

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

func (*FakePrometheusRules) List

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

func (*FakePrometheusRules) Patch

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

Patch applies the patch and returns the patched prometheusRule.

func (*FakePrometheusRules) Update

func (c *FakePrometheusRules) Update(ctx context.Context, prometheusRule *monitoringv1.PrometheusRule, opts v1.UpdateOptions) (result *monitoringv1.PrometheusRule, err error)

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

func (*FakePrometheusRules) Watch

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

type FakePrometheuses

type FakePrometheuses struct {
	Fake *FakeMonitoringV1
	// contains filtered or unexported fields
}

FakePrometheuses implements PrometheusInterface

func (*FakePrometheuses) Create

func (c *FakePrometheuses) Create(ctx context.Context, prometheus *monitoringv1.Prometheus, opts v1.CreateOptions) (result *monitoringv1.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

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) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePrometheuses) Get

func (c *FakePrometheuses) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.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

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

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

func (*FakePrometheuses) Patch

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

Patch applies the patch and returns the patched prometheus.

func (*FakePrometheuses) Update

func (c *FakePrometheuses) Update(ctx context.Context, prometheus *monitoringv1.Prometheus, opts v1.UpdateOptions) (result *monitoringv1.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

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

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

type FakeServiceMonitors

type FakeServiceMonitors struct {
	Fake *FakeMonitoringV1
	// contains filtered or unexported fields
}

FakeServiceMonitors implements ServiceMonitorInterface

func (*FakeServiceMonitors) Create

func (c *FakeServiceMonitors) Create(ctx context.Context, serviceMonitor *monitoringv1.ServiceMonitor, opts v1.CreateOptions) (result *monitoringv1.ServiceMonitor, err error)

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

func (*FakeServiceMonitors) Delete

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

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

func (*FakeServiceMonitors) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceMonitors) Get

func (c *FakeServiceMonitors) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.ServiceMonitor, err error)

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

func (*FakeServiceMonitors) List

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

func (*FakeServiceMonitors) Patch

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

Patch applies the patch and returns the patched serviceMonitor.

func (*FakeServiceMonitors) Update

func (c *FakeServiceMonitors) Update(ctx context.Context, serviceMonitor *monitoringv1.ServiceMonitor, opts v1.UpdateOptions) (result *monitoringv1.ServiceMonitor, err error)

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

func (*FakeServiceMonitors) Watch

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

type FakeThanosRulers added in v0.36.0

type FakeThanosRulers struct {
	Fake *FakeMonitoringV1
	// contains filtered or unexported fields
}

FakeThanosRulers implements ThanosRulerInterface

func (*FakeThanosRulers) Create added in v0.36.0

func (c *FakeThanosRulers) Create(ctx context.Context, thanosRuler *monitoringv1.ThanosRuler, opts v1.CreateOptions) (result *monitoringv1.ThanosRuler, err error)

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

func (*FakeThanosRulers) Delete added in v0.36.0

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

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

func (*FakeThanosRulers) DeleteCollection added in v0.36.0

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

DeleteCollection deletes a collection of objects.

func (*FakeThanosRulers) Get added in v0.36.0

func (c *FakeThanosRulers) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.ThanosRuler, err error)

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

func (*FakeThanosRulers) List added in v0.36.0

func (c *FakeThanosRulers) List(ctx context.Context, opts v1.ListOptions) (result *monitoringv1.ThanosRulerList, err error)

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

func (*FakeThanosRulers) Patch added in v0.36.0

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

Patch applies the patch and returns the patched thanosRuler.

func (*FakeThanosRulers) Update added in v0.36.0

func (c *FakeThanosRulers) Update(ctx context.Context, thanosRuler *monitoringv1.ThanosRuler, opts v1.UpdateOptions) (result *monitoringv1.ThanosRuler, err error)

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

func (*FakeThanosRulers) UpdateStatus added in v0.36.0

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

func (*FakeThanosRulers) Watch added in v0.36.0

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

Jump to

Keyboard shortcuts

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