fake

package
v0.74.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 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 FakeAlertmanagerConfigs

type FakeAlertmanagerConfigs struct {
	Fake *FakeMonitoringV1beta1
	// 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 *v1beta1.AlertmanagerConfig, opts v1.CreateOptions) (result *v1beta1.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 *v1beta1.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 *v1beta1.AlertmanagerConfig, err error)

Patch applies the patch and returns the patched alertmanagerConfig.

func (*FakeAlertmanagerConfigs) Update

func (c *FakeAlertmanagerConfigs) Update(ctx context.Context, alertmanagerConfig *v1beta1.AlertmanagerConfig, opts v1.UpdateOptions) (result *v1beta1.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 FakeMonitoringV1beta1

type FakeMonitoringV1beta1 struct {
	*testing.Fake
}

func (*FakeMonitoringV1beta1) AlertmanagerConfigs

func (c *FakeMonitoringV1beta1) AlertmanagerConfigs(namespace string) v1beta1.AlertmanagerConfigInterface

func (*FakeMonitoringV1beta1) RESTClient

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