Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAlerts
- func (c *FakeAlerts) Create(alert *alertv1.Alert) (result *alertv1.Alert, err error)
- func (c *FakeAlerts) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeAlerts) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeAlerts) Get(name string, options v1.GetOptions) (result *alertv1.Alert, err error)
- func (c *FakeAlerts) List(opts v1.ListOptions) (result *alertv1.AlertList, err error)
- func (c *FakeAlerts) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *alertv1.Alert, err error)
- func (c *FakeAlerts) Update(alert *alertv1.Alert) (result *alertv1.Alert, err error)
- func (c *FakeAlerts) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeSynopsysV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAlerts ¶
type FakeAlerts struct { Fake *FakeSynopsysV1 // contains filtered or unexported fields }
FakeAlerts implements AlertInterface
func (*FakeAlerts) Create ¶
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(name string, options *v1.DeleteOptions) error
Delete takes name of the alert and deletes it. Returns an error if one occurs.
func (*FakeAlerts) DeleteCollection ¶
func (c *FakeAlerts) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeAlerts) Get ¶
func (c *FakeAlerts) Get(name string, options v1.GetOptions) (result *alertv1.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(opts v1.ListOptions) (result *alertv1.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(name string, pt types.PatchType, data []byte, subresources ...string) (result *alertv1.Alert, err error)
Patch applies the patch and returns the patched alert.
func (*FakeAlerts) Update ¶
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(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested alerts.
type FakeSynopsysV1 ¶
func (*FakeSynopsysV1) Alerts ¶
func (c *FakeSynopsysV1) Alerts(namespace string) v1.AlertInterface
func (*FakeSynopsysV1) RESTClient ¶
func (c *FakeSynopsysV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.