Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeMonitorV1
- type FakeServiceMonitors
- func (c *FakeServiceMonitors) Create(serviceMonitor *monitorv1.ServiceMonitor) (result *monitorv1.ServiceMonitor, err error)
- func (c *FakeServiceMonitors) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeServiceMonitors) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeServiceMonitors) Get(name string, options v1.GetOptions) (result *monitorv1.ServiceMonitor, err error)
- func (c *FakeServiceMonitors) List(opts v1.ListOptions) (result *monitorv1.ServiceMonitorList, err error)
- func (c *FakeServiceMonitors) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *monitorv1.ServiceMonitor, err error)
- func (c *FakeServiceMonitors) Update(serviceMonitor *monitorv1.ServiceMonitor) (result *monitorv1.ServiceMonitor, err error)
- func (c *FakeServiceMonitors) UpdateStatus(serviceMonitor *monitorv1.ServiceMonitor) (*monitorv1.ServiceMonitor, error)
- func (c *FakeServiceMonitors) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeMonitorV1 ¶
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 ¶
func (c *FakeServiceMonitors) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested serviceMonitors.