fake

package
v0.0.0-...-d24fd3e Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 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 FakeAlertRelabelConfigs

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

FakeAlertRelabelConfigs implements AlertRelabelConfigInterface

func (*FakeAlertRelabelConfigs) Apply

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

func (*FakeAlertRelabelConfigs) ApplyStatus

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

func (*FakeAlertRelabelConfigs) Create

func (c *FakeAlertRelabelConfigs) Create(ctx context.Context, alertRelabelConfig *v1alpha1.AlertRelabelConfig, opts v1.CreateOptions) (result *v1alpha1.AlertRelabelConfig, err error)

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

func (*FakeAlertRelabelConfigs) Delete

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

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

func (*FakeAlertRelabelConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAlertRelabelConfigs) Get

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

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

func (*FakeAlertRelabelConfigs) List

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

func (*FakeAlertRelabelConfigs) Patch

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

Patch applies the patch and returns the patched alertRelabelConfig.

func (*FakeAlertRelabelConfigs) Update

func (c *FakeAlertRelabelConfigs) Update(ctx context.Context, alertRelabelConfig *v1alpha1.AlertRelabelConfig, opts v1.UpdateOptions) (result *v1alpha1.AlertRelabelConfig, err error)

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

func (*FakeAlertRelabelConfigs) UpdateStatus

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

func (*FakeAlertRelabelConfigs) Watch

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

type FakeAlertingRules

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

FakeAlertingRules implements AlertingRuleInterface

func (*FakeAlertingRules) Apply

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

func (*FakeAlertingRules) ApplyStatus

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

func (*FakeAlertingRules) Create

func (c *FakeAlertingRules) Create(ctx context.Context, alertingRule *v1alpha1.AlertingRule, opts v1.CreateOptions) (result *v1alpha1.AlertingRule, err error)

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

func (*FakeAlertingRules) Delete

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

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

func (*FakeAlertingRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAlertingRules) Get

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

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

func (*FakeAlertingRules) List

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

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

func (*FakeAlertingRules) Patch

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

Patch applies the patch and returns the patched alertingRule.

func (*FakeAlertingRules) Update

func (c *FakeAlertingRules) Update(ctx context.Context, alertingRule *v1alpha1.AlertingRule, opts v1.UpdateOptions) (result *v1alpha1.AlertingRule, err error)

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

func (*FakeAlertingRules) UpdateStatus

func (c *FakeAlertingRules) UpdateStatus(ctx context.Context, alertingRule *v1alpha1.AlertingRule, opts v1.UpdateOptions) (*v1alpha1.AlertingRule, error)

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

func (*FakeAlertingRules) Watch

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

type FakeMonitoringV1alpha1

type FakeMonitoringV1alpha1 struct {
	*testing.Fake
}

func (*FakeMonitoringV1alpha1) AlertRelabelConfigs

func (c *FakeMonitoringV1alpha1) AlertRelabelConfigs(namespace string) v1alpha1.AlertRelabelConfigInterface

func (*FakeMonitoringV1alpha1) AlertingRules

func (c *FakeMonitoringV1alpha1) AlertingRules(namespace string) v1alpha1.AlertingRuleInterface

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.

Jump to

Keyboard shortcuts

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