tasks

package
v0.0.0-...-8602d06 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

	Required: true
	*/
	Content *string `json:"content"`

	/* user Id

	Required: true
	*/
	UserID *int64 `json:"userId"`
}

AddCommentToTaskBody A comment to create

These values can have github flavored markdown.

swagger:model AddCommentToTaskBody

func (*AddCommentToTaskBody) Validate

func (o *AddCommentToTaskBody) Validate(formats strfmt.Registry) error

Validate validates this add comment to task body

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 runtime.Producer)

WriteResponse to the client

type AddCommentToTaskDefault

type AddCommentToTaskDefault struct {

	/*
	  Required: true
	*/
	XErrorCode string `json:"X-Error-Code"`

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

AddCommentToTaskDefault Error response

swagger:response addCommentToTaskDefault

func NewAddCommentToTaskDefault

func NewAddCommentToTaskDefault(code int) *AddCommentToTaskDefault

NewAddCommentToTaskDefault creates AddCommentToTaskDefault with default headers values

func (*AddCommentToTaskDefault) SetPayload

func (o *AddCommentToTaskDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the add comment to task default response

func (*AddCommentToTaskDefault) SetStatusCode

func (o *AddCommentToTaskDefault) SetStatusCode(code int)

SetStatusCode sets the status to the add comment to task default response

func (*AddCommentToTaskDefault) SetXErrorCode

func (o *AddCommentToTaskDefault) SetXErrorCode(xErrorCode string)

SetXErrorCode sets the xErrorCode to the add comment to task default response

func (*AddCommentToTaskDefault) WithPayload

func (o *AddCommentToTaskDefault) WithPayload(payload *models.Error) *AddCommentToTaskDefault

WithPayload adds the payload to the add comment to task default response

func (*AddCommentToTaskDefault) WithStatusCode

func (o *AddCommentToTaskDefault) WithStatusCode(code int) *AddCommentToTaskDefault

WithStatusCode adds the status to the add comment to task default response

func (*AddCommentToTaskDefault) WithXErrorCode

func (o *AddCommentToTaskDefault) WithXErrorCode(xErrorCode string) *AddCommentToTaskDefault

WithXErrorCode adds the xErrorCode to the add comment to task default response

func (*AddCommentToTaskDefault) WriteResponse

func (o *AddCommentToTaskDefault) WriteResponse(rw http.ResponseWriter, producer runtime.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 {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*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 runtime.Producer)

WriteResponse to the client

type CreateTaskDefault

type CreateTaskDefault struct {

	/*
	  Required: true
	*/
	XErrorCode string `json:"X-Error-Code"`

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

CreateTaskDefault Error response

swagger:response createTaskDefault

func NewCreateTaskDefault

func NewCreateTaskDefault(code int) *CreateTaskDefault

NewCreateTaskDefault creates CreateTaskDefault with default headers values

func (*CreateTaskDefault) SetPayload

func (o *CreateTaskDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the create task default response

func (*CreateTaskDefault) SetStatusCode

func (o *CreateTaskDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create task default response

func (*CreateTaskDefault) SetXErrorCode

func (o *CreateTaskDefault) SetXErrorCode(xErrorCode string)

SetXErrorCode sets the xErrorCode to the create task default response

func (*CreateTaskDefault) WithPayload

func (o *CreateTaskDefault) WithPayload(payload *models.Error) *CreateTaskDefault

WithPayload adds the payload to the create task default response

func (*CreateTaskDefault) WithStatusCode

func (o *CreateTaskDefault) WithStatusCode(code int) *CreateTaskDefault

WithStatusCode adds the status to the create task default response

func (*CreateTaskDefault) WithXErrorCode

func (o *CreateTaskDefault) WithXErrorCode(xErrorCode string) *CreateTaskDefault

WithXErrorCode adds the xErrorCode to the create task default response

func (*CreateTaskDefault) WriteResponse

func (o *CreateTaskDefault) WriteResponse(rw http.ResponseWriter, producer runtime.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

type CreateTaskParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*The task to create
	  Required: true
	  In: body
	*/
	Body *models.Task
}

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 {

	/*
	  Required: true
	*/
	XErrorCode string `json:"X-Error-Code"`

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DeleteTaskDefault Error response

swagger:response deleteTaskDefault

func NewDeleteTaskDefault

func NewDeleteTaskDefault(code int) *DeleteTaskDefault

NewDeleteTaskDefault creates DeleteTaskDefault with default headers values

func (*DeleteTaskDefault) SetPayload

func (o *DeleteTaskDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete task default response

func (*DeleteTaskDefault) SetStatusCode

func (o *DeleteTaskDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete task default response

func (*DeleteTaskDefault) SetXErrorCode

func (o *DeleteTaskDefault) SetXErrorCode(xErrorCode string)

SetXErrorCode sets the xErrorCode to the delete task default response

func (*DeleteTaskDefault) WithPayload

func (o *DeleteTaskDefault) WithPayload(payload *models.Error) *DeleteTaskDefault

WithPayload adds the payload to the delete task default response

func (*DeleteTaskDefault) WithStatusCode

func (o *DeleteTaskDefault) WithStatusCode(code int) *DeleteTaskDefault

WithStatusCode adds the status to the delete task default response

func (*DeleteTaskDefault) WithXErrorCode

func (o *DeleteTaskDefault) WithXErrorCode(xErrorCode string) *DeleteTaskDefault

WithXErrorCode adds the xErrorCode to the delete task default response

func (*DeleteTaskDefault) WriteResponse

func (o *DeleteTaskDefault) WriteResponse(rw http.ResponseWriter, producer runtime.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 runtime.Producer)

WriteResponse to the client

type DeleteTaskParams

type DeleteTaskParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*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 {

	/*
	  Required: true
	*/
	XErrorCode string `json:"X-Error-Code"`

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetTaskCommentsDefault Error response

swagger:response getTaskCommentsDefault

func NewGetTaskCommentsDefault

func NewGetTaskCommentsDefault(code int) *GetTaskCommentsDefault

NewGetTaskCommentsDefault creates GetTaskCommentsDefault with default headers values

func (*GetTaskCommentsDefault) SetPayload

func (o *GetTaskCommentsDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get task comments default response

func (*GetTaskCommentsDefault) SetStatusCode

func (o *GetTaskCommentsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get task comments default response

func (*GetTaskCommentsDefault) SetXErrorCode

func (o *GetTaskCommentsDefault) SetXErrorCode(xErrorCode string)

SetXErrorCode sets the xErrorCode to the get task comments default response

func (*GetTaskCommentsDefault) WithPayload

func (o *GetTaskCommentsDefault) WithPayload(payload *models.Error) *GetTaskCommentsDefault

WithPayload adds the payload to the get task comments default response

func (*GetTaskCommentsDefault) WithStatusCode

func (o *GetTaskCommentsDefault) WithStatusCode(code int) *GetTaskCommentsDefault

WithStatusCode adds the status to the get task comments default response

func (*GetTaskCommentsDefault) WithXErrorCode

func (o *GetTaskCommentsDefault) WithXErrorCode(xErrorCode string) *GetTaskCommentsDefault

WithXErrorCode adds the xErrorCode to the get task comments default response

func (*GetTaskCommentsDefault) WriteResponse

func (o *GetTaskCommentsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.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

Handle executing the request and returning a response

type GetTaskCommentsOK

type GetTaskCommentsOK struct {

	// In: body
	Payload []*models.Comment `json:"body,omitempty"`
}

GetTaskCommentsOK The list of comments

swagger:response getTaskCommentsOK

func NewGetTaskCommentsOK

func NewGetTaskCommentsOK() *GetTaskCommentsOK

NewGetTaskCommentsOK creates GetTaskCommentsOK with default headers values

func (*GetTaskCommentsOK) SetPayload

func (o *GetTaskCommentsOK) SetPayload(payload []*models.Comment)

SetPayload sets the payload to the get task comments o k response

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 runtime.Producer)

WriteResponse to the client

type GetTaskCommentsParams

type GetTaskCommentsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*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 {

	/*
	  Required: true
	*/
	XErrorCode string `json:"X-Error-Code"`

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetTaskDetailsDefault Error response

swagger:response getTaskDetailsDefault

func NewGetTaskDetailsDefault

func NewGetTaskDetailsDefault(code int) *GetTaskDetailsDefault

NewGetTaskDetailsDefault creates GetTaskDetailsDefault with default headers values

func (*GetTaskDetailsDefault) SetPayload

func (o *GetTaskDetailsDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get task details default response

func (*GetTaskDetailsDefault) SetStatusCode

func (o *GetTaskDetailsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get task details default response

func (*GetTaskDetailsDefault) SetXErrorCode

func (o *GetTaskDetailsDefault) SetXErrorCode(xErrorCode string)

SetXErrorCode sets the xErrorCode to the get task details default response

func (*GetTaskDetailsDefault) WithPayload

func (o *GetTaskDetailsDefault) WithPayload(payload *models.Error) *GetTaskDetailsDefault

WithPayload adds the payload to the get task details default response

func (*GetTaskDetailsDefault) WithStatusCode

func (o *GetTaskDetailsDefault) WithStatusCode(code int) *GetTaskDetailsDefault

WithStatusCode adds the status to the get task details default response

func (*GetTaskDetailsDefault) WithXErrorCode

func (o *GetTaskDetailsDefault) WithXErrorCode(xErrorCode string) *GetTaskDetailsDefault

WithXErrorCode adds the xErrorCode to the get task details default response

func (*GetTaskDetailsDefault) WriteResponse

func (o *GetTaskDetailsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.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

Handle executing the request and returning a response

type GetTaskDetailsOK

type GetTaskDetailsOK struct {

	// In: body
	Payload *models.Task `json:"body,omitempty"`
}

GetTaskDetailsOK Task details

swagger:response getTaskDetailsOK

func NewGetTaskDetailsOK

func NewGetTaskDetailsOK() *GetTaskDetailsOK

NewGetTaskDetailsOK creates GetTaskDetailsOK with default headers values

func (*GetTaskDetailsOK) SetPayload

func (o *GetTaskDetailsOK) SetPayload(payload *models.Task)

SetPayload sets the payload to the get task details o k response

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 runtime.Producer)

WriteResponse to the client

type GetTaskDetailsParams

type GetTaskDetailsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*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) SetPayload

SetPayload sets the payload to the get task details unprocessable entity response

func (*GetTaskDetailsUnprocessableEntity) WithPayload

WithPayload adds the payload to the get task details unprocessable entity response

func (*GetTaskDetailsUnprocessableEntity) WriteResponse

func (o *GetTaskDetailsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.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

func (*ListTasks) ServeHTTP

func (o *ListTasks) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListTasksDefault

type ListTasksDefault struct {

	/*
	  Required: true
	*/
	XErrorCode string `json:"X-Error-Code"`

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

ListTasksDefault Error response

swagger:response listTasksDefault

func NewListTasksDefault

func NewListTasksDefault(code int) *ListTasksDefault

NewListTasksDefault creates ListTasksDefault with default headers values

func (*ListTasksDefault) SetPayload

func (o *ListTasksDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the list tasks default response

func (*ListTasksDefault) SetStatusCode

func (o *ListTasksDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list tasks default response

func (*ListTasksDefault) SetXErrorCode

func (o *ListTasksDefault) SetXErrorCode(xErrorCode string)

SetXErrorCode sets the xErrorCode to the list tasks default response

func (*ListTasksDefault) WithPayload

func (o *ListTasksDefault) WithPayload(payload *models.Error) *ListTasksDefault

WithPayload adds the payload to the list tasks default response

func (*ListTasksDefault) WithStatusCode

func (o *ListTasksDefault) WithStatusCode(code int) *ListTasksDefault

WithStatusCode adds the status to the list tasks default response

func (*ListTasksDefault) WithXErrorCode

func (o *ListTasksDefault) WithXErrorCode(xErrorCode string) *ListTasksDefault

WithXErrorCode adds the xErrorCode to the list tasks default response

func (*ListTasksDefault) WriteResponse

func (o *ListTasksDefault) WriteResponse(rw http.ResponseWriter, producer runtime.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

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"`

	// 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) SetPayload

func (o *ListTasksOK) SetPayload(payload []*models.TaskCard)

SetPayload sets the payload to the list tasks o k response

func (*ListTasksOK) SetXLastTaskID

func (o *ListTasksOK) SetXLastTaskID(xLastTaskID int64)

SetXLastTaskID sets the xLastTaskId to the list tasks o k response

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 runtime.Producer)

WriteResponse to the client

type ListTasksParams

type ListTasksParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*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) SetPayload

func (o *ListTasksUnprocessableEntity) SetPayload(payload *models.ValidationError)

SetPayload sets the payload to the list tasks unprocessable entity response

func (*ListTasksUnprocessableEntity) WithPayload

WithPayload adds the payload to the list tasks unprocessable entity response

func (*ListTasksUnprocessableEntity) WriteResponse

func (o *ListTasksUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.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 {

	/*
	  Required: true
	*/
	XErrorCode string `json:"X-Error-Code"`

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

UpdateTaskDefault Error response

swagger:response updateTaskDefault

func NewUpdateTaskDefault

func NewUpdateTaskDefault(code int) *UpdateTaskDefault

NewUpdateTaskDefault creates UpdateTaskDefault with default headers values

func (*UpdateTaskDefault) SetPayload

func (o *UpdateTaskDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the update task default response

func (*UpdateTaskDefault) SetStatusCode

func (o *UpdateTaskDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update task default response

func (*UpdateTaskDefault) SetXErrorCode

func (o *UpdateTaskDefault) SetXErrorCode(xErrorCode string)

SetXErrorCode sets the xErrorCode to the update task default response

func (*UpdateTaskDefault) WithPayload

func (o *UpdateTaskDefault) WithPayload(payload *models.Error) *UpdateTaskDefault

WithPayload adds the payload to the update task default response

func (*UpdateTaskDefault) WithStatusCode

func (o *UpdateTaskDefault) WithStatusCode(code int) *UpdateTaskDefault

WithStatusCode adds the status to the update task default response

func (*UpdateTaskDefault) WithXErrorCode

func (o *UpdateTaskDefault) WithXErrorCode(xErrorCode string) *UpdateTaskDefault

WithXErrorCode adds the xErrorCode to the update task default response

func (*UpdateTaskDefault) WriteResponse

func (o *UpdateTaskDefault) WriteResponse(rw http.ResponseWriter, producer runtime.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

type UpdateTaskOK struct {

	// In: body
	Payload *models.Task `json:"body,omitempty"`
}

UpdateTaskOK Task details

swagger:response updateTaskOK

func NewUpdateTaskOK

func NewUpdateTaskOK() *UpdateTaskOK

NewUpdateTaskOK creates UpdateTaskOK with default headers values

func (*UpdateTaskOK) SetPayload

func (o *UpdateTaskOK) SetPayload(payload *models.Task)

SetPayload sets the payload to the update task o k response

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 runtime.Producer)

WriteResponse to the client

type UpdateTaskParams

type UpdateTaskParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*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) SetPayload

func (o *UpdateTaskUnprocessableEntity) SetPayload(payload *models.ValidationError)

SetPayload sets the payload to the update task unprocessable entity response

func (*UpdateTaskUnprocessableEntity) WithPayload

WithPayload adds the payload to the update task unprocessable entity response

func (*UpdateTaskUnprocessableEntity) WriteResponse

func (o *UpdateTaskUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.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 runtime.Producer)

WriteResponse to the client

type UploadTaskFileDefault

type UploadTaskFileDefault struct {

	/*
	  Required: true
	*/
	XErrorCode string `json:"X-Error-Code"`

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

UploadTaskFileDefault Error response

swagger:response uploadTaskFileDefault

func NewUploadTaskFileDefault

func NewUploadTaskFileDefault(code int) *UploadTaskFileDefault

NewUploadTaskFileDefault creates UploadTaskFileDefault with default headers values

func (*UploadTaskFileDefault) SetPayload

func (o *UploadTaskFileDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the upload task file default response

func (*UploadTaskFileDefault) SetStatusCode

func (o *UploadTaskFileDefault) SetStatusCode(code int)

SetStatusCode sets the status to the upload task file default response

func (*UploadTaskFileDefault) SetXErrorCode

func (o *UploadTaskFileDefault) SetXErrorCode(xErrorCode string)

SetXErrorCode sets the xErrorCode to the upload task file default response

func (*UploadTaskFileDefault) WithPayload

func (o *UploadTaskFileDefault) WithPayload(payload *models.Error) *UploadTaskFileDefault

WithPayload adds the payload to the upload task file default response

func (*UploadTaskFileDefault) WithStatusCode

func (o *UploadTaskFileDefault) WithStatusCode(code int) *UploadTaskFileDefault

WithStatusCode adds the status to the upload task file default response

func (*UploadTaskFileDefault) WithXErrorCode

func (o *UploadTaskFileDefault) WithXErrorCode(xErrorCode string) *UploadTaskFileDefault

WithXErrorCode adds the xErrorCode to the upload task file default response

func (*UploadTaskFileDefault) WriteResponse

func (o *UploadTaskFileDefault) WriteResponse(rw http.ResponseWriter, producer runtime.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 {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Extra information describing the file
	  In: formData
	*/
	Description *string
	/*The file to upload
	  In: formData
	*/
	File runtime.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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL