Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type ErrorBadRequest
- type ErrorInternalServerError
- type ErrorNotFound
- type ErrorParams
- func (o *ErrorParams) SetContext(ctx context.Context)
- func (o *ErrorParams) SetDefaults()
- func (o *ErrorParams) SetHTTPClient(client *http.Client)
- func (o *ErrorParams) SetTimeout(timeout time.Duration)
- func (o *ErrorParams) WithContext(ctx context.Context) *ErrorParams
- func (o *ErrorParams) WithDefaults() *ErrorParams
- func (o *ErrorParams) WithHTTPClient(client *http.Client) *ErrorParams
- func (o *ErrorParams) WithTimeout(timeout time.Duration) *ErrorParams
- func (o *ErrorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ErrorReader
- type ErrorUnprocessableEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for operations API
func (*Client) Error ¶
func (a *Client) Error(params *ErrorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error
Error wills always generate an error
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 { Error(params *ErrorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) 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 operations API client.
type ErrorBadRequest ¶
ErrorBadRequest describes a response with status code 400, with default header values.
The supplied request was not valid
func NewErrorBadRequest ¶
func NewErrorBadRequest() *ErrorBadRequest
NewErrorBadRequest creates a ErrorBadRequest with default headers values
func (*ErrorBadRequest) Error ¶
func (o *ErrorBadRequest) Error() string
func (*ErrorBadRequest) GetPayload ¶
func (o *ErrorBadRequest) GetPayload() *models.Error
type ErrorInternalServerError ¶
ErrorInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewErrorInternalServerError ¶
func NewErrorInternalServerError() *ErrorInternalServerError
NewErrorInternalServerError creates a ErrorInternalServerError with default headers values
func (*ErrorInternalServerError) Error ¶
func (o *ErrorInternalServerError) Error() string
func (*ErrorInternalServerError) GetPayload ¶
func (o *ErrorInternalServerError) GetPayload() *models.Error
type ErrorNotFound ¶
ErrorNotFound describes a response with status code 404, with default header values.
Requested item was not found
func NewErrorNotFound ¶
func NewErrorNotFound() *ErrorNotFound
NewErrorNotFound creates a ErrorNotFound with default headers values
func (*ErrorNotFound) Error ¶
func (o *ErrorNotFound) Error() string
func (*ErrorNotFound) GetPayload ¶
func (o *ErrorNotFound) GetPayload() *models.Error
type ErrorParams ¶
type ErrorParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ErrorParams contains all the parameters to send to the API endpoint
for the error operation. Typically these are written to a http.Request.
func NewErrorParams ¶
func NewErrorParams() *ErrorParams
NewErrorParams creates a new ErrorParams 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 NewErrorParamsWithContext ¶
func NewErrorParamsWithContext(ctx context.Context) *ErrorParams
NewErrorParamsWithContext creates a new ErrorParams object with the ability to set a context for a request.
func NewErrorParamsWithHTTPClient ¶
func NewErrorParamsWithHTTPClient(client *http.Client) *ErrorParams
NewErrorParamsWithHTTPClient creates a new ErrorParams object with the ability to set a custom HTTPClient for a request.
func NewErrorParamsWithTimeout ¶
func NewErrorParamsWithTimeout(timeout time.Duration) *ErrorParams
NewErrorParamsWithTimeout creates a new ErrorParams object with the ability to set a timeout on a request.
func (*ErrorParams) SetContext ¶
func (o *ErrorParams) SetContext(ctx context.Context)
SetContext adds the context to the error params
func (*ErrorParams) SetDefaults ¶
func (o *ErrorParams) SetDefaults()
SetDefaults hydrates default values in the error params (not the query body).
All values with no default are reset to their zero value.
func (*ErrorParams) SetHTTPClient ¶
func (o *ErrorParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the error params
func (*ErrorParams) SetTimeout ¶
func (o *ErrorParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the error params
func (*ErrorParams) WithContext ¶
func (o *ErrorParams) WithContext(ctx context.Context) *ErrorParams
WithContext adds the context to the error params
func (*ErrorParams) WithDefaults ¶
func (o *ErrorParams) WithDefaults() *ErrorParams
WithDefaults hydrates default values in the error params (not the query body).
All values with no default are reset to their zero value.
func (*ErrorParams) WithHTTPClient ¶
func (o *ErrorParams) WithHTTPClient(client *http.Client) *ErrorParams
WithHTTPClient adds the HTTPClient to the error params
func (*ErrorParams) WithTimeout ¶
func (o *ErrorParams) WithTimeout(timeout time.Duration) *ErrorParams
WithTimeout adds the timeout to the error params
func (*ErrorParams) WriteToRequest ¶
func (o *ErrorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ErrorReader ¶
type ErrorReader struct {
// contains filtered or unexported fields
}
ErrorReader is a Reader for the Error structure.
func (*ErrorReader) ReadResponse ¶
func (o *ErrorReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ErrorUnprocessableEntity ¶
ErrorUnprocessableEntity describes a response with status code 422, with default header values.
The input to the operation was not valid
func NewErrorUnprocessableEntity ¶
func NewErrorUnprocessableEntity() *ErrorUnprocessableEntity
NewErrorUnprocessableEntity creates a ErrorUnprocessableEntity with default headers values
func (*ErrorUnprocessableEntity) Error ¶
func (o *ErrorUnprocessableEntity) Error() string
func (*ErrorUnprocessableEntity) GetPayload ¶
func (o *ErrorUnprocessableEntity) GetPayload() *models.Error