fake

package
v0.73.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 13 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) Apply added in v0.62.0

Apply takes the given apply declarative configuration, applies it and returns the applied alertmanager.

func (*FakeAlertmanagers) ApplyStatus added in v0.62.0

func (c *FakeAlertmanagers) ApplyStatus(ctx context.Context, alertmanager *monitoringv1.AlertmanagerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Alertmanager, err error)

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

func (*FakeAlertmanagers) Create

func (c *FakeAlertmanagers) Create(ctx context.Context, alertmanager *v1.Alertmanager, opts metav1.CreateOptions) (result *v1.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 metav1.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 metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeAlertmanagers) Get

func (c *FakeAlertmanagers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.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(ctx context.Context, opts metav1.ListOptions) (result *v1.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(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Alertmanager, err error)

Patch applies the patch and returns the patched alertmanager.

func (*FakeAlertmanagers) Update

func (c *FakeAlertmanagers) Update(ctx context.Context, alertmanager *v1.Alertmanager, opts metav1.UpdateOptions) (result *v1.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(ctx context.Context, alertmanager *v1.Alertmanager, opts metav1.UpdateOptions) (*v1.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) PodMonitors

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

func (*FakeMonitoringV1) Probes

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

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

type FakePodMonitors

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

FakePodMonitors implements PodMonitorInterface

func (*FakePodMonitors) Apply added in v0.62.0

Apply takes the given apply declarative configuration, applies it and returns the applied podMonitor.

func (*FakePodMonitors) Create

func (c *FakePodMonitors) Create(ctx context.Context, podMonitor *v1.PodMonitor, opts metav1.CreateOptions) (result *v1.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

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

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

func (*FakePodMonitors) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePodMonitors) Get

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

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

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

func (*FakePodMonitors) Patch

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

Patch applies the patch and returns the patched podMonitor.

func (*FakePodMonitors) Update

func (c *FakePodMonitors) Update(ctx context.Context, podMonitor *v1.PodMonitor, opts metav1.UpdateOptions) (result *v1.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

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

type FakeProbes

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

FakeProbes implements ProbeInterface

func (*FakeProbes) Apply added in v0.62.0

func (c *FakeProbes) Apply(ctx context.Context, probe *monitoringv1.ProbeApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Probe, err error)

Apply takes the given apply declarative configuration, applies it and returns the applied probe.

func (*FakeProbes) Create

func (c *FakeProbes) Create(ctx context.Context, probe *v1.Probe, opts metav1.CreateOptions) (result *v1.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

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

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

func (*FakeProbes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProbes) Get

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

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

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

func (*FakeProbes) Patch

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

Patch applies the patch and returns the patched probe.

func (*FakeProbes) Update

func (c *FakeProbes) Update(ctx context.Context, probe *v1.Probe, opts metav1.UpdateOptions) (result *v1.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

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) Apply added in v0.62.0

Apply takes the given apply declarative configuration, applies it and returns the applied prometheusRule.

func (*FakePrometheusRules) Create

func (c *FakePrometheusRules) Create(ctx context.Context, prometheusRule *v1.PrometheusRule, opts metav1.CreateOptions) (result *v1.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 metav1.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 metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePrometheusRules) Get

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

func (c *FakePrometheusRules) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PrometheusRuleList, err error)

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 metav1.PatchOptions, subresources ...string) (result *v1.PrometheusRule, err error)

Patch applies the patch and returns the patched prometheusRule.

func (*FakePrometheusRules) Update

func (c *FakePrometheusRules) Update(ctx context.Context, prometheusRule *v1.PrometheusRule, opts metav1.UpdateOptions) (result *v1.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) Apply added in v0.62.0

Apply takes the given apply declarative configuration, applies it and returns the applied prometheus.

func (*FakePrometheuses) ApplyStatus added in v0.62.0

func (c *FakePrometheuses) ApplyStatus(ctx context.Context, prometheus *monitoringv1.PrometheusApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Prometheus, err error)

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

func (*FakePrometheuses) Create

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

DeleteCollection deletes a collection of objects.

func (*FakePrometheuses) Get

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

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

func (*FakePrometheuses) GetScale added in v0.71.0

func (c *FakePrometheuses) GetScale(ctx context.Context, prometheusName string, options metav1.GetOptions) (result *autoscalingv1.Scale, err error)

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

func (*FakePrometheuses) List

func (c *FakePrometheuses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.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 metav1.PatchOptions, subresources ...string) (result *v1.Prometheus, err error)

Patch applies the patch and returns the patched prometheus.

func (*FakePrometheuses) Update

func (c *FakePrometheuses) Update(ctx context.Context, prometheus *v1.Prometheus, opts metav1.UpdateOptions) (result *v1.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) UpdateScale added in v0.71.0

func (c *FakePrometheuses) UpdateScale(ctx context.Context, prometheusName string, scale *autoscalingv1.Scale, opts metav1.UpdateOptions) (result *autoscalingv1.Scale, err error)

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

func (*FakePrometheuses) UpdateStatus

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

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) Apply added in v0.62.0

Apply takes the given apply declarative configuration, applies it and returns the applied serviceMonitor.

func (*FakeServiceMonitors) Create

func (c *FakeServiceMonitors) Create(ctx context.Context, serviceMonitor *v1.ServiceMonitor, opts metav1.CreateOptions) (result *v1.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 metav1.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 metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeServiceMonitors) Get

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

func (c *FakeServiceMonitors) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ServiceMonitorList, err error)

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 metav1.PatchOptions, subresources ...string) (result *v1.ServiceMonitor, err error)

Patch applies the patch and returns the patched serviceMonitor.

func (*FakeServiceMonitors) Update

func (c *FakeServiceMonitors) Update(ctx context.Context, serviceMonitor *v1.ServiceMonitor, opts metav1.UpdateOptions) (result *v1.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

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

FakeThanosRulers implements ThanosRulerInterface

func (*FakeThanosRulers) Apply added in v0.62.0

Apply takes the given apply declarative configuration, applies it and returns the applied thanosRuler.

func (*FakeThanosRulers) ApplyStatus added in v0.62.0

func (c *FakeThanosRulers) ApplyStatus(ctx context.Context, thanosRuler *monitoringv1.ThanosRulerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ThanosRuler, err error)

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

func (*FakeThanosRulers) Create

func (c *FakeThanosRulers) Create(ctx context.Context, thanosRuler *v1.ThanosRuler, opts metav1.CreateOptions) (result *v1.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

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

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

func (*FakeThanosRulers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeThanosRulers) Get

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

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

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

func (*FakeThanosRulers) Patch

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

Patch applies the patch and returns the patched thanosRuler.

func (*FakeThanosRulers) Update

func (c *FakeThanosRulers) Update(ctx context.Context, thanosRuler *v1.ThanosRuler, opts metav1.UpdateOptions) (result *v1.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

func (c *FakeThanosRulers) UpdateStatus(ctx context.Context, thanosRuler *v1.ThanosRuler, opts metav1.UpdateOptions) (*v1.ThanosRuler, error)

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

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