Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetAPIV1HackErrCodeBadRequest
- type GetAPIV1HackErrCodeConflict
- type GetAPIV1HackErrCodeForbidden
- type GetAPIV1HackErrCodeInternalServerError
- type GetAPIV1HackErrCodeNotFound
- type GetAPIV1HackErrCodeOK
- type GetAPIV1HackErrCodeParams
- func NewGetAPIV1HackErrCodeParams() *GetAPIV1HackErrCodeParams
- func NewGetAPIV1HackErrCodeParamsWithContext(ctx context.Context) *GetAPIV1HackErrCodeParams
- func NewGetAPIV1HackErrCodeParamsWithHTTPClient(client *http.Client) *GetAPIV1HackErrCodeParams
- func NewGetAPIV1HackErrCodeParamsWithTimeout(timeout time.Duration) *GetAPIV1HackErrCodeParams
- func (o *GetAPIV1HackErrCodeParams) SetCode(code int64)
- func (o *GetAPIV1HackErrCodeParams) SetContext(ctx context.Context)
- func (o *GetAPIV1HackErrCodeParams) SetDefaults()
- func (o *GetAPIV1HackErrCodeParams) SetHTTPClient(client *http.Client)
- func (o *GetAPIV1HackErrCodeParams) SetTimeout(timeout time.Duration)
- func (o *GetAPIV1HackErrCodeParams) WithCode(code int64) *GetAPIV1HackErrCodeParams
- func (o *GetAPIV1HackErrCodeParams) WithContext(ctx context.Context) *GetAPIV1HackErrCodeParams
- func (o *GetAPIV1HackErrCodeParams) WithDefaults() *GetAPIV1HackErrCodeParams
- func (o *GetAPIV1HackErrCodeParams) WithHTTPClient(client *http.Client) *GetAPIV1HackErrCodeParams
- func (o *GetAPIV1HackErrCodeParams) WithTimeout(timeout time.Duration) *GetAPIV1HackErrCodeParams
- func (o *GetAPIV1HackErrCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPIV1HackErrCodeReader
- type GetAPIV1HackErrCodeUnauthorized
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 hack API
func (*Client) GetAPIV1HackErrCode ¶
func (a *Client) GetAPIV1HackErrCode(params *GetAPIV1HackErrCodeParams, opts ...ClientOption) (*GetAPIV1HackErrCodeOK, error)
GetAPIV1HackErrCode makes an error
Make 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 { GetAPIV1HackErrCode(params *GetAPIV1HackErrCodeParams, opts ...ClientOption) (*GetAPIV1HackErrCodeOK, 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 hack API client.
type GetAPIV1HackErrCodeBadRequest ¶
type GetAPIV1HackErrCodeBadRequest struct {
Payload *models.ApimodelsHTTPError
}
GetAPIV1HackErrCodeBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewGetAPIV1HackErrCodeBadRequest ¶
func NewGetAPIV1HackErrCodeBadRequest() *GetAPIV1HackErrCodeBadRequest
NewGetAPIV1HackErrCodeBadRequest creates a GetAPIV1HackErrCodeBadRequest with default headers values
func (*GetAPIV1HackErrCodeBadRequest) Error ¶
func (o *GetAPIV1HackErrCodeBadRequest) Error() string
func (*GetAPIV1HackErrCodeBadRequest) GetPayload ¶
func (o *GetAPIV1HackErrCodeBadRequest) GetPayload() *models.ApimodelsHTTPError
type GetAPIV1HackErrCodeConflict ¶
type GetAPIV1HackErrCodeConflict struct {
Payload *models.ApimodelsHTTPError
}
GetAPIV1HackErrCodeConflict describes a response with status code 409, with default header values.
Conflict
func NewGetAPIV1HackErrCodeConflict ¶
func NewGetAPIV1HackErrCodeConflict() *GetAPIV1HackErrCodeConflict
NewGetAPIV1HackErrCodeConflict creates a GetAPIV1HackErrCodeConflict with default headers values
func (*GetAPIV1HackErrCodeConflict) Error ¶
func (o *GetAPIV1HackErrCodeConflict) Error() string
func (*GetAPIV1HackErrCodeConflict) GetPayload ¶
func (o *GetAPIV1HackErrCodeConflict) GetPayload() *models.ApimodelsHTTPError
type GetAPIV1HackErrCodeForbidden ¶
type GetAPIV1HackErrCodeForbidden struct {
Payload *models.ApimodelsHTTPError
}
GetAPIV1HackErrCodeForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetAPIV1HackErrCodeForbidden ¶
func NewGetAPIV1HackErrCodeForbidden() *GetAPIV1HackErrCodeForbidden
NewGetAPIV1HackErrCodeForbidden creates a GetAPIV1HackErrCodeForbidden with default headers values
func (*GetAPIV1HackErrCodeForbidden) Error ¶
func (o *GetAPIV1HackErrCodeForbidden) Error() string
func (*GetAPIV1HackErrCodeForbidden) GetPayload ¶
func (o *GetAPIV1HackErrCodeForbidden) GetPayload() *models.ApimodelsHTTPError
type GetAPIV1HackErrCodeInternalServerError ¶
type GetAPIV1HackErrCodeInternalServerError struct {
Payload *models.ApimodelsHTTPError
}
GetAPIV1HackErrCodeInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewGetAPIV1HackErrCodeInternalServerError ¶
func NewGetAPIV1HackErrCodeInternalServerError() *GetAPIV1HackErrCodeInternalServerError
NewGetAPIV1HackErrCodeInternalServerError creates a GetAPIV1HackErrCodeInternalServerError with default headers values
func (*GetAPIV1HackErrCodeInternalServerError) Error ¶
func (o *GetAPIV1HackErrCodeInternalServerError) Error() string
func (*GetAPIV1HackErrCodeInternalServerError) GetPayload ¶
func (o *GetAPIV1HackErrCodeInternalServerError) GetPayload() *models.ApimodelsHTTPError
type GetAPIV1HackErrCodeNotFound ¶
type GetAPIV1HackErrCodeNotFound struct {
Payload *models.ApimodelsHTTPError
}
GetAPIV1HackErrCodeNotFound describes a response with status code 404, with default header values.
Not Found
func NewGetAPIV1HackErrCodeNotFound ¶
func NewGetAPIV1HackErrCodeNotFound() *GetAPIV1HackErrCodeNotFound
NewGetAPIV1HackErrCodeNotFound creates a GetAPIV1HackErrCodeNotFound with default headers values
func (*GetAPIV1HackErrCodeNotFound) Error ¶
func (o *GetAPIV1HackErrCodeNotFound) Error() string
func (*GetAPIV1HackErrCodeNotFound) GetPayload ¶
func (o *GetAPIV1HackErrCodeNotFound) GetPayload() *models.ApimodelsHTTPError
type GetAPIV1HackErrCodeOK ¶
type GetAPIV1HackErrCodeOK struct {
Payload *models.ApimodelsHTTPError
}
GetAPIV1HackErrCodeOK describes a response with status code 200, with default header values.
OK
func NewGetAPIV1HackErrCodeOK ¶
func NewGetAPIV1HackErrCodeOK() *GetAPIV1HackErrCodeOK
NewGetAPIV1HackErrCodeOK creates a GetAPIV1HackErrCodeOK with default headers values
func (*GetAPIV1HackErrCodeOK) Error ¶
func (o *GetAPIV1HackErrCodeOK) Error() string
func (*GetAPIV1HackErrCodeOK) GetPayload ¶
func (o *GetAPIV1HackErrCodeOK) GetPayload() *models.ApimodelsHTTPError
type GetAPIV1HackErrCodeParams ¶
type GetAPIV1HackErrCodeParams struct { /* Code. http code */ Code int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAPIV1HackErrCodeParams contains all the parameters to send to the API endpoint
for the get API v1 hack err code operation. Typically these are written to a http.Request.
func NewGetAPIV1HackErrCodeParams ¶
func NewGetAPIV1HackErrCodeParams() *GetAPIV1HackErrCodeParams
NewGetAPIV1HackErrCodeParams creates a new GetAPIV1HackErrCodeParams 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 NewGetAPIV1HackErrCodeParamsWithContext ¶
func NewGetAPIV1HackErrCodeParamsWithContext(ctx context.Context) *GetAPIV1HackErrCodeParams
NewGetAPIV1HackErrCodeParamsWithContext creates a new GetAPIV1HackErrCodeParams object with the ability to set a context for a request.
func NewGetAPIV1HackErrCodeParamsWithHTTPClient ¶
func NewGetAPIV1HackErrCodeParamsWithHTTPClient(client *http.Client) *GetAPIV1HackErrCodeParams
NewGetAPIV1HackErrCodeParamsWithHTTPClient creates a new GetAPIV1HackErrCodeParams object with the ability to set a custom HTTPClient for a request.
func NewGetAPIV1HackErrCodeParamsWithTimeout ¶
func NewGetAPIV1HackErrCodeParamsWithTimeout(timeout time.Duration) *GetAPIV1HackErrCodeParams
NewGetAPIV1HackErrCodeParamsWithTimeout creates a new GetAPIV1HackErrCodeParams object with the ability to set a timeout on a request.
func (*GetAPIV1HackErrCodeParams) SetCode ¶
func (o *GetAPIV1HackErrCodeParams) SetCode(code int64)
SetCode adds the code to the get API v1 hack err code params
func (*GetAPIV1HackErrCodeParams) SetContext ¶
func (o *GetAPIV1HackErrCodeParams) SetContext(ctx context.Context)
SetContext adds the context to the get API v1 hack err code params
func (*GetAPIV1HackErrCodeParams) SetDefaults ¶
func (o *GetAPIV1HackErrCodeParams) SetDefaults()
SetDefaults hydrates default values in the get API v1 hack err code params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIV1HackErrCodeParams) SetHTTPClient ¶
func (o *GetAPIV1HackErrCodeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get API v1 hack err code params
func (*GetAPIV1HackErrCodeParams) SetTimeout ¶
func (o *GetAPIV1HackErrCodeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get API v1 hack err code params
func (*GetAPIV1HackErrCodeParams) WithCode ¶
func (o *GetAPIV1HackErrCodeParams) WithCode(code int64) *GetAPIV1HackErrCodeParams
WithCode adds the code to the get API v1 hack err code params
func (*GetAPIV1HackErrCodeParams) WithContext ¶
func (o *GetAPIV1HackErrCodeParams) WithContext(ctx context.Context) *GetAPIV1HackErrCodeParams
WithContext adds the context to the get API v1 hack err code params
func (*GetAPIV1HackErrCodeParams) WithDefaults ¶
func (o *GetAPIV1HackErrCodeParams) WithDefaults() *GetAPIV1HackErrCodeParams
WithDefaults hydrates default values in the get API v1 hack err code params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIV1HackErrCodeParams) WithHTTPClient ¶
func (o *GetAPIV1HackErrCodeParams) WithHTTPClient(client *http.Client) *GetAPIV1HackErrCodeParams
WithHTTPClient adds the HTTPClient to the get API v1 hack err code params
func (*GetAPIV1HackErrCodeParams) WithTimeout ¶
func (o *GetAPIV1HackErrCodeParams) WithTimeout(timeout time.Duration) *GetAPIV1HackErrCodeParams
WithTimeout adds the timeout to the get API v1 hack err code params
func (*GetAPIV1HackErrCodeParams) WriteToRequest ¶
func (o *GetAPIV1HackErrCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAPIV1HackErrCodeReader ¶
type GetAPIV1HackErrCodeReader struct {
// contains filtered or unexported fields
}
GetAPIV1HackErrCodeReader is a Reader for the GetAPIV1HackErrCode structure.
func (*GetAPIV1HackErrCodeReader) ReadResponse ¶
func (o *GetAPIV1HackErrCodeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAPIV1HackErrCodeUnauthorized ¶
type GetAPIV1HackErrCodeUnauthorized struct {
}GetAPIV1HackErrCodeUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetAPIV1HackErrCodeUnauthorized ¶
func NewGetAPIV1HackErrCodeUnauthorized() *GetAPIV1HackErrCodeUnauthorized
NewGetAPIV1HackErrCodeUnauthorized creates a GetAPIV1HackErrCodeUnauthorized with default headers values
func (*GetAPIV1HackErrCodeUnauthorized) Error ¶
func (o *GetAPIV1HackErrCodeUnauthorized) Error() string
func (*GetAPIV1HackErrCodeUnauthorized) GetPayload ¶
func (o *GetAPIV1HackErrCodeUnauthorized) GetPayload() *models.ApimodelsHTTPError