Documentation ¶
Index ¶
- Constants
- type GetTaskTaskID
- type GetTaskTaskIDBadRequest
- type GetTaskTaskIDHandler
- type GetTaskTaskIDHandlerFunc
- type GetTaskTaskIDOK
- type GetTaskTaskIDParams
- type GetTaskTaskIDURL
- func (o *GetTaskTaskIDURL) Build() (*url.URL, error)
- func (o *GetTaskTaskIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetTaskTaskIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetTaskTaskIDURL) SetBasePath(bp string)
- func (o *GetTaskTaskIDURL) String() string
- func (o *GetTaskTaskIDURL) StringFull(scheme, host string) string
- func (o *GetTaskTaskIDURL) WithBasePath(bp string) *GetTaskTaskIDURL
Constants ¶
const GetTaskTaskIDBadRequestCode int = 400
GetTaskTaskIDBadRequestCode is the HTTP code returned for type GetTaskTaskIDBadRequest
const GetTaskTaskIDOKCode int = 200
GetTaskTaskIDOKCode is the HTTP code returned for type GetTaskTaskIDOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetTaskTaskID ¶
type GetTaskTaskID struct { Context *middleware.Context Handler GetTaskTaskIDHandler }
GetTaskTaskID swagger:route GET /task/{task_id} getTask getTaskTaskId
Get task info
func NewGetTaskTaskID ¶
func NewGetTaskTaskID(ctx *middleware.Context, handler GetTaskTaskIDHandler) *GetTaskTaskID
NewGetTaskTaskID creates a new http.Handler for the get task task ID operation
func (*GetTaskTaskID) ServeHTTP ¶
func (o *GetTaskTaskID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetTaskTaskIDBadRequest ¶
type GetTaskTaskIDBadRequest struct { /* In: Body */ Payload *models.ResponseError `json:"body,omitempty"` }
GetTaskTaskIDBadRequest Bad Request
swagger:response getTaskTaskIdBadRequest
func NewGetTaskTaskIDBadRequest ¶
func NewGetTaskTaskIDBadRequest() *GetTaskTaskIDBadRequest
NewGetTaskTaskIDBadRequest creates GetTaskTaskIDBadRequest with default headers values
func (*GetTaskTaskIDBadRequest) SetPayload ¶
func (o *GetTaskTaskIDBadRequest) SetPayload(payload *models.ResponseError)
SetPayload sets the payload to the get task task Id bad request response
func (*GetTaskTaskIDBadRequest) WithPayload ¶
func (o *GetTaskTaskIDBadRequest) WithPayload(payload *models.ResponseError) *GetTaskTaskIDBadRequest
WithPayload adds the payload to the get task task Id bad request response
func (*GetTaskTaskIDBadRequest) WriteResponse ¶
func (o *GetTaskTaskIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTaskTaskIDHandler ¶
type GetTaskTaskIDHandler interface {
Handle(GetTaskTaskIDParams) middleware.Responder
}
GetTaskTaskIDHandler interface for that can handle valid get task task ID params
type GetTaskTaskIDHandlerFunc ¶
type GetTaskTaskIDHandlerFunc func(GetTaskTaskIDParams) middleware.Responder
GetTaskTaskIDHandlerFunc turns a function with the right signature into a get task task ID handler
func (GetTaskTaskIDHandlerFunc) Handle ¶
func (fn GetTaskTaskIDHandlerFunc) Handle(params GetTaskTaskIDParams) middleware.Responder
Handle executing the request and returning a response
type GetTaskTaskIDOK ¶
type GetTaskTaskIDOK struct { /* In: Body */ Payload *models.ResponseTask `json:"body,omitempty"` }
GetTaskTaskIDOK OK
swagger:response getTaskTaskIdOK
func NewGetTaskTaskIDOK ¶
func NewGetTaskTaskIDOK() *GetTaskTaskIDOK
NewGetTaskTaskIDOK creates GetTaskTaskIDOK with default headers values
func (*GetTaskTaskIDOK) SetPayload ¶
func (o *GetTaskTaskIDOK) SetPayload(payload *models.ResponseTask)
SetPayload sets the payload to the get task task Id o k response
func (*GetTaskTaskIDOK) WithPayload ¶
func (o *GetTaskTaskIDOK) WithPayload(payload *models.ResponseTask) *GetTaskTaskIDOK
WithPayload adds the payload to the get task task Id o k response
func (*GetTaskTaskIDOK) WriteResponse ¶
func (o *GetTaskTaskIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTaskTaskIDParams ¶
type GetTaskTaskIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ TaskID string }
GetTaskTaskIDParams contains all the bound params for the get task task ID operation typically these are obtained from a http.Request
swagger:parameters GetTaskTaskID
func NewGetTaskTaskIDParams ¶
func NewGetTaskTaskIDParams() GetTaskTaskIDParams
NewGetTaskTaskIDParams creates a new GetTaskTaskIDParams object no default values defined in spec.
func (*GetTaskTaskIDParams) BindRequest ¶
func (o *GetTaskTaskIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetTaskTaskIDParams() beforehand.
type GetTaskTaskIDURL ¶
type GetTaskTaskIDURL struct { TaskID string // contains filtered or unexported fields }
GetTaskTaskIDURL generates an URL for the get task task ID operation
func (*GetTaskTaskIDURL) Build ¶
func (o *GetTaskTaskIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetTaskTaskIDURL) BuildFull ¶
func (o *GetTaskTaskIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetTaskTaskIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetTaskTaskIDURL) SetBasePath ¶
func (o *GetTaskTaskIDURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetTaskTaskIDURL) String ¶
func (o *GetTaskTaskIDURL) String() string
String returns the string representation of the path with query string
func (*GetTaskTaskIDURL) StringFull ¶
func (o *GetTaskTaskIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetTaskTaskIDURL) WithBasePath ¶
func (o *GetTaskTaskIDURL) WithBasePath(bp string) *GetTaskTaskIDURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string