FakeEvents implements EventInterface
type FakeEvents struct { Fake *FakeEventsV1 // contains filtered or unexported fields }
func (c *FakeEvents) Apply(ctx context.Context, event *eventsv1.EventApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Event, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied event.
func (c *FakeEvents) Create(ctx context.Context, event *v1.Event, opts metav1.CreateOptions) (result *v1.Event, err error)
Create takes the representation of a event and creates it. Returns the server's representation of the event, and an error, if there is any.
func (c *FakeEvents) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
Delete takes name of the event and deletes it. Returns an error if one occurs.
func (c *FakeEvents) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (c *FakeEvents) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Event, err error)
Get takes name of the event, and returns the corresponding event object, and an error if there is any.
func (c *FakeEvents) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EventList, err error)
List takes label and field selectors, and returns the list of Events that match those selectors.
func (c *FakeEvents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Event, err error)
Patch applies the patch and returns the patched event.
func (c *FakeEvents) Update(ctx context.Context, event *v1.Event, opts metav1.UpdateOptions) (result *v1.Event, err error)
Update takes the representation of a event and updates it. Returns the server's representation of the event, and an error, if there is any.
func (c *FakeEvents) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested events.
type FakeEventsV1 struct { *testing.Fake }
func (c *FakeEventsV1) Events(namespace string) v1.EventInterface
func (c *FakeEventsV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.