tasks

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const AddCommentToTaskCreatedCode int = 201

AddCommentToTaskCreatedCode is the HTTP code returned for type AddCommentToTaskCreated

View Source
const CreateTaskCreatedCode int = 201

CreateTaskCreatedCode is the HTTP code returned for type CreateTaskCreated

View Source
const DeleteTaskNoContentCode int = 204

DeleteTaskNoContentCode is the HTTP code returned for type DeleteTaskNoContent

View Source
const GetTaskCommentsOKCode int = 200

GetTaskCommentsOKCode is the HTTP code returned for type GetTaskCommentsOK

View Source
const GetTaskDetailsOKCode int = 200

GetTaskDetailsOKCode is the HTTP code returned for type GetTaskDetailsOK

View Source
const GetTaskDetailsUnprocessableEntityCode int = 422

GetTaskDetailsUnprocessableEntityCode is the HTTP code returned for type GetTaskDetailsUnprocessableEntity

View Source
const ListTasksOKCode int = 200

ListTasksOKCode is the HTTP code returned for type ListTasksOK

View Source
const ListTasksUnprocessableEntityCode int = 422

ListTasksUnprocessableEntityCode is the HTTP code returned for type ListTasksUnprocessableEntity

View Source
const UpdateTaskOKCode int = 200

UpdateTaskOKCode is the HTTP code returned for type UpdateTaskOK

View Source
const UpdateTaskUnprocessableEntityCode int = 422

UpdateTaskUnprocessableEntityCode is the HTTP code returned for type UpdateTaskUnprocessableEntity

View Source
const UploadTaskFileCreatedCode int = 201

UploadTaskFileCreatedCode is the HTTP code returned for type UploadTaskFileCreated

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) MarshalBinary

func (o *AddCommentToTaskBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddCommentToTaskBody) UnmarshalBinary

func (o *AddCommentToTaskBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

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 {

	/*

	 */
	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 `json:"-"`

	/*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 no default values defined in spec.

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.

To ensure default values, the struct must have been initialized with NewAddCommentToTaskParams() beforehand.

type AddCommentToTaskURL

type AddCommentToTaskURL struct {
	ID int64
	// contains filtered or unexported fields
}

AddCommentToTaskURL generates an URL for the add comment to task operation

func (*AddCommentToTaskURL) Build

func (o *AddCommentToTaskURL) Build() (*url.URL, error)

Build a url path and query string

func (*AddCommentToTaskURL) BuildFull

func (o *AddCommentToTaskURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*AddCommentToTaskURL) Must

func (o *AddCommentToTaskURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*AddCommentToTaskURL) SetBasePath

func (o *AddCommentToTaskURL) 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 (*AddCommentToTaskURL) String

func (o *AddCommentToTaskURL) String() string

String returns the string representation of the path with query string

func (*AddCommentToTaskURL) StringFull

func (o *AddCommentToTaskURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*AddCommentToTaskURL) WithBasePath

func (o *AddCommentToTaskURL) WithBasePath(bp string) *AddCommentToTaskURL

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

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 {

	/*

	 */
	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 `json:"-"`

	/*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 no default values defined in spec.

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.

To ensure default values, the struct must have been initialized with NewCreateTaskParams() beforehand.

type CreateTaskURL

type CreateTaskURL struct {
	// contains filtered or unexported fields
}

CreateTaskURL generates an URL for the create task operation

func (*CreateTaskURL) Build

func (o *CreateTaskURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateTaskURL) BuildFull

func (o *CreateTaskURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateTaskURL) Must

func (o *CreateTaskURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreateTaskURL) SetBasePath

func (o *CreateTaskURL) 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 (*CreateTaskURL) String

func (o *CreateTaskURL) String() string

String returns the string representation of the path with query string

func (*CreateTaskURL) StringFull

func (o *CreateTaskURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateTaskURL) WithBasePath

func (o *CreateTaskURL) WithBasePath(bp string) *CreateTaskURL

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

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 {

	/*

	 */
	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 `json:"-"`

	/*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 no default values defined in spec.

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.

To ensure default values, the struct must have been initialized with NewDeleteTaskParams() beforehand.

type DeleteTaskURL

type DeleteTaskURL struct {
	ID int64
	// contains filtered or unexported fields
}

DeleteTaskURL generates an URL for the delete task operation

func (*DeleteTaskURL) Build

func (o *DeleteTaskURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteTaskURL) BuildFull

func (o *DeleteTaskURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteTaskURL) Must

func (o *DeleteTaskURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteTaskURL) SetBasePath

func (o *DeleteTaskURL) 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 (*DeleteTaskURL) String

func (o *DeleteTaskURL) String() string

String returns the string representation of the path with query string

func (*DeleteTaskURL) StringFull

func (o *DeleteTaskURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteTaskURL) WithBasePath

func (o *DeleteTaskURL) WithBasePath(bp string) *DeleteTaskURL

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

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 {

	/*

	 */
	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 `json:"-"`

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

To ensure default values, the struct must have been initialized with NewGetTaskCommentsParams() beforehand.

type GetTaskCommentsURL

type GetTaskCommentsURL struct {
	ID int64

	PageSize *int32
	Since    *strfmt.DateTime
	// contains filtered or unexported fields
}

GetTaskCommentsURL generates an URL for the get task comments operation

func (*GetTaskCommentsURL) Build

func (o *GetTaskCommentsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetTaskCommentsURL) BuildFull

func (o *GetTaskCommentsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetTaskCommentsURL) Must

func (o *GetTaskCommentsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetTaskCommentsURL) SetBasePath

func (o *GetTaskCommentsURL) 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 (*GetTaskCommentsURL) String

func (o *GetTaskCommentsURL) String() string

String returns the string representation of the path with query string

func (*GetTaskCommentsURL) StringFull

func (o *GetTaskCommentsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetTaskCommentsURL) WithBasePath

func (o *GetTaskCommentsURL) WithBasePath(bp string) *GetTaskCommentsURL

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

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 {

	/*

	 */
	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 `json:"-"`

	/*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 no default values defined in spec.

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.

To ensure default values, the struct must have been initialized with NewGetTaskDetailsParams() beforehand.

type GetTaskDetailsURL

type GetTaskDetailsURL struct {
	ID int64
	// contains filtered or unexported fields
}

GetTaskDetailsURL generates an URL for the get task details operation

func (*GetTaskDetailsURL) Build

func (o *GetTaskDetailsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetTaskDetailsURL) BuildFull

func (o *GetTaskDetailsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetTaskDetailsURL) Must

func (o *GetTaskDetailsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetTaskDetailsURL) SetBasePath

func (o *GetTaskDetailsURL) 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 (*GetTaskDetailsURL) String

func (o *GetTaskDetailsURL) String() string

String returns the string representation of the path with query string

func (*GetTaskDetailsURL) StringFull

func (o *GetTaskDetailsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetTaskDetailsURL) WithBasePath

func (o *GetTaskDetailsURL) WithBasePath(bp string) *GetTaskDetailsURL

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

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 {

	/*

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

	 */
	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 `json:"-"`

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

To ensure default values, the struct must have been initialized with NewListTasksParams() beforehand.

type ListTasksURL

type ListTasksURL struct {
	PageSize *int32
	SinceID  *int64
	Status   []string
	Tags     []string
	// contains filtered or unexported fields
}

ListTasksURL generates an URL for the list tasks operation

func (*ListTasksURL) Build

func (o *ListTasksURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListTasksURL) BuildFull

func (o *ListTasksURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListTasksURL) Must

func (o *ListTasksURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListTasksURL) SetBasePath

func (o *ListTasksURL) 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 (*ListTasksURL) String

func (o *ListTasksURL) String() string

String returns the string representation of the path with query string

func (*ListTasksURL) StringFull

func (o *ListTasksURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListTasksURL) WithBasePath

func (o *ListTasksURL) WithBasePath(bp string) *ListTasksURL

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

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 {

	/*

	 */
	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 `json:"-"`

	/*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 no default values defined in spec.

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.

To ensure default values, the struct must have been initialized with NewUpdateTaskParams() beforehand.

type UpdateTaskURL

type UpdateTaskURL struct {
	ID int64
	// contains filtered or unexported fields
}

UpdateTaskURL generates an URL for the update task operation

func (*UpdateTaskURL) Build

func (o *UpdateTaskURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateTaskURL) BuildFull

func (o *UpdateTaskURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateTaskURL) Must

func (o *UpdateTaskURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UpdateTaskURL) SetBasePath

func (o *UpdateTaskURL) 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 (*UpdateTaskURL) String

func (o *UpdateTaskURL) String() string

String returns the string representation of the path with query string

func (*UpdateTaskURL) StringFull

func (o *UpdateTaskURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateTaskURL) WithBasePath

func (o *UpdateTaskURL) WithBasePath(bp string) *UpdateTaskURL

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

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 {

	/*

	 */
	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 `json:"-"`

	/*Extra information describing the file
	  In: formData
	*/
	Description *string
	/*The file to upload
	  In: formData
	*/
	File io.ReadCloser
	/*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 no default values defined in spec.

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.

To ensure default values, the struct must have been initialized with NewUploadTaskFileParams() beforehand.

type UploadTaskFileURL

type UploadTaskFileURL struct {
	ID int64
	// contains filtered or unexported fields
}

UploadTaskFileURL generates an URL for the upload task file operation

func (*UploadTaskFileURL) Build

func (o *UploadTaskFileURL) Build() (*url.URL, error)

Build a url path and query string

func (*UploadTaskFileURL) BuildFull

func (o *UploadTaskFileURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UploadTaskFileURL) Must

func (o *UploadTaskFileURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UploadTaskFileURL) SetBasePath

func (o *UploadTaskFileURL) 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 (*UploadTaskFileURL) String

func (o *UploadTaskFileURL) String() string

String returns the string representation of the path with query string

func (*UploadTaskFileURL) StringFull

func (o *UploadTaskFileURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UploadTaskFileURL) WithBasePath

func (o *UploadTaskFileURL) WithBasePath(bp string) *UploadTaskFileURL

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

Jump to

Keyboard shortcuts

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