Documentation ¶
Index ¶
- type AddCommentToTask
- type AddCommentToTaskBody
- type AddCommentToTaskCreated
- type AddCommentToTaskDefault
- type AddCommentToTaskHandler
- type AddCommentToTaskHandlerFunc
- type AddCommentToTaskParams
- type CreateTask
- type CreateTaskCreated
- type CreateTaskDefault
- type CreateTaskHandler
- type CreateTaskHandlerFunc
- type CreateTaskParams
- type DeleteTask
- type DeleteTaskDefault
- type DeleteTaskHandler
- type DeleteTaskHandlerFunc
- type DeleteTaskNoContent
- type DeleteTaskParams
- type GetTaskComments
- type GetTaskCommentsDefault
- type GetTaskCommentsHandler
- type GetTaskCommentsHandlerFunc
- type GetTaskCommentsOK
- type GetTaskCommentsParams
- type GetTaskDetails
- type GetTaskDetailsDefault
- type GetTaskDetailsHandler
- type GetTaskDetailsHandlerFunc
- type GetTaskDetailsOK
- type GetTaskDetailsParams
- type GetTaskDetailsUnprocessableEntity
- type ListTasks
- type ListTasksDefault
- type ListTasksHandler
- type ListTasksHandlerFunc
- type ListTasksOK
- type ListTasksParams
- type ListTasksUnprocessableEntity
- type UpdateTask
- type UpdateTaskDefault
- type UpdateTaskHandler
- type UpdateTaskHandlerFunc
- type UpdateTaskOK
- type UpdateTaskParams
- type UpdateTaskUnprocessableEntity
- type UploadTaskFile
- type UploadTaskFileCreated
- type UploadTaskFileDefault
- type UploadTaskFileHandler
- type UploadTaskFileHandlerFunc
- type UploadTaskFileParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddCommentToTask ¶
type AddCommentToTask struct { Context *middleware.Context Handler AddCommentToTaskHandler }
AddCommentToTask swagger:route POST /tasks/{id}/comments tasks addCommentToTask
Adds a comment to a task ¶
The comment can contain ___github markdown___ syntax. Fenced codeblocks etc are supported through pygments.
func NewAddCommentToTask ¶
func NewAddCommentToTask(ctx *middleware.Context, handler AddCommentToTaskHandler) *AddCommentToTask
NewAddCommentToTask creates a new http.Handler for the add comment to task operation
func (*AddCommentToTask) ServeHTTP ¶
func (o *AddCommentToTask) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AddCommentToTaskBody ¶
type AddCommentToTaskBody struct { /* Content content Required: true */ Content string `json:"content,omitempty"` /* UserID user id Required: true */ UserID int64 `json:"userId,omitempty"` }
AddCommentToTaskBody A comment to create
These values can have github flavored markdown.
swagger:model AddCommentToTaskBody
type AddCommentToTaskCreated ¶
type AddCommentToTaskCreated struct { }
AddCommentToTaskCreated Comment added
swagger:response addCommentToTaskCreated
func NewAddCommentToTaskCreated ¶
func NewAddCommentToTaskCreated() *AddCommentToTaskCreated
NewAddCommentToTaskCreated creates AddCommentToTaskCreated with default headers values
func (*AddCommentToTaskCreated) WriteResponse ¶
func (o *AddCommentToTaskCreated) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type AddCommentToTaskDefault ¶
type AddCommentToTaskDefault struct {
// contains filtered or unexported fields
}
AddCommentToTaskDefault add comment to task default
swagger:response addCommentToTaskDefault
func NewAddCommentToTaskDefault ¶
func NewAddCommentToTaskDefault(code int) *AddCommentToTaskDefault
NewAddCommentToTaskDefault creates AddCommentToTaskDefault with default headers values
func (*AddCommentToTaskDefault) WithStatusCode ¶
func (o *AddCommentToTaskDefault) WithStatusCode(code int) *AddCommentToTaskDefault
WithStatusCode adds the status to the add comment to task default response
func (*AddCommentToTaskDefault) WriteResponse ¶
func (o *AddCommentToTaskDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type AddCommentToTaskHandler ¶
type AddCommentToTaskHandler interface {
Handle(AddCommentToTaskParams, interface{}) middleware.Responder
}
AddCommentToTaskHandler interface for that can handle valid add comment to task params
type AddCommentToTaskHandlerFunc ¶
type AddCommentToTaskHandlerFunc func(AddCommentToTaskParams, interface{}) middleware.Responder
AddCommentToTaskHandlerFunc turns a function with the right signature into a add comment to task handler
func (AddCommentToTaskHandlerFunc) Handle ¶
func (fn AddCommentToTaskHandlerFunc) Handle(params AddCommentToTaskParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type AddCommentToTaskParams ¶
type AddCommentToTaskParams struct { /*The comment to add In: body */ Body AddCommentToTaskBody /*The id of the item Required: true In: path */ ID int64 }
AddCommentToTaskParams contains all the bound params for the add comment to task operation typically these are obtained from a http.Request
swagger:parameters addCommentToTask
func NewAddCommentToTaskParams ¶
func NewAddCommentToTaskParams() AddCommentToTaskParams
NewAddCommentToTaskParams creates a new AddCommentToTaskParams object with the default values initialized.
func (*AddCommentToTaskParams) BindRequest ¶
func (o *AddCommentToTaskParams) 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
type CreateTask ¶
type CreateTask struct { Context *middleware.Context Handler CreateTaskHandler }
CreateTask swagger:route POST /tasks tasks createTask
Creates a 'Task' object.
Allows for creating a task. This operation requires authentication so that we know which user created the task.
func NewCreateTask ¶
func NewCreateTask(ctx *middleware.Context, handler CreateTaskHandler) *CreateTask
NewCreateTask creates a new http.Handler for the create task operation
func (*CreateTask) ServeHTTP ¶
func (o *CreateTask) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateTaskCreated ¶
type CreateTaskCreated struct { }
CreateTaskCreated Task created
swagger:response createTaskCreated
func NewCreateTaskCreated ¶
func NewCreateTaskCreated() *CreateTaskCreated
NewCreateTaskCreated creates CreateTaskCreated with default headers values
func (*CreateTaskCreated) WriteResponse ¶
func (o *CreateTaskCreated) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type CreateTaskDefault ¶
type CreateTaskDefault struct {
// contains filtered or unexported fields
}
CreateTaskDefault create task default
swagger:response createTaskDefault
func NewCreateTaskDefault ¶
func NewCreateTaskDefault(code int) *CreateTaskDefault
NewCreateTaskDefault creates CreateTaskDefault with default headers values
func (*CreateTaskDefault) WithStatusCode ¶
func (o *CreateTaskDefault) WithStatusCode(code int) *CreateTaskDefault
WithStatusCode adds the status to the create task default response
func (*CreateTaskDefault) WriteResponse ¶
func (o *CreateTaskDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type CreateTaskHandler ¶
type CreateTaskHandler interface {
Handle(CreateTaskParams, interface{}) middleware.Responder
}
CreateTaskHandler interface for that can handle valid create task params
type CreateTaskHandlerFunc ¶
type CreateTaskHandlerFunc func(CreateTaskParams, interface{}) middleware.Responder
CreateTaskHandlerFunc turns a function with the right signature into a create task handler
func (CreateTaskHandlerFunc) Handle ¶
func (fn CreateTaskHandlerFunc) Handle(params CreateTaskParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateTaskParams ¶
CreateTaskParams contains all the bound params for the create task operation typically these are obtained from a http.Request
swagger:parameters createTask
func NewCreateTaskParams ¶
func NewCreateTaskParams() CreateTaskParams
NewCreateTaskParams creates a new CreateTaskParams object with the default values initialized.
func (*CreateTaskParams) BindRequest ¶
func (o *CreateTaskParams) 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
type DeleteTask ¶
type DeleteTask struct { Context *middleware.Context Handler DeleteTaskHandler }
DeleteTask swagger:route DELETE /tasks/{id} tasks deleteTask
Deletes a task.
This is a soft delete and changes the task status to ignored.
func NewDeleteTask ¶
func NewDeleteTask(ctx *middleware.Context, handler DeleteTaskHandler) *DeleteTask
NewDeleteTask creates a new http.Handler for the delete task operation
func (*DeleteTask) ServeHTTP ¶
func (o *DeleteTask) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteTaskDefault ¶
type DeleteTaskDefault struct {
// contains filtered or unexported fields
}
DeleteTaskDefault delete task default
swagger:response deleteTaskDefault
func NewDeleteTaskDefault ¶
func NewDeleteTaskDefault(code int) *DeleteTaskDefault
NewDeleteTaskDefault creates DeleteTaskDefault with default headers values
func (*DeleteTaskDefault) WithStatusCode ¶
func (o *DeleteTaskDefault) WithStatusCode(code int) *DeleteTaskDefault
WithStatusCode adds the status to the delete task default response
func (*DeleteTaskDefault) WriteResponse ¶
func (o *DeleteTaskDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type DeleteTaskHandler ¶
type DeleteTaskHandler interface {
Handle(DeleteTaskParams, interface{}) middleware.Responder
}
DeleteTaskHandler interface for that can handle valid delete task params
type DeleteTaskHandlerFunc ¶
type DeleteTaskHandlerFunc func(DeleteTaskParams, interface{}) middleware.Responder
DeleteTaskHandlerFunc turns a function with the right signature into a delete task handler
func (DeleteTaskHandlerFunc) Handle ¶
func (fn DeleteTaskHandlerFunc) Handle(params DeleteTaskParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteTaskNoContent ¶
type DeleteTaskNoContent struct { }
DeleteTaskNoContent Task deleted
swagger:response deleteTaskNoContent
func NewDeleteTaskNoContent ¶
func NewDeleteTaskNoContent() *DeleteTaskNoContent
NewDeleteTaskNoContent creates DeleteTaskNoContent with default headers values
func (*DeleteTaskNoContent) WriteResponse ¶
func (o *DeleteTaskNoContent) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type DeleteTaskParams ¶
type DeleteTaskParams struct { /*The id of the item Required: true In: path */ ID int64 }
DeleteTaskParams contains all the bound params for the delete task operation typically these are obtained from a http.Request
swagger:parameters deleteTask
func NewDeleteTaskParams ¶
func NewDeleteTaskParams() DeleteTaskParams
NewDeleteTaskParams creates a new DeleteTaskParams object with the default values initialized.
func (*DeleteTaskParams) BindRequest ¶
func (o *DeleteTaskParams) 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
type GetTaskComments ¶
type GetTaskComments struct { Context *middleware.Context Handler GetTaskCommentsHandler }
GetTaskComments swagger:route GET /tasks/{id}/comments tasks getTaskComments
Gets the comments for a task ¶
The comments require a size parameter.
func NewGetTaskComments ¶
func NewGetTaskComments(ctx *middleware.Context, handler GetTaskCommentsHandler) *GetTaskComments
NewGetTaskComments creates a new http.Handler for the get task comments operation
func (*GetTaskComments) ServeHTTP ¶
func (o *GetTaskComments) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetTaskCommentsDefault ¶
type GetTaskCommentsDefault struct {
// contains filtered or unexported fields
}
GetTaskCommentsDefault get task comments default
swagger:response getTaskCommentsDefault
func NewGetTaskCommentsDefault ¶
func NewGetTaskCommentsDefault(code int) *GetTaskCommentsDefault
NewGetTaskCommentsDefault creates GetTaskCommentsDefault with default headers values
func (*GetTaskCommentsDefault) WithStatusCode ¶
func (o *GetTaskCommentsDefault) WithStatusCode(code int) *GetTaskCommentsDefault
WithStatusCode adds the status to the get task comments default response
func (*GetTaskCommentsDefault) WriteResponse ¶
func (o *GetTaskCommentsDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type GetTaskCommentsHandler ¶
type GetTaskCommentsHandler interface {
Handle(GetTaskCommentsParams) middleware.Responder
}
GetTaskCommentsHandler interface for that can handle valid get task comments params
type GetTaskCommentsHandlerFunc ¶
type GetTaskCommentsHandlerFunc func(GetTaskCommentsParams) middleware.Responder
GetTaskCommentsHandlerFunc turns a function with the right signature into a get task comments handler
func (GetTaskCommentsHandlerFunc) Handle ¶
func (fn GetTaskCommentsHandlerFunc) Handle(params GetTaskCommentsParams) middleware.Responder
Handle executing the request and returning a response
type GetTaskCommentsOK ¶
GetTaskCommentsOK The list of comments
swagger:response getTaskCommentsOK
func NewGetTaskCommentsOK ¶
func NewGetTaskCommentsOK() *GetTaskCommentsOK
NewGetTaskCommentsOK creates GetTaskCommentsOK with default headers values
func (*GetTaskCommentsOK) WithPayload ¶
func (o *GetTaskCommentsOK) WithPayload(payload []*models.Comment) *GetTaskCommentsOK
WithPayload adds the payload to the get task comments o k response
func (*GetTaskCommentsOK) WriteResponse ¶
func (o *GetTaskCommentsOK) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type GetTaskCommentsParams ¶
type GetTaskCommentsParams struct { /*The id of the item Required: true In: path */ ID int64 /*Amount of items to return in a single page In: query Default: 20 */ PageSize *int32 /*The created time of the oldest seen comment In: query */ Since *strfmt.DateTime }
GetTaskCommentsParams contains all the bound params for the get task comments operation typically these are obtained from a http.Request
swagger:parameters getTaskComments
func NewGetTaskCommentsParams ¶
func NewGetTaskCommentsParams() GetTaskCommentsParams
NewGetTaskCommentsParams creates a new GetTaskCommentsParams object with the default values initialized.
func (*GetTaskCommentsParams) BindRequest ¶
func (o *GetTaskCommentsParams) 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
type GetTaskDetails ¶
type GetTaskDetails struct { Context *middleware.Context Handler GetTaskDetailsHandler }
GetTaskDetails swagger:route GET /tasks/{id} tasks getTaskDetails
Gets the details for a task.
The details view has more information than the card view. You can see who reported the issue and who last updated it when.
There are also comments for each issue.
func NewGetTaskDetails ¶
func NewGetTaskDetails(ctx *middleware.Context, handler GetTaskDetailsHandler) *GetTaskDetails
NewGetTaskDetails creates a new http.Handler for the get task details operation
func (*GetTaskDetails) ServeHTTP ¶
func (o *GetTaskDetails) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetTaskDetailsDefault ¶
type GetTaskDetailsDefault struct {
// contains filtered or unexported fields
}
GetTaskDetailsDefault get task details default
swagger:response getTaskDetailsDefault
func NewGetTaskDetailsDefault ¶
func NewGetTaskDetailsDefault(code int) *GetTaskDetailsDefault
NewGetTaskDetailsDefault creates GetTaskDetailsDefault with default headers values
func (*GetTaskDetailsDefault) WithStatusCode ¶
func (o *GetTaskDetailsDefault) WithStatusCode(code int) *GetTaskDetailsDefault
WithStatusCode adds the status to the get task details default response
func (*GetTaskDetailsDefault) WriteResponse ¶
func (o *GetTaskDetailsDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type GetTaskDetailsHandler ¶
type GetTaskDetailsHandler interface {
Handle(GetTaskDetailsParams) middleware.Responder
}
GetTaskDetailsHandler interface for that can handle valid get task details params
type GetTaskDetailsHandlerFunc ¶
type GetTaskDetailsHandlerFunc func(GetTaskDetailsParams) middleware.Responder
GetTaskDetailsHandlerFunc turns a function with the right signature into a get task details handler
func (GetTaskDetailsHandlerFunc) Handle ¶
func (fn GetTaskDetailsHandlerFunc) Handle(params GetTaskDetailsParams) middleware.Responder
Handle executing the request and returning a response
type GetTaskDetailsOK ¶
GetTaskDetailsOK Task details
swagger:response getTaskDetailsOK
func NewGetTaskDetailsOK ¶
func NewGetTaskDetailsOK() *GetTaskDetailsOK
NewGetTaskDetailsOK creates GetTaskDetailsOK with default headers values
func (*GetTaskDetailsOK) WithPayload ¶
func (o *GetTaskDetailsOK) WithPayload(payload *models.Task) *GetTaskDetailsOK
WithPayload adds the payload to the get task details o k response
func (*GetTaskDetailsOK) WriteResponse ¶
func (o *GetTaskDetailsOK) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type GetTaskDetailsParams ¶
type GetTaskDetailsParams struct { /*The id of the item Required: true In: path */ ID int64 }
GetTaskDetailsParams contains all the bound params for the get task details operation typically these are obtained from a http.Request
swagger:parameters getTaskDetails
func NewGetTaskDetailsParams ¶
func NewGetTaskDetailsParams() GetTaskDetailsParams
NewGetTaskDetailsParams creates a new GetTaskDetailsParams object with the default values initialized.
func (*GetTaskDetailsParams) BindRequest ¶
func (o *GetTaskDetailsParams) 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
type GetTaskDetailsUnprocessableEntity ¶
type GetTaskDetailsUnprocessableEntity struct { // In: body Payload *models.ValidationError `json:"body,omitempty"` }
GetTaskDetailsUnprocessableEntity Validation error
swagger:response getTaskDetailsUnprocessableEntity
func NewGetTaskDetailsUnprocessableEntity ¶
func NewGetTaskDetailsUnprocessableEntity() *GetTaskDetailsUnprocessableEntity
NewGetTaskDetailsUnprocessableEntity creates GetTaskDetailsUnprocessableEntity with default headers values
func (*GetTaskDetailsUnprocessableEntity) WithPayload ¶
func (o *GetTaskDetailsUnprocessableEntity) WithPayload(payload *models.ValidationError) *GetTaskDetailsUnprocessableEntity
WithPayload adds the payload to the get task details unprocessable entity response
func (*GetTaskDetailsUnprocessableEntity) WriteResponse ¶
func (o *GetTaskDetailsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type ListTasks ¶
type ListTasks struct { Context *middleware.Context Handler ListTasksHandler }
ListTasks swagger:route GET /tasks tasks listTasks
Lists the tasks ¶
Allows for specifying a number of filter parameters to narrow down the results. Also allows for specifying a **sinceId** and **pageSize** parameter to page through large result sets.
func NewListTasks ¶
func NewListTasks(ctx *middleware.Context, handler ListTasksHandler) *ListTasks
NewListTasks creates a new http.Handler for the list tasks operation
type ListTasksDefault ¶
type ListTasksDefault struct {
// contains filtered or unexported fields
}
ListTasksDefault list tasks default
swagger:response listTasksDefault
func NewListTasksDefault ¶
func NewListTasksDefault(code int) *ListTasksDefault
NewListTasksDefault creates ListTasksDefault with default headers values
func (*ListTasksDefault) WithStatusCode ¶
func (o *ListTasksDefault) WithStatusCode(code int) *ListTasksDefault
WithStatusCode adds the status to the list tasks default response
func (*ListTasksDefault) WriteResponse ¶
func (o *ListTasksDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type ListTasksHandler ¶
type ListTasksHandler interface {
Handle(ListTasksParams) middleware.Responder
}
ListTasksHandler interface for that can handle valid list tasks params
type ListTasksHandlerFunc ¶
type ListTasksHandlerFunc func(ListTasksParams) middleware.Responder
ListTasksHandlerFunc turns a function with the right signature into a list tasks handler
func (ListTasksHandlerFunc) Handle ¶
func (fn ListTasksHandlerFunc) Handle(params ListTasksParams) middleware.Responder
Handle executing the request and returning a response
type ListTasksOK ¶
type ListTasksOK struct { /*the last task id known to the application Required: true */ XLastTaskID int64 `json:"X-Last-Task-Id,omitempty"` // In: body Payload []*models.TaskCard `json:"body,omitempty"` }
ListTasksOK Successful response
swagger:response listTasksOK
func NewListTasksOK ¶
func NewListTasksOK() *ListTasksOK
NewListTasksOK creates ListTasksOK with default headers values
func (*ListTasksOK) WithPayload ¶
func (o *ListTasksOK) WithPayload(payload []*models.TaskCard) *ListTasksOK
WithPayload adds the payload to the list tasks o k response
func (*ListTasksOK) WithXLastTaskID ¶
func (o *ListTasksOK) WithXLastTaskID(xLastTaskId int64) *ListTasksOK
WithXLastTaskID adds the xLastTaskId to the list tasks o k response
func (*ListTasksOK) WriteResponse ¶
func (o *ListTasksOK) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type ListTasksParams ¶
type ListTasksParams struct { /*Amount of items to return in a single page In: query Default: 20 */ PageSize *int32 /*The last id that was seen. In: query */ SinceID *int64 /*the status to filter by Unique: true In: query Collection Format: pipes */ Status []string /*the tags to filter by Unique: true In: query */ Tags []string }
ListTasksParams contains all the bound params for the list tasks operation typically these are obtained from a http.Request
swagger:parameters listTasks
func NewListTasksParams ¶
func NewListTasksParams() ListTasksParams
NewListTasksParams creates a new ListTasksParams object with the default values initialized.
func (*ListTasksParams) BindRequest ¶
func (o *ListTasksParams) 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
type ListTasksUnprocessableEntity ¶
type ListTasksUnprocessableEntity struct { // In: body Payload *models.ValidationError `json:"body,omitempty"` }
ListTasksUnprocessableEntity Validation error
swagger:response listTasksUnprocessableEntity
func NewListTasksUnprocessableEntity ¶
func NewListTasksUnprocessableEntity() *ListTasksUnprocessableEntity
NewListTasksUnprocessableEntity creates ListTasksUnprocessableEntity with default headers values
func (*ListTasksUnprocessableEntity) WithPayload ¶
func (o *ListTasksUnprocessableEntity) WithPayload(payload *models.ValidationError) *ListTasksUnprocessableEntity
WithPayload adds the payload to the list tasks unprocessable entity response
func (*ListTasksUnprocessableEntity) WriteResponse ¶
func (o *ListTasksUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type UpdateTask ¶
type UpdateTask struct { Context *middleware.Context Handler UpdateTaskHandler }
UpdateTask swagger:route PUT /tasks/{id} tasks updateTask
Updates the details for a task.
Allows for updating a task. This operation requires authentication so that we know which user last updated the task.
func NewUpdateTask ¶
func NewUpdateTask(ctx *middleware.Context, handler UpdateTaskHandler) *UpdateTask
NewUpdateTask creates a new http.Handler for the update task operation
func (*UpdateTask) ServeHTTP ¶
func (o *UpdateTask) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateTaskDefault ¶
type UpdateTaskDefault struct {
// contains filtered or unexported fields
}
UpdateTaskDefault update task default
swagger:response updateTaskDefault
func NewUpdateTaskDefault ¶
func NewUpdateTaskDefault(code int) *UpdateTaskDefault
NewUpdateTaskDefault creates UpdateTaskDefault with default headers values
func (*UpdateTaskDefault) WithStatusCode ¶
func (o *UpdateTaskDefault) WithStatusCode(code int) *UpdateTaskDefault
WithStatusCode adds the status to the update task default response
func (*UpdateTaskDefault) WriteResponse ¶
func (o *UpdateTaskDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type UpdateTaskHandler ¶
type UpdateTaskHandler interface {
Handle(UpdateTaskParams, interface{}) middleware.Responder
}
UpdateTaskHandler interface for that can handle valid update task params
type UpdateTaskHandlerFunc ¶
type UpdateTaskHandlerFunc func(UpdateTaskParams, interface{}) middleware.Responder
UpdateTaskHandlerFunc turns a function with the right signature into a update task handler
func (UpdateTaskHandlerFunc) Handle ¶
func (fn UpdateTaskHandlerFunc) Handle(params UpdateTaskParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type UpdateTaskOK ¶
UpdateTaskOK Task details
swagger:response updateTaskOK
func NewUpdateTaskOK ¶
func NewUpdateTaskOK() *UpdateTaskOK
NewUpdateTaskOK creates UpdateTaskOK with default headers values
func (*UpdateTaskOK) WithPayload ¶
func (o *UpdateTaskOK) WithPayload(payload *models.Task) *UpdateTaskOK
WithPayload adds the payload to the update task o k response
func (*UpdateTaskOK) WriteResponse ¶
func (o *UpdateTaskOK) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type UpdateTaskParams ¶
type UpdateTaskParams struct { /*The task to update Required: true In: body */ Body *models.Task /*The id of the item Required: true In: path */ ID int64 }
UpdateTaskParams contains all the bound params for the update task operation typically these are obtained from a http.Request
swagger:parameters updateTask
func NewUpdateTaskParams ¶
func NewUpdateTaskParams() UpdateTaskParams
NewUpdateTaskParams creates a new UpdateTaskParams object with the default values initialized.
func (*UpdateTaskParams) BindRequest ¶
func (o *UpdateTaskParams) 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
type UpdateTaskUnprocessableEntity ¶
type UpdateTaskUnprocessableEntity struct { // In: body Payload *models.ValidationError `json:"body,omitempty"` }
UpdateTaskUnprocessableEntity Validation error
swagger:response updateTaskUnprocessableEntity
func NewUpdateTaskUnprocessableEntity ¶
func NewUpdateTaskUnprocessableEntity() *UpdateTaskUnprocessableEntity
NewUpdateTaskUnprocessableEntity creates UpdateTaskUnprocessableEntity with default headers values
func (*UpdateTaskUnprocessableEntity) WithPayload ¶
func (o *UpdateTaskUnprocessableEntity) WithPayload(payload *models.ValidationError) *UpdateTaskUnprocessableEntity
WithPayload adds the payload to the update task unprocessable entity response
func (*UpdateTaskUnprocessableEntity) WriteResponse ¶
func (o *UpdateTaskUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type UploadTaskFile ¶
type UploadTaskFile struct { Context *middleware.Context Handler UploadTaskFileHandler }
UploadTaskFile swagger:route POST /tasks/{id}/files tasks uploadTaskFile
Adds a file to a task.
The file can't be larger than **5MB**
func NewUploadTaskFile ¶
func NewUploadTaskFile(ctx *middleware.Context, handler UploadTaskFileHandler) *UploadTaskFile
NewUploadTaskFile creates a new http.Handler for the upload task file operation
func (*UploadTaskFile) ServeHTTP ¶
func (o *UploadTaskFile) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UploadTaskFileCreated ¶
type UploadTaskFileCreated struct { }
UploadTaskFileCreated File added
swagger:response uploadTaskFileCreated
func NewUploadTaskFileCreated ¶
func NewUploadTaskFileCreated() *UploadTaskFileCreated
NewUploadTaskFileCreated creates UploadTaskFileCreated with default headers values
func (*UploadTaskFileCreated) WriteResponse ¶
func (o *UploadTaskFileCreated) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type UploadTaskFileDefault ¶
type UploadTaskFileDefault struct {
// contains filtered or unexported fields
}
UploadTaskFileDefault upload task file default
swagger:response uploadTaskFileDefault
func NewUploadTaskFileDefault ¶
func NewUploadTaskFileDefault(code int) *UploadTaskFileDefault
NewUploadTaskFileDefault creates UploadTaskFileDefault with default headers values
func (*UploadTaskFileDefault) WithStatusCode ¶
func (o *UploadTaskFileDefault) WithStatusCode(code int) *UploadTaskFileDefault
WithStatusCode adds the status to the upload task file default response
func (*UploadTaskFileDefault) WriteResponse ¶
func (o *UploadTaskFileDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)
WriteResponse to the client
type UploadTaskFileHandler ¶
type UploadTaskFileHandler interface {
Handle(UploadTaskFileParams, interface{}) middleware.Responder
}
UploadTaskFileHandler interface for that can handle valid upload task file params
type UploadTaskFileHandlerFunc ¶
type UploadTaskFileHandlerFunc func(UploadTaskFileParams, interface{}) middleware.Responder
UploadTaskFileHandlerFunc turns a function with the right signature into a upload task file handler
func (UploadTaskFileHandlerFunc) Handle ¶
func (fn UploadTaskFileHandlerFunc) Handle(params UploadTaskFileParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type UploadTaskFileParams ¶
type UploadTaskFileParams struct { /*Extra information describing the file In: formData */ Description *string /*The file to upload In: formData */ File httpkit.File /*The id of the item Required: true In: path */ ID int64 }
UploadTaskFileParams contains all the bound params for the upload task file operation typically these are obtained from a http.Request
swagger:parameters uploadTaskFile
func NewUploadTaskFileParams ¶
func NewUploadTaskFileParams() UploadTaskFileParams
NewUploadTaskFileParams creates a new UploadTaskFileParams object with the default values initialized.
func (*UploadTaskFileParams) BindRequest ¶
func (o *UploadTaskFileParams) 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
Source Files ¶
- add_comment_to_task.go
- add_comment_to_task_parameters.go
- add_comment_to_task_responses.go
- create_task.go
- create_task_parameters.go
- create_task_responses.go
- delete_task.go
- delete_task_parameters.go
- delete_task_responses.go
- get_task_comments.go
- get_task_comments_parameters.go
- get_task_comments_responses.go
- get_task_details.go
- get_task_details_parameters.go
- get_task_details_responses.go
- list_tasks.go
- list_tasks_parameters.go
- list_tasks_responses.go
- update_task.go
- update_task_parameters.go
- update_task_responses.go
- upload_task_file.go
- upload_task_file_parameters.go
- upload_task_file_responses.go