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 FakeAlertmanagerConfigs

type FakeAlertmanagerConfigs struct {
	Fake *FakeMonitoringV1alpha1
	// contains filtered or unexported fields
}

FakeAlertmanagerConfigs implements AlertmanagerConfigInterface

func (*FakeAlertmanagerConfigs) Apply added in v0.62.0

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

func (*FakeAlertmanagerConfigs) Create

func (c *FakeAlertmanagerConfigs) Create(ctx context.Context, alertmanagerConfig *v1alpha1.AlertmanagerConfig, opts v1.CreateOptions) (result *v1alpha1.AlertmanagerConfig, err error)

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

func (*FakeAlertmanagerConfigs) Delete

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

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

func (*FakeAlertmanagerConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAlertmanagerConfigs) Get

func (c *FakeAlertmanagerConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.AlertmanagerConfig, err error)

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

func (*FakeAlertmanagerConfigs) List

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

func (*FakeAlertmanagerConfigs) Patch

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

Patch applies the patch and returns the patched alertmanagerConfig.

func (*FakeAlertmanagerConfigs) Update

func (c *FakeAlertmanagerConfigs) Update(ctx context.Context, alertmanagerConfig *v1alpha1.AlertmanagerConfig, opts v1.UpdateOptions) (result *v1alpha1.AlertmanagerConfig, err error)

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

func (*FakeAlertmanagerConfigs) Watch

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

type FakeMonitoringV1alpha1

type FakeMonitoringV1alpha1 struct {
	*testing.Fake
}

func (*FakeMonitoringV1alpha1) AlertmanagerConfigs

func (c *FakeMonitoringV1alpha1) AlertmanagerConfigs(namespace string) v1alpha1.AlertmanagerConfigInterface

func (*FakeMonitoringV1alpha1) PrometheusAgents added in v0.64.0

func (c *FakeMonitoringV1alpha1) PrometheusAgents(namespace string) v1alpha1.PrometheusAgentInterface

func (*FakeMonitoringV1alpha1) RESTClient

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

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

func (*FakeMonitoringV1alpha1) ScrapeConfigs added in v0.65.0

func (c *FakeMonitoringV1alpha1) ScrapeConfigs(namespace string) v1alpha1.ScrapeConfigInterface

type FakePrometheusAgents added in v0.64.0

type FakePrometheusAgents struct {
	Fake *FakeMonitoringV1alpha1
	// contains filtered or unexported fields
}

FakePrometheusAgents implements PrometheusAgentInterface

func (*FakePrometheusAgents) Apply added in v0.64.0

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

func (*FakePrometheusAgents) ApplyStatus added in v0.64.0

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

func (*FakePrometheusAgents) Create added in v0.64.0

func (c *FakePrometheusAgents) Create(ctx context.Context, prometheusAgent *v1alpha1.PrometheusAgent, opts v1.CreateOptions) (result *v1alpha1.PrometheusAgent, err error)

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

func (*FakePrometheusAgents) Delete added in v0.64.0

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

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

func (*FakePrometheusAgents) DeleteCollection added in v0.64.0

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

DeleteCollection deletes a collection of objects.

func (*FakePrometheusAgents) Get added in v0.64.0

func (c *FakePrometheusAgents) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PrometheusAgent, err error)

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

func (*FakePrometheusAgents) GetScale added in v0.71.0

func (c *FakePrometheusAgents) GetScale(ctx context.Context, prometheusAgentName string, options v1.GetOptions) (result *autoscalingv1.Scale, err error)

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

func (*FakePrometheusAgents) List added in v0.64.0

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

func (*FakePrometheusAgents) Patch added in v0.64.0

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

Patch applies the patch and returns the patched prometheusAgent.

func (*FakePrometheusAgents) Update added in v0.64.0

func (c *FakePrometheusAgents) Update(ctx context.Context, prometheusAgent *v1alpha1.PrometheusAgent, opts v1.UpdateOptions) (result *v1alpha1.PrometheusAgent, err error)

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

func (*FakePrometheusAgents) UpdateScale added in v0.71.0

func (c *FakePrometheusAgents) UpdateScale(ctx context.Context, prometheusAgentName string, scale *autoscalingv1.Scale, opts v1.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 (*FakePrometheusAgents) UpdateStatus added in v0.64.0

func (c *FakePrometheusAgents) UpdateStatus(ctx context.Context, prometheusAgent *v1alpha1.PrometheusAgent, opts v1.UpdateOptions) (*v1alpha1.PrometheusAgent, error)

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

func (*FakePrometheusAgents) Watch added in v0.64.0

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

type FakeScrapeConfigs added in v0.65.0

type FakeScrapeConfigs struct {
	Fake *FakeMonitoringV1alpha1
	// contains filtered or unexported fields
}

FakeScrapeConfigs implements ScrapeConfigInterface

func (*FakeScrapeConfigs) Apply added in v0.65.0

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

func (*FakeScrapeConfigs) Create added in v0.65.0

func (c *FakeScrapeConfigs) Create(ctx context.Context, scrapeConfig *v1alpha1.ScrapeConfig, opts v1.CreateOptions) (result *v1alpha1.ScrapeConfig, err error)

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

func (*FakeScrapeConfigs) Delete added in v0.65.0

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

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

func (*FakeScrapeConfigs) DeleteCollection added in v0.65.0

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

DeleteCollection deletes a collection of objects.

func (*FakeScrapeConfigs) Get added in v0.65.0

func (c *FakeScrapeConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ScrapeConfig, err error)

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

func (*FakeScrapeConfigs) List added in v0.65.0

func (c *FakeScrapeConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ScrapeConfigList, err error)

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

func (*FakeScrapeConfigs) Patch added in v0.65.0

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

Patch applies the patch and returns the patched scrapeConfig.

func (*FakeScrapeConfigs) Update added in v0.65.0

func (c *FakeScrapeConfigs) Update(ctx context.Context, scrapeConfig *v1alpha1.ScrapeConfig, opts v1.UpdateOptions) (result *v1alpha1.ScrapeConfig, err error)

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

func (*FakeScrapeConfigs) Watch added in v0.65.0

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

Jump to

Keyboard shortcuts

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