fake

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: BSD-2-Clause Imports: 12 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 FakeAlerts

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

FakeAlerts implements AlertInterface

func (*FakeAlerts) Apply

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

func (*FakeAlerts) Create

func (c *FakeAlerts) Create(ctx context.Context, alert *v1.Alert, opts metav1.CreateOptions) (result *v1.Alert, err error)

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

func (*FakeAlerts) Delete

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

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

func (*FakeAlerts) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAlerts) Get

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

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

func (*FakeAlerts) List

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

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

func (*FakeAlerts) Patch

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

Patch applies the patch and returns the patched alert.

func (*FakeAlerts) Update

func (c *FakeAlerts) Update(ctx context.Context, alert *v1.Alert, opts metav1.UpdateOptions) (result *v1.Alert, err error)

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

func (*FakeAlerts) Watch

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

type FakeMonitoringV1

type FakeMonitoringV1 struct {
	*testing.Fake
}

func (*FakeMonitoringV1) Alerts

func (c *FakeMonitoringV1) Alerts(namespace string) v1.AlertInterface

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.

Jump to

Keyboard shortcuts

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