Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeEvents
- func (c *FakeEvents) Apply(ctx context.Context, ...) (result *eventsv1.Event, err error)
- func (c *FakeEvents) Create(ctx context.Context, event *eventsv1.Event, opts v1.CreateOptions) (result *eventsv1.Event, err error)
- func (c *FakeEvents) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeEvents) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeEvents) Get(ctx context.Context, name string, options v1.GetOptions) (result *eventsv1.Event, err error)
- func (c *FakeEvents) List(ctx context.Context, opts v1.ListOptions) (result *eventsv1.EventList, err error)
- func (c *FakeEvents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *eventsv1.Event, err error)
- func (c *FakeEvents) Update(ctx context.Context, event *eventsv1.Event, opts v1.UpdateOptions) (result *eventsv1.Event, err error)
- func (c *FakeEvents) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeEventsV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeEvents ¶
type FakeEvents struct { Fake *FakeEventsV1 // contains filtered or unexported fields }
FakeEvents implements EventInterface
func (*FakeEvents) Apply ¶ added in v0.21.0
func (c *FakeEvents) Apply(ctx context.Context, event *applyconfigurationseventsv1.EventApplyConfiguration, opts v1.ApplyOptions) (result *eventsv1.Event, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied event.
func (*FakeEvents) Create ¶
func (c *FakeEvents) Create(ctx context.Context, event *eventsv1.Event, opts v1.CreateOptions) (result *eventsv1.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 (*FakeEvents) Delete ¶
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 (*FakeEvents) DeleteCollection ¶
func (c *FakeEvents) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeEvents) Get ¶
func (c *FakeEvents) Get(ctx context.Context, name string, options v1.GetOptions) (result *eventsv1.Event, err error)
Get takes name of the event, and returns the corresponding event object, and an error if there is any.
func (*FakeEvents) List ¶
func (c *FakeEvents) List(ctx context.Context, opts v1.ListOptions) (result *eventsv1.EventList, err error)
List takes label and field selectors, and returns the list of Events that match those selectors.
func (*FakeEvents) Patch ¶
func (c *FakeEvents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *eventsv1.Event, err error)
Patch applies the patch and returns the patched event.
func (*FakeEvents) Update ¶
func (c *FakeEvents) Update(ctx context.Context, event *eventsv1.Event, opts v1.UpdateOptions) (result *eventsv1.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 (*FakeEvents) Watch ¶
func (c *FakeEvents) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested events.
type FakeEventsV1 ¶
func (*FakeEventsV1) Events ¶
func (c *FakeEventsV1) Events(namespace string) v1.EventInterface
func (*FakeEventsV1) RESTClient ¶
func (c *FakeEventsV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.