fake

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 9 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 FakeMonitorV1

type FakeMonitorV1 struct {
	*testing.Fake
}

func (*FakeMonitorV1) RESTClient

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

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

func (*FakeMonitorV1) ServiceMonitors

func (c *FakeMonitorV1) ServiceMonitors(namespace string) v1.ServiceMonitorInterface

type FakeServiceMonitors

type FakeServiceMonitors struct {
	Fake *FakeMonitorV1
	// contains filtered or unexported fields
}

FakeServiceMonitors implements ServiceMonitorInterface

func (*FakeServiceMonitors) Create

func (c *FakeServiceMonitors) Create(serviceMonitor *monitorv1.ServiceMonitor) (result *monitorv1.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(name string, options *v1.DeleteOptions) error

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

func (*FakeServiceMonitors) DeleteCollection

func (c *FakeServiceMonitors) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeServiceMonitors) Get

func (c *FakeServiceMonitors) Get(name string, options v1.GetOptions) (result *monitorv1.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(opts v1.ListOptions) (result *monitorv1.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(name string, pt types.PatchType, data []byte, subresources ...string) (result *monitorv1.ServiceMonitor, err error)

Patch applies the patch and returns the patched serviceMonitor.

func (*FakeServiceMonitors) Update

func (c *FakeServiceMonitors) Update(serviceMonitor *monitorv1.ServiceMonitor) (result *monitorv1.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) UpdateStatus

func (c *FakeServiceMonitors) UpdateStatus(serviceMonitor *monitorv1.ServiceMonitor) (*monitorv1.ServiceMonitor, error)

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

func (*FakeServiceMonitors) Watch

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

Jump to

Keyboard shortcuts

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