fake

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 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 FakeAlertmanagers

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

FakeAlertmanagers implements AlertmanagerInterface

func (*FakeAlertmanagers) Create

func (c *FakeAlertmanagers) Create(alertmanager *monitoringv1.Alertmanager) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeAlertmanagers) Get

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

func (c *FakeAlertmanagers) List(opts v1.ListOptions) (result *monitoringv1.AlertmanagerList, err error)

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

func (*FakeAlertmanagers) Patch

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

Patch applies the patch and returns the patched alertmanager.

func (*FakeAlertmanagers) Update

func (c *FakeAlertmanagers) Update(alertmanager *monitoringv1.Alertmanager) (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

func (c *FakeAlertmanagers) UpdateStatus(alertmanager *monitoringv1.Alertmanager) (*monitoringv1.Alertmanager, error)

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

type FakePrometheusRules

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

FakePrometheusRules implements PrometheusRuleInterface

func (*FakePrometheusRules) Create

func (c *FakePrometheusRules) Create(prometheusRule *monitoringv1.PrometheusRule) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePrometheusRules) Get

func (c *FakePrometheusRules) Get(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *monitoringv1.PrometheusRule, err error)

Patch applies the patch and returns the patched prometheusRule.

func (*FakePrometheusRules) Update

func (c *FakePrometheusRules) Update(prometheusRule *monitoringv1.PrometheusRule) (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(prometheus *monitoringv1.Prometheus) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePrometheuses) Get

func (c *FakePrometheuses) Get(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(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *monitoringv1.Prometheus, err error)

Patch applies the patch and returns the patched prometheus.

func (*FakePrometheuses) Update

func (c *FakePrometheuses) Update(prometheus *monitoringv1.Prometheus) (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

func (c *FakePrometheuses) UpdateStatus(prometheus *monitoringv1.Prometheus) (*monitoringv1.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

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

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(serviceMonitor *monitoringv1.ServiceMonitor) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeServiceMonitors) Get

func (c *FakeServiceMonitors) Get(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *monitoringv1.ServiceMonitor, err error)

Patch applies the patch and returns the patched serviceMonitor.

func (*FakeServiceMonitors) Update

func (c *FakeServiceMonitors) Update(serviceMonitor *monitoringv1.ServiceMonitor) (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.

Jump to

Keyboard shortcuts

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