Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAlerts
- func (c *FakeAlerts) Apply(ctx context.Context, ...) (result *v1.Alert, err error)
- func (c *FakeAlerts) Create(ctx context.Context, alert *v1.Alert, opts metav1.CreateOptions) (result *v1.Alert, err error)
- func (c *FakeAlerts) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *FakeAlerts) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (c *FakeAlerts) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Alert, err error)
- func (c *FakeAlerts) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AlertList, err error)
- func (c *FakeAlerts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1.Alert, err error)
- func (c *FakeAlerts) Update(ctx context.Context, alert *v1.Alert, opts metav1.UpdateOptions) (result *v1.Alert, err error)
- func (c *FakeAlerts) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type FakeMonitoringV1
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 ¶
func (c *FakeAlerts) Apply(ctx context.Context, alert *monitoringbenjaminborbedev1.AlertApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Alert, err error)
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 ¶
func (c *FakeAlerts) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested alerts.
type FakeMonitoringV1 ¶
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.