import "k8s.io/client-go/kubernetes/typed/events/v1beta1/fake"
Package fake has the automatically generated clients.
doc.go fake_event.go fake_event_expansion.go fake_events_client.go
type FakeEvents struct { Fake *FakeEventsV1beta1 // contains filtered or unexported fields }
FakeEvents implements EventInterface
func (c *FakeEvents) Create(ctx context.Context, event *v1beta1.Event, opts v1.CreateOptions) (result *v1beta1.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.
CreateWithEventNamespace creats a new event. Returns the copy of the event the server returns, or an error.
func (c *FakeEvents) Delete(ctx context.Context, name string, opts v1.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 v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (c *FakeEvents) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.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 v1.ListOptions) (result *v1beta1.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 v1.PatchOptions, subresources ...string) (result *v1beta1.Event, err error)
Patch applies the patch and returns the patched event.
func (c *FakeEvents) PatchWithEventNamespace(event *v1beta1.Event, data []byte) (*v1beta1.Event, error)
PatchWithEventNamespace patches an existing event. Returns the copy of the event the server returns, or an error.
func (c *FakeEvents) Update(ctx context.Context, event *v1beta1.Event, opts v1.UpdateOptions) (result *v1beta1.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.
UpdateWithEventNamespace replaces an existing event. Returns the copy of the event the server returns, or an error.
func (c *FakeEvents) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested events.
func (c *FakeEventsV1beta1) Events(namespace string) v1beta1.EventInterface
func (c *FakeEventsV1beta1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
Package fake imports 10 packages (graph) and is imported by 7 packages. Updated 2020-03-17. Refresh now. Tools for package owners.