Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeIlertV1
- type FakeIncidents
- func (c *FakeIncidents) Create(incident *incidentv1.Incident) (result *incidentv1.Incident, err error)
- func (c *FakeIncidents) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeIncidents) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeIncidents) Get(name string, options v1.GetOptions) (result *incidentv1.Incident, err error)
- func (c *FakeIncidents) List(opts v1.ListOptions) (result *incidentv1.IncidentList, err error)
- func (c *FakeIncidents) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *incidentv1.Incident, err error)
- func (c *FakeIncidents) Update(incident *incidentv1.Incident) (result *incidentv1.Incident, err error)
- func (c *FakeIncidents) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeIlertV1 ¶
func (*FakeIlertV1) Incidents ¶
func (c *FakeIlertV1) Incidents(namespace string) v1.IncidentInterface
func (*FakeIlertV1) RESTClient ¶
func (c *FakeIlertV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeIncidents ¶
type FakeIncidents struct { Fake *FakeIlertV1 // contains filtered or unexported fields }
FakeIncidents implements IncidentInterface
func (*FakeIncidents) Create ¶
func (c *FakeIncidents) Create(incident *incidentv1.Incident) (result *incidentv1.Incident, err error)
Create takes the representation of a incident and creates it. Returns the server's representation of the incident, and an error, if there is any.
func (*FakeIncidents) Delete ¶
func (c *FakeIncidents) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the incident and deletes it. Returns an error if one occurs.
func (*FakeIncidents) DeleteCollection ¶
func (c *FakeIncidents) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeIncidents) Get ¶
func (c *FakeIncidents) Get(name string, options v1.GetOptions) (result *incidentv1.Incident, err error)
Get takes name of the incident, and returns the corresponding incident object, and an error if there is any.
func (*FakeIncidents) List ¶
func (c *FakeIncidents) List(opts v1.ListOptions) (result *incidentv1.IncidentList, err error)
List takes label and field selectors, and returns the list of Incidents that match those selectors.
func (*FakeIncidents) Patch ¶
func (c *FakeIncidents) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *incidentv1.Incident, err error)
Patch applies the patch and returns the patched incident.
func (*FakeIncidents) Update ¶
func (c *FakeIncidents) Update(incident *incidentv1.Incident) (result *incidentv1.Incident, err error)
Update takes the representation of a incident and updates it. Returns the server's representation of the incident, and an error, if there is any.
func (*FakeIncidents) Watch ¶
func (c *FakeIncidents) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested incidents.