Documentation ¶
Index ¶
- type AddEventBadRequest
- type AddEventInternalServerError
- type AddEventNotFound
- type AddEventOK
- type AddEventParams
- func (o *AddEventParams) SetBody(body *models.AddEvent)
- func (o *AddEventParams) SetContext(ctx context.Context)
- func (o *AddEventParams) SetDefaults()
- func (o *AddEventParams) SetHTTPClient(client *http.Client)
- func (o *AddEventParams) SetTimeout(timeout time.Duration)
- func (o *AddEventParams) WithBody(body *models.AddEvent) *AddEventParams
- func (o *AddEventParams) WithContext(ctx context.Context) *AddEventParams
- func (o *AddEventParams) WithDefaults() *AddEventParams
- func (o *AddEventParams) WithHTTPClient(client *http.Client) *AddEventParams
- func (o *AddEventParams) WithTimeout(timeout time.Duration) *AddEventParams
- func (o *AddEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddEventReader
- type AddEventTooManyRequests
- type AddEventUnauthorized
- type Client
- type ClientOption
- type ClientService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddEventBadRequest ¶
type AddEventBadRequest struct {
Payload *models.ErrorResponse
}
AddEventBadRequest describes a response with status code 400, with default header values.
Bad params suplied
func NewAddEventBadRequest ¶
func NewAddEventBadRequest() *AddEventBadRequest
NewAddEventBadRequest creates a AddEventBadRequest with default headers values
func (*AddEventBadRequest) Error ¶
func (o *AddEventBadRequest) Error() string
func (*AddEventBadRequest) GetPayload ¶
func (o *AddEventBadRequest) GetPayload() *models.ErrorResponse
type AddEventInternalServerError ¶
type AddEventInternalServerError struct {
Payload *models.ErrorResponse
}
AddEventInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewAddEventInternalServerError ¶
func NewAddEventInternalServerError() *AddEventInternalServerError
NewAddEventInternalServerError creates a AddEventInternalServerError with default headers values
func (*AddEventInternalServerError) Error ¶
func (o *AddEventInternalServerError) Error() string
func (*AddEventInternalServerError) GetPayload ¶
func (o *AddEventInternalServerError) GetPayload() *models.ErrorResponse
type AddEventNotFound ¶
type AddEventNotFound struct {
Payload *models.ErrorResponse
}
AddEventNotFound describes a response with status code 404, with default header values.
Tag not found
func NewAddEventNotFound ¶
func NewAddEventNotFound() *AddEventNotFound
NewAddEventNotFound creates a AddEventNotFound with default headers values
func (*AddEventNotFound) Error ¶
func (o *AddEventNotFound) Error() string
func (*AddEventNotFound) GetPayload ¶
func (o *AddEventNotFound) GetPayload() *models.ErrorResponse
type AddEventOK ¶
type AddEventOK struct { }
AddEventOK describes a response with status code 200, with default header values.
OK
func NewAddEventOK ¶
func NewAddEventOK() *AddEventOK
NewAddEventOK creates a AddEventOK with default headers values
func (*AddEventOK) Error ¶
func (o *AddEventOK) Error() string
type AddEventParams ¶
type AddEventParams struct { /* Body. Event object. */ Body *models.AddEvent Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddEventParams contains all the parameters to send to the API endpoint
for the add event operation. Typically these are written to a http.Request.
func NewAddEventParams ¶
func NewAddEventParams() *AddEventParams
NewAddEventParams creates a new AddEventParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewAddEventParamsWithContext ¶
func NewAddEventParamsWithContext(ctx context.Context) *AddEventParams
NewAddEventParamsWithContext creates a new AddEventParams object with the ability to set a context for a request.
func NewAddEventParamsWithHTTPClient ¶
func NewAddEventParamsWithHTTPClient(client *http.Client) *AddEventParams
NewAddEventParamsWithHTTPClient creates a new AddEventParams object with the ability to set a custom HTTPClient for a request.
func NewAddEventParamsWithTimeout ¶
func NewAddEventParamsWithTimeout(timeout time.Duration) *AddEventParams
NewAddEventParamsWithTimeout creates a new AddEventParams object with the ability to set a timeout on a request.
func (*AddEventParams) SetBody ¶
func (o *AddEventParams) SetBody(body *models.AddEvent)
SetBody adds the body to the add event params
func (*AddEventParams) SetContext ¶
func (o *AddEventParams) SetContext(ctx context.Context)
SetContext adds the context to the add event params
func (*AddEventParams) SetDefaults ¶
func (o *AddEventParams) SetDefaults()
SetDefaults hydrates default values in the add event params (not the query body).
All values with no default are reset to their zero value.
func (*AddEventParams) SetHTTPClient ¶
func (o *AddEventParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add event params
func (*AddEventParams) SetTimeout ¶
func (o *AddEventParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add event params
func (*AddEventParams) WithBody ¶
func (o *AddEventParams) WithBody(body *models.AddEvent) *AddEventParams
WithBody adds the body to the add event params
func (*AddEventParams) WithContext ¶
func (o *AddEventParams) WithContext(ctx context.Context) *AddEventParams
WithContext adds the context to the add event params
func (*AddEventParams) WithDefaults ¶
func (o *AddEventParams) WithDefaults() *AddEventParams
WithDefaults hydrates default values in the add event params (not the query body).
All values with no default are reset to their zero value.
func (*AddEventParams) WithHTTPClient ¶
func (o *AddEventParams) WithHTTPClient(client *http.Client) *AddEventParams
WithHTTPClient adds the HTTPClient to the add event params
func (*AddEventParams) WithTimeout ¶
func (o *AddEventParams) WithTimeout(timeout time.Duration) *AddEventParams
WithTimeout adds the timeout to the add event params
func (*AddEventParams) WriteToRequest ¶
func (o *AddEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddEventReader ¶
type AddEventReader struct {
// contains filtered or unexported fields
}
AddEventReader is a Reader for the AddEvent structure.
func (*AddEventReader) ReadResponse ¶
func (o *AddEventReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AddEventTooManyRequests ¶
type AddEventTooManyRequests struct {
Payload *models.ErrorResponse
}
AddEventTooManyRequests describes a response with status code 429, with default header values.
Too Many Requests
func NewAddEventTooManyRequests ¶
func NewAddEventTooManyRequests() *AddEventTooManyRequests
NewAddEventTooManyRequests creates a AddEventTooManyRequests with default headers values
func (*AddEventTooManyRequests) Error ¶
func (o *AddEventTooManyRequests) Error() string
func (*AddEventTooManyRequests) GetPayload ¶
func (o *AddEventTooManyRequests) GetPayload() *models.ErrorResponse
type AddEventUnauthorized ¶
type AddEventUnauthorized struct {
}AddEventUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewAddEventUnauthorized ¶
func NewAddEventUnauthorized() *AddEventUnauthorized
NewAddEventUnauthorized creates a AddEventUnauthorized with default headers values
func (*AddEventUnauthorized) Error ¶
func (o *AddEventUnauthorized) Error() string
func (*AddEventUnauthorized) GetPayload ¶
func (o *AddEventUnauthorized) GetPayload() *models.ErrorResponse
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for events API
func (*Client) AddEvent ¶
func (a *Client) AddEvent(params *AddEventParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddEventOK, error)
AddEvent adds event
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { AddEvent(params *AddEventParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddEventOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new events API client.