Documentation ¶
Index ¶
- type API
- type Client
- type ListEventsInternalServerError
- type ListEventsOK
- type ListEventsParams
- func (o *ListEventsParams) SetContext(ctx context.Context)
- func (o *ListEventsParams) SetEntityID(entityID strfmt.UUID)
- func (o *ListEventsParams) SetHTTPClient(client *http.Client)
- func (o *ListEventsParams) SetTimeout(timeout time.Duration)
- func (o *ListEventsParams) WithContext(ctx context.Context) *ListEventsParams
- func (o *ListEventsParams) WithEntityID(entityID strfmt.UUID) *ListEventsParams
- func (o *ListEventsParams) WithHTTPClient(client *http.Client) *ListEventsParams
- func (o *ListEventsParams) WithTimeout(timeout time.Duration) *ListEventsParams
- func (o *ListEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListEventsReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { /* ListEvents lists events for an entity id*/ ListEvents(ctx context.Context, params *ListEventsParams) (*ListEventsOK, error) }
API is the interface of the events client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for events API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new events API client.
func (*Client) ListEvents ¶
func (a *Client) ListEvents(ctx context.Context, params *ListEventsParams) (*ListEventsOK, error)
ListEvents lists events for an entity id
type ListEventsInternalServerError ¶
ListEventsInternalServerError handles this case with default header values.
Error.
func NewListEventsInternalServerError ¶
func NewListEventsInternalServerError() *ListEventsInternalServerError
NewListEventsInternalServerError creates a ListEventsInternalServerError with default headers values
func (*ListEventsInternalServerError) Error ¶
func (o *ListEventsInternalServerError) Error() string
func (*ListEventsInternalServerError) GetPayload ¶
func (o *ListEventsInternalServerError) GetPayload() *models.Error
type ListEventsOK ¶
ListEventsOK handles this case with default header values.
Success.
func NewListEventsOK ¶
func NewListEventsOK() *ListEventsOK
NewListEventsOK creates a ListEventsOK with default headers values
func (*ListEventsOK) Error ¶
func (o *ListEventsOK) Error() string
func (*ListEventsOK) GetPayload ¶
func (o *ListEventsOK) GetPayload() models.EventList
type ListEventsParams ¶
type ListEventsParams struct { /*EntityID*/ EntityID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListEventsParams contains all the parameters to send to the API endpoint for the list events operation typically these are written to a http.Request
func NewListEventsParams ¶
func NewListEventsParams() *ListEventsParams
NewListEventsParams creates a new ListEventsParams object with the default values initialized.
func NewListEventsParamsWithContext ¶
func NewListEventsParamsWithContext(ctx context.Context) *ListEventsParams
NewListEventsParamsWithContext creates a new ListEventsParams object with the default values initialized, and the ability to set a context for a request
func NewListEventsParamsWithHTTPClient ¶
func NewListEventsParamsWithHTTPClient(client *http.Client) *ListEventsParams
NewListEventsParamsWithHTTPClient creates a new ListEventsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListEventsParamsWithTimeout ¶
func NewListEventsParamsWithTimeout(timeout time.Duration) *ListEventsParams
NewListEventsParamsWithTimeout creates a new ListEventsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListEventsParams) SetContext ¶
func (o *ListEventsParams) SetContext(ctx context.Context)
SetContext adds the context to the list events params
func (*ListEventsParams) SetEntityID ¶
func (o *ListEventsParams) SetEntityID(entityID strfmt.UUID)
SetEntityID adds the entityId to the list events params
func (*ListEventsParams) SetHTTPClient ¶
func (o *ListEventsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list events params
func (*ListEventsParams) SetTimeout ¶
func (o *ListEventsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list events params
func (*ListEventsParams) WithContext ¶
func (o *ListEventsParams) WithContext(ctx context.Context) *ListEventsParams
WithContext adds the context to the list events params
func (*ListEventsParams) WithEntityID ¶
func (o *ListEventsParams) WithEntityID(entityID strfmt.UUID) *ListEventsParams
WithEntityID adds the entityID to the list events params
func (*ListEventsParams) WithHTTPClient ¶
func (o *ListEventsParams) WithHTTPClient(client *http.Client) *ListEventsParams
WithHTTPClient adds the HTTPClient to the list events params
func (*ListEventsParams) WithTimeout ¶
func (o *ListEventsParams) WithTimeout(timeout time.Duration) *ListEventsParams
WithTimeout adds the timeout to the list events params
func (*ListEventsParams) WriteToRequest ¶
func (o *ListEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListEventsReader ¶
type ListEventsReader struct {
// contains filtered or unexported fields
}
ListEventsReader is a Reader for the ListEvents structure.
func (*ListEventsReader) ReadResponse ¶
func (o *ListEventsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.