Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeEvents
- func (c *FakeEvents) Create(event *v1beta1.Event) (result *v1beta1.Event, err error)
- func (c *FakeEvents) CreateWithEventNamespace(event *v1beta1.Event) (*v1beta1.Event, error)
- func (c *FakeEvents) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeEvents) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeEvents) Get(name string, options v1.GetOptions) (result *v1beta1.Event, err error)
- func (c *FakeEvents) List(opts v1.ListOptions) (result *v1beta1.EventList, err error)
- func (c *FakeEvents) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Event, err error)
- func (c *FakeEvents) PatchWithEventNamespace(event *v1beta1.Event, data []byte) (*v1beta1.Event, error)
- func (c *FakeEvents) Update(event *v1beta1.Event) (result *v1beta1.Event, err error)
- func (c *FakeEvents) UpdateWithEventNamespace(event *v1beta1.Event) (*v1beta1.Event, error)
- func (c *FakeEvents) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeEventsV1beta1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeEvents ¶
type FakeEvents struct { Fake *FakeEventsV1beta1 // contains filtered or unexported fields }
FakeEvents implements EventInterface
func (*FakeEvents) Create ¶
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) CreateWithEventNamespace ¶
CreateWithEventNamespace creats a new event. Returns the copy of the event the server returns, or an error.
func (*FakeEvents) Delete ¶
func (c *FakeEvents) Delete(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeEvents) Get ¶
func (c *FakeEvents) Get(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 (*FakeEvents) List ¶
func (c *FakeEvents) List(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 (*FakeEvents) Patch ¶
func (c *FakeEvents) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Event, err error)
Patch applies the patch and returns the patched event.
func (*FakeEvents) PatchWithEventNamespace ¶
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 (*FakeEvents) Update ¶
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) UpdateWithEventNamespace ¶
UpdateWithEventNamespace replaces an existing event. Returns the copy of the event the server returns, or an error.
func (*FakeEvents) Watch ¶
func (c *FakeEvents) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested events.
type FakeEventsV1beta1 ¶
func (*FakeEventsV1beta1) Events ¶
func (c *FakeEventsV1beta1) Events(namespace string) v1beta1.EventInterface
func (*FakeEventsV1beta1) RESTClient ¶
func (c *FakeEventsV1beta1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.