go-swagger: github.com/go-swagger/go-swagger/examples/task-tracker/restapi/operations/tasks Index | Files

package tasks

import "github.com/go-swagger/go-swagger/examples/task-tracker/restapi/operations/tasks"

Index

Package Files

add_comment_to_task.go add_comment_to_task_parameters.go add_comment_to_task_responses.go add_comment_to_task_urlbuilder.go create_task.go create_task_parameters.go create_task_responses.go create_task_urlbuilder.go delete_task.go delete_task_parameters.go delete_task_responses.go delete_task_urlbuilder.go get_task_comments.go get_task_comments_parameters.go get_task_comments_responses.go get_task_comments_urlbuilder.go get_task_details.go get_task_details_parameters.go get_task_details_responses.go get_task_details_urlbuilder.go list_tasks.go list_tasks_parameters.go list_tasks_responses.go list_tasks_urlbuilder.go update_task.go update_task_parameters.go update_task_responses.go update_task_urlbuilder.go upload_task_file.go upload_task_file_parameters.go upload_task_file_responses.go upload_task_file_urlbuilder.go

Constants

const AddCommentToTaskCreatedCode int = 201

AddCommentToTaskCreatedCode is the HTTP code returned for type AddCommentToTaskCreated

const CreateTaskCreatedCode int = 201

CreateTaskCreatedCode is the HTTP code returned for type CreateTaskCreated

const DeleteTaskNoContentCode int = 204

DeleteTaskNoContentCode is the HTTP code returned for type DeleteTaskNoContent

const GetTaskCommentsOKCode int = 200

GetTaskCommentsOKCode is the HTTP code returned for type GetTaskCommentsOK

const GetTaskDetailsOKCode int = 200

GetTaskDetailsOKCode is the HTTP code returned for type GetTaskDetailsOK

const GetTaskDetailsUnprocessableEntityCode int = 422

GetTaskDetailsUnprocessableEntityCode is the HTTP code returned for type GetTaskDetailsUnprocessableEntity

const ListTasksOKCode int = 200

ListTasksOKCode is the HTTP code returned for type ListTasksOK

const ListTasksUnprocessableEntityCode int = 422

ListTasksUnprocessableEntityCode is the HTTP code returned for type ListTasksUnprocessableEntity

const UpdateTaskOKCode int = 200

UpdateTaskOKCode is the HTTP code returned for type UpdateTaskOK

const UpdateTaskUnprocessableEntityCode int = 422

UpdateTaskUnprocessableEntityCode is the HTTP code returned for type UpdateTaskUnprocessableEntity

const UploadTaskFileCreatedCode int = 201

UploadTaskFileCreatedCode is the HTTP code returned for type UploadTaskFileCreated

type AddCommentToTask Uses

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 Uses

func NewAddCommentToTask(ctx *middleware.Context, handler AddCommentToTaskHandler) *AddCommentToTask

NewAddCommentToTask creates a new http.Handler for the add comment to task operation

func (*AddCommentToTask) ServeHTTP Uses

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

type AddCommentToTaskBody Uses

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 Uses

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

MarshalBinary interface implementation

func (*AddCommentToTaskBody) UnmarshalBinary Uses

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

UnmarshalBinary interface implementation

func (*AddCommentToTaskBody) Validate Uses

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

Validate validates this add comment to task body

type AddCommentToTaskCreated Uses

type AddCommentToTaskCreated struct {
}

AddCommentToTaskCreated Comment added

swagger:response addCommentToTaskCreated

func NewAddCommentToTaskCreated Uses

func NewAddCommentToTaskCreated() *AddCommentToTaskCreated

NewAddCommentToTaskCreated creates AddCommentToTaskCreated with default headers values

func (*AddCommentToTaskCreated) WriteResponse Uses

func (o *AddCommentToTaskCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddCommentToTaskDefault Uses

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 Uses

func NewAddCommentToTaskDefault(code int) *AddCommentToTaskDefault

NewAddCommentToTaskDefault creates AddCommentToTaskDefault with default headers values

func (*AddCommentToTaskDefault) SetPayload Uses

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

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

func (*AddCommentToTaskDefault) SetStatusCode Uses

func (o *AddCommentToTaskDefault) SetStatusCode(code int)

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

func (*AddCommentToTaskDefault) SetXErrorCode Uses

func (o *AddCommentToTaskDefault) SetXErrorCode(xErrorCode string)

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

func (*AddCommentToTaskDefault) WithPayload Uses

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

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

func (*AddCommentToTaskDefault) WithStatusCode Uses

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

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

func (*AddCommentToTaskDefault) WithXErrorCode Uses

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

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

func (*AddCommentToTaskDefault) WriteResponse Uses

func (o *AddCommentToTaskDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddCommentToTaskHandler Uses

type AddCommentToTaskHandler interface {
    Handle(AddCommentToTaskParams, interface{}) middleware.Responder
}

AddCommentToTaskHandler interface for that can handle valid add comment to task params

type AddCommentToTaskHandlerFunc Uses

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 Uses

func (fn AddCommentToTaskHandlerFunc) Handle(params AddCommentToTaskParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type AddCommentToTaskParams Uses

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 Uses

func NewAddCommentToTaskParams() AddCommentToTaskParams

NewAddCommentToTaskParams creates a new AddCommentToTaskParams object no default values defined in spec.

func (*AddCommentToTaskParams) BindRequest Uses

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 Uses

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

AddCommentToTaskURL generates an URL for the add comment to task operation

func (*AddCommentToTaskURL) Build Uses

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

Build a url path and query string

func (*AddCommentToTaskURL) BuildFull Uses

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 Uses

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 Uses

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 Uses

func (o *AddCommentToTaskURL) String() string

String returns the string representation of the path with query string

func (*AddCommentToTaskURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*AddCommentToTaskURL) WithBasePath Uses

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 Uses

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 Uses

func NewCreateTask(ctx *middleware.Context, handler CreateTaskHandler) *CreateTask

NewCreateTask creates a new http.Handler for the create task operation

func (*CreateTask) ServeHTTP Uses

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

type CreateTaskCreated Uses

type CreateTaskCreated struct {
}

CreateTaskCreated Task created

swagger:response createTaskCreated

func NewCreateTaskCreated Uses

func NewCreateTaskCreated() *CreateTaskCreated

NewCreateTaskCreated creates CreateTaskCreated with default headers values

func (*CreateTaskCreated) WriteResponse Uses

func (o *CreateTaskCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateTaskDefault Uses

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 Uses

func NewCreateTaskDefault(code int) *CreateTaskDefault

NewCreateTaskDefault creates CreateTaskDefault with default headers values

func (*CreateTaskDefault) SetPayload Uses

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

SetPayload sets the payload to the create task default response

func (*CreateTaskDefault) SetStatusCode Uses

func (o *CreateTaskDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create task default response

func (*CreateTaskDefault) SetXErrorCode Uses

func (o *CreateTaskDefault) SetXErrorCode(xErrorCode string)

SetXErrorCode sets the xErrorCode to the create task default response

func (*CreateTaskDefault) WithPayload Uses

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

WithPayload adds the payload to the create task default response

func (*CreateTaskDefault) WithStatusCode Uses

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

WithStatusCode adds the status to the create task default response

func (*CreateTaskDefault) WithXErrorCode Uses

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

WithXErrorCode adds the xErrorCode to the create task default response

func (*CreateTaskDefault) WriteResponse Uses

func (o *CreateTaskDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateTaskHandler Uses

type CreateTaskHandler interface {
    Handle(CreateTaskParams, interface{}) middleware.Responder
}

CreateTaskHandler interface for that can handle valid create task params

type CreateTaskHandlerFunc Uses

type CreateTaskHandlerFunc func(CreateTaskParams, interface{}) middleware.Responder

CreateTaskHandlerFunc turns a function with the right signature into a create task handler

func (CreateTaskHandlerFunc) Handle Uses

func (fn CreateTaskHandlerFunc) Handle(params CreateTaskParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreateTaskParams Uses

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 Uses

func NewCreateTaskParams() CreateTaskParams

NewCreateTaskParams creates a new CreateTaskParams object no default values defined in spec.

func (*CreateTaskParams) BindRequest Uses

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 Uses

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

CreateTaskURL generates an URL for the create task operation

func (*CreateTaskURL) Build Uses

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

Build a url path and query string

func (*CreateTaskURL) BuildFull Uses

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 Uses

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 Uses

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 Uses

func (o *CreateTaskURL) String() string

String returns the string representation of the path with query string

func (*CreateTaskURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*CreateTaskURL) WithBasePath Uses

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 Uses

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 Uses

func NewDeleteTask(ctx *middleware.Context, handler DeleteTaskHandler) *DeleteTask

NewDeleteTask creates a new http.Handler for the delete task operation

func (*DeleteTask) ServeHTTP Uses

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

type DeleteTaskDefault Uses

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 Uses

func NewDeleteTaskDefault(code int) *DeleteTaskDefault

NewDeleteTaskDefault creates DeleteTaskDefault with default headers values

func (*DeleteTaskDefault) SetPayload Uses

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

SetPayload sets the payload to the delete task default response

func (*DeleteTaskDefault) SetStatusCode Uses

func (o *DeleteTaskDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete task default response

func (*DeleteTaskDefault) SetXErrorCode Uses

func (o *DeleteTaskDefault) SetXErrorCode(xErrorCode string)

SetXErrorCode sets the xErrorCode to the delete task default response

func (*DeleteTaskDefault) WithPayload Uses

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

WithPayload adds the payload to the delete task default response

func (*DeleteTaskDefault) WithStatusCode Uses

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

WithStatusCode adds the status to the delete task default response

func (*DeleteTaskDefault) WithXErrorCode Uses

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

WithXErrorCode adds the xErrorCode to the delete task default response

func (*DeleteTaskDefault) WriteResponse Uses

func (o *DeleteTaskDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteTaskHandler Uses

type DeleteTaskHandler interface {
    Handle(DeleteTaskParams, interface{}) middleware.Responder
}

DeleteTaskHandler interface for that can handle valid delete task params

type DeleteTaskHandlerFunc Uses

type DeleteTaskHandlerFunc func(DeleteTaskParams, interface{}) middleware.Responder

DeleteTaskHandlerFunc turns a function with the right signature into a delete task handler

func (DeleteTaskHandlerFunc) Handle Uses

func (fn DeleteTaskHandlerFunc) Handle(params DeleteTaskParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteTaskNoContent Uses

type DeleteTaskNoContent struct {
}

DeleteTaskNoContent Task deleted

swagger:response deleteTaskNoContent

func NewDeleteTaskNoContent Uses

func NewDeleteTaskNoContent() *DeleteTaskNoContent

NewDeleteTaskNoContent creates DeleteTaskNoContent with default headers values

func (*DeleteTaskNoContent) WriteResponse Uses

func (o *DeleteTaskNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteTaskParams Uses

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 Uses

func NewDeleteTaskParams() DeleteTaskParams

NewDeleteTaskParams creates a new DeleteTaskParams object no default values defined in spec.

func (*DeleteTaskParams) BindRequest Uses

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 Uses

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

DeleteTaskURL generates an URL for the delete task operation

func (*DeleteTaskURL) Build Uses

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

Build a url path and query string

func (*DeleteTaskURL) BuildFull Uses

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 Uses

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 Uses

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 Uses

func (o *DeleteTaskURL) String() string

String returns the string representation of the path with query string

func (*DeleteTaskURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*DeleteTaskURL) WithBasePath Uses

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 Uses

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 Uses

func NewGetTaskComments(ctx *middleware.Context, handler GetTaskCommentsHandler) *GetTaskComments

NewGetTaskComments creates a new http.Handler for the get task comments operation

func (*GetTaskComments) ServeHTTP Uses

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

type GetTaskCommentsDefault Uses

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 Uses

func NewGetTaskCommentsDefault(code int) *GetTaskCommentsDefault

NewGetTaskCommentsDefault creates GetTaskCommentsDefault with default headers values

func (*GetTaskCommentsDefault) SetPayload Uses

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

SetPayload sets the payload to the get task comments default response

func (*GetTaskCommentsDefault) SetStatusCode Uses

func (o *GetTaskCommentsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get task comments default response

func (*GetTaskCommentsDefault) SetXErrorCode Uses

func (o *GetTaskCommentsDefault) SetXErrorCode(xErrorCode string)

SetXErrorCode sets the xErrorCode to the get task comments default response

func (*GetTaskCommentsDefault) WithPayload Uses

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

WithPayload adds the payload to the get task comments default response

func (*GetTaskCommentsDefault) WithStatusCode Uses

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

WithStatusCode adds the status to the get task comments default response

func (*GetTaskCommentsDefault) WithXErrorCode Uses

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

WithXErrorCode adds the xErrorCode to the get task comments default response

func (*GetTaskCommentsDefault) WriteResponse Uses

func (o *GetTaskCommentsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTaskCommentsHandler Uses

type GetTaskCommentsHandler interface {
    Handle(GetTaskCommentsParams) middleware.Responder
}

GetTaskCommentsHandler interface for that can handle valid get task comments params

type GetTaskCommentsHandlerFunc Uses

type GetTaskCommentsHandlerFunc func(GetTaskCommentsParams) middleware.Responder

GetTaskCommentsHandlerFunc turns a function with the right signature into a get task comments handler

func (GetTaskCommentsHandlerFunc) Handle Uses

func (fn GetTaskCommentsHandlerFunc) Handle(params GetTaskCommentsParams) middleware.Responder

Handle executing the request and returning a response

type GetTaskCommentsOK Uses

type GetTaskCommentsOK struct {

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

GetTaskCommentsOK The list of comments

swagger:response getTaskCommentsOK

func NewGetTaskCommentsOK Uses

func NewGetTaskCommentsOK() *GetTaskCommentsOK

NewGetTaskCommentsOK creates GetTaskCommentsOK with default headers values

func (*GetTaskCommentsOK) SetPayload Uses

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

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

func (*GetTaskCommentsOK) WithPayload Uses

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

WithPayload adds the payload to the get task comments o k response

func (*GetTaskCommentsOK) WriteResponse Uses

func (o *GetTaskCommentsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTaskCommentsParams Uses

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 Uses

func NewGetTaskCommentsParams() GetTaskCommentsParams

NewGetTaskCommentsParams creates a new GetTaskCommentsParams object with the default values initialized.

func (*GetTaskCommentsParams) BindRequest Uses

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 Uses

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 Uses

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

Build a url path and query string

func (*GetTaskCommentsURL) BuildFull Uses

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 Uses

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 Uses

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 Uses

func (o *GetTaskCommentsURL) String() string

String returns the string representation of the path with query string

func (*GetTaskCommentsURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*GetTaskCommentsURL) WithBasePath Uses

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 Uses

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 Uses

func NewGetTaskDetails(ctx *middleware.Context, handler GetTaskDetailsHandler) *GetTaskDetails

NewGetTaskDetails creates a new http.Handler for the get task details operation

func (*GetTaskDetails) ServeHTTP Uses

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

type GetTaskDetailsDefault Uses

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 Uses

func NewGetTaskDetailsDefault(code int) *GetTaskDetailsDefault

NewGetTaskDetailsDefault creates GetTaskDetailsDefault with default headers values

func (*GetTaskDetailsDefault) SetPayload Uses

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

SetPayload sets the payload to the get task details default response

func (*GetTaskDetailsDefault) SetStatusCode Uses

func (o *GetTaskDetailsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get task details default response

func (*GetTaskDetailsDefault) SetXErrorCode Uses

func (o *GetTaskDetailsDefault) SetXErrorCode(xErrorCode string)

SetXErrorCode sets the xErrorCode to the get task details default response

func (*GetTaskDetailsDefault) WithPayload Uses

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

WithPayload adds the payload to the get task details default response

func (*GetTaskDetailsDefault) WithStatusCode Uses

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

WithStatusCode adds the status to the get task details default response

func (*GetTaskDetailsDefault) WithXErrorCode Uses

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

WithXErrorCode adds the xErrorCode to the get task details default response

func (*GetTaskDetailsDefault) WriteResponse Uses

func (o *GetTaskDetailsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTaskDetailsHandler Uses

type GetTaskDetailsHandler interface {
    Handle(GetTaskDetailsParams) middleware.Responder
}

GetTaskDetailsHandler interface for that can handle valid get task details params

type GetTaskDetailsHandlerFunc Uses

type GetTaskDetailsHandlerFunc func(GetTaskDetailsParams) middleware.Responder

GetTaskDetailsHandlerFunc turns a function with the right signature into a get task details handler

func (GetTaskDetailsHandlerFunc) Handle Uses

func (fn GetTaskDetailsHandlerFunc) Handle(params GetTaskDetailsParams) middleware.Responder

Handle executing the request and returning a response

type GetTaskDetailsOK Uses

type GetTaskDetailsOK struct {

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

GetTaskDetailsOK Task details

swagger:response getTaskDetailsOK

func NewGetTaskDetailsOK Uses

func NewGetTaskDetailsOK() *GetTaskDetailsOK

NewGetTaskDetailsOK creates GetTaskDetailsOK with default headers values

func (*GetTaskDetailsOK) SetPayload Uses

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

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

func (*GetTaskDetailsOK) WithPayload Uses

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

WithPayload adds the payload to the get task details o k response

func (*GetTaskDetailsOK) WriteResponse Uses

func (o *GetTaskDetailsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTaskDetailsParams Uses

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 Uses

func NewGetTaskDetailsParams() GetTaskDetailsParams

NewGetTaskDetailsParams creates a new GetTaskDetailsParams object no default values defined in spec.

func (*GetTaskDetailsParams) BindRequest Uses

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 Uses

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

GetTaskDetailsURL generates an URL for the get task details operation

func (*GetTaskDetailsURL) Build Uses

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

Build a url path and query string

func (*GetTaskDetailsURL) BuildFull Uses

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 Uses

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 Uses

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 Uses

func (o *GetTaskDetailsURL) String() string

String returns the string representation of the path with query string

func (*GetTaskDetailsURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*GetTaskDetailsURL) WithBasePath Uses

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 Uses

type GetTaskDetailsUnprocessableEntity struct {

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

GetTaskDetailsUnprocessableEntity Validation error

swagger:response getTaskDetailsUnprocessableEntity

func NewGetTaskDetailsUnprocessableEntity Uses

func NewGetTaskDetailsUnprocessableEntity() *GetTaskDetailsUnprocessableEntity

NewGetTaskDetailsUnprocessableEntity creates GetTaskDetailsUnprocessableEntity with default headers values

func (*GetTaskDetailsUnprocessableEntity) SetPayload Uses

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

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

func (*GetTaskDetailsUnprocessableEntity) WithPayload Uses

func (o *GetTaskDetailsUnprocessableEntity) WithPayload(payload *models.ValidationError) *GetTaskDetailsUnprocessableEntity

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

func (*GetTaskDetailsUnprocessableEntity) WriteResponse Uses

func (o *GetTaskDetailsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListTasks Uses

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 Uses

func NewListTasks(ctx *middleware.Context, handler ListTasksHandler) *ListTasks

NewListTasks creates a new http.Handler for the list tasks operation

func (*ListTasks) ServeHTTP Uses

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

type ListTasksDefault Uses

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 Uses

func NewListTasksDefault(code int) *ListTasksDefault

NewListTasksDefault creates ListTasksDefault with default headers values

func (*ListTasksDefault) SetPayload Uses

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

SetPayload sets the payload to the list tasks default response

func (*ListTasksDefault) SetStatusCode Uses

func (o *ListTasksDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list tasks default response

func (*ListTasksDefault) SetXErrorCode Uses

func (o *ListTasksDefault) SetXErrorCode(xErrorCode string)

SetXErrorCode sets the xErrorCode to the list tasks default response

func (*ListTasksDefault) WithPayload Uses

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

WithPayload adds the payload to the list tasks default response

func (*ListTasksDefault) WithStatusCode Uses

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

WithStatusCode adds the status to the list tasks default response

func (*ListTasksDefault) WithXErrorCode Uses

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

WithXErrorCode adds the xErrorCode to the list tasks default response

func (*ListTasksDefault) WriteResponse Uses

func (o *ListTasksDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListTasksHandler Uses

type ListTasksHandler interface {
    Handle(ListTasksParams) middleware.Responder
}

ListTasksHandler interface for that can handle valid list tasks params

type ListTasksHandlerFunc Uses

type ListTasksHandlerFunc func(ListTasksParams) middleware.Responder

ListTasksHandlerFunc turns a function with the right signature into a list tasks handler

func (ListTasksHandlerFunc) Handle Uses

func (fn ListTasksHandlerFunc) Handle(params ListTasksParams) middleware.Responder

Handle executing the request and returning a response

type ListTasksOK Uses

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 Uses

func NewListTasksOK() *ListTasksOK

NewListTasksOK creates ListTasksOK with default headers values

func (*ListTasksOK) SetPayload Uses

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

SetPayload sets the payload to the list tasks o k response

func (*ListTasksOK) SetXLastTaskID Uses

func (o *ListTasksOK) SetXLastTaskID(xLastTaskID int64)

SetXLastTaskID sets the xLastTaskId to the list tasks o k response

func (*ListTasksOK) WithPayload Uses

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

WithPayload adds the payload to the list tasks o k response

func (*ListTasksOK) WithXLastTaskID Uses

func (o *ListTasksOK) WithXLastTaskID(xLastTaskID int64) *ListTasksOK

WithXLastTaskID adds the xLastTaskId to the list tasks o k response

func (*ListTasksOK) WriteResponse Uses

func (o *ListTasksOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListTasksParams Uses

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 Uses

func NewListTasksParams() ListTasksParams

NewListTasksParams creates a new ListTasksParams object with the default values initialized.

func (*ListTasksParams) BindRequest Uses

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 Uses

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 Uses

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

Build a url path and query string

func (*ListTasksURL) BuildFull Uses

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 Uses

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 Uses

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 Uses

func (o *ListTasksURL) String() string

String returns the string representation of the path with query string

func (*ListTasksURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*ListTasksURL) WithBasePath Uses

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 Uses

type ListTasksUnprocessableEntity struct {

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

ListTasksUnprocessableEntity Validation error

swagger:response listTasksUnprocessableEntity

func NewListTasksUnprocessableEntity Uses

func NewListTasksUnprocessableEntity() *ListTasksUnprocessableEntity

NewListTasksUnprocessableEntity creates ListTasksUnprocessableEntity with default headers values

func (*ListTasksUnprocessableEntity) SetPayload Uses

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

SetPayload sets the payload to the list tasks unprocessable entity response

func (*ListTasksUnprocessableEntity) WithPayload Uses

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

WithPayload adds the payload to the list tasks unprocessable entity response

func (*ListTasksUnprocessableEntity) WriteResponse Uses

func (o *ListTasksUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateTask Uses

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 Uses

func NewUpdateTask(ctx *middleware.Context, handler UpdateTaskHandler) *UpdateTask

NewUpdateTask creates a new http.Handler for the update task operation

func (*UpdateTask) ServeHTTP Uses

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

type UpdateTaskDefault Uses

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 Uses

func NewUpdateTaskDefault(code int) *UpdateTaskDefault

NewUpdateTaskDefault creates UpdateTaskDefault with default headers values

func (*UpdateTaskDefault) SetPayload Uses

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

SetPayload sets the payload to the update task default response

func (*UpdateTaskDefault) SetStatusCode Uses

func (o *UpdateTaskDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update task default response

func (*UpdateTaskDefault) SetXErrorCode Uses

func (o *UpdateTaskDefault) SetXErrorCode(xErrorCode string)

SetXErrorCode sets the xErrorCode to the update task default response

func (*UpdateTaskDefault) WithPayload Uses

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

WithPayload adds the payload to the update task default response

func (*UpdateTaskDefault) WithStatusCode Uses

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

WithStatusCode adds the status to the update task default response

func (*UpdateTaskDefault) WithXErrorCode Uses

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

WithXErrorCode adds the xErrorCode to the update task default response

func (*UpdateTaskDefault) WriteResponse Uses

func (o *UpdateTaskDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateTaskHandler Uses

type UpdateTaskHandler interface {
    Handle(UpdateTaskParams, interface{}) middleware.Responder
}

UpdateTaskHandler interface for that can handle valid update task params

type UpdateTaskHandlerFunc Uses

type UpdateTaskHandlerFunc func(UpdateTaskParams, interface{}) middleware.Responder

UpdateTaskHandlerFunc turns a function with the right signature into a update task handler

func (UpdateTaskHandlerFunc) Handle Uses

func (fn UpdateTaskHandlerFunc) Handle(params UpdateTaskParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateTaskOK Uses

type UpdateTaskOK struct {

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

UpdateTaskOK Task details

swagger:response updateTaskOK

func NewUpdateTaskOK Uses

func NewUpdateTaskOK() *UpdateTaskOK

NewUpdateTaskOK creates UpdateTaskOK with default headers values

func (*UpdateTaskOK) SetPayload Uses

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

SetPayload sets the payload to the update task o k response

func (*UpdateTaskOK) WithPayload Uses

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

WithPayload adds the payload to the update task o k response

func (*UpdateTaskOK) WriteResponse Uses

func (o *UpdateTaskOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateTaskParams Uses

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 Uses

func NewUpdateTaskParams() UpdateTaskParams

NewUpdateTaskParams creates a new UpdateTaskParams object no default values defined in spec.

func (*UpdateTaskParams) BindRequest Uses

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 Uses

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

UpdateTaskURL generates an URL for the update task operation

func (*UpdateTaskURL) Build Uses

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

Build a url path and query string

func (*UpdateTaskURL) BuildFull Uses

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 Uses

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 Uses

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 Uses

func (o *UpdateTaskURL) String() string

String returns the string representation of the path with query string

func (*UpdateTaskURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*UpdateTaskURL) WithBasePath Uses

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 Uses

type UpdateTaskUnprocessableEntity struct {

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

UpdateTaskUnprocessableEntity Validation error

swagger:response updateTaskUnprocessableEntity

func NewUpdateTaskUnprocessableEntity Uses

func NewUpdateTaskUnprocessableEntity() *UpdateTaskUnprocessableEntity

NewUpdateTaskUnprocessableEntity creates UpdateTaskUnprocessableEntity with default headers values

func (*UpdateTaskUnprocessableEntity) SetPayload Uses

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

SetPayload sets the payload to the update task unprocessable entity response

func (*UpdateTaskUnprocessableEntity) WithPayload Uses

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

WithPayload adds the payload to the update task unprocessable entity response

func (*UpdateTaskUnprocessableEntity) WriteResponse Uses

func (o *UpdateTaskUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UploadTaskFile Uses

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 Uses

func NewUploadTaskFile(ctx *middleware.Context, handler UploadTaskFileHandler) *UploadTaskFile

NewUploadTaskFile creates a new http.Handler for the upload task file operation

func (*UploadTaskFile) ServeHTTP Uses

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

type UploadTaskFileCreated Uses

type UploadTaskFileCreated struct {
}

UploadTaskFileCreated File added

swagger:response uploadTaskFileCreated

func NewUploadTaskFileCreated Uses

func NewUploadTaskFileCreated() *UploadTaskFileCreated

NewUploadTaskFileCreated creates UploadTaskFileCreated with default headers values

func (*UploadTaskFileCreated) WriteResponse Uses

func (o *UploadTaskFileCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UploadTaskFileDefault Uses

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 Uses

func NewUploadTaskFileDefault(code int) *UploadTaskFileDefault

NewUploadTaskFileDefault creates UploadTaskFileDefault with default headers values

func (*UploadTaskFileDefault) SetPayload Uses

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

SetPayload sets the payload to the upload task file default response

func (*UploadTaskFileDefault) SetStatusCode Uses

func (o *UploadTaskFileDefault) SetStatusCode(code int)

SetStatusCode sets the status to the upload task file default response

func (*UploadTaskFileDefault) SetXErrorCode Uses

func (o *UploadTaskFileDefault) SetXErrorCode(xErrorCode string)

SetXErrorCode sets the xErrorCode to the upload task file default response

func (*UploadTaskFileDefault) WithPayload Uses

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

WithPayload adds the payload to the upload task file default response

func (*UploadTaskFileDefault) WithStatusCode Uses

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

WithStatusCode adds the status to the upload task file default response

func (*UploadTaskFileDefault) WithXErrorCode Uses

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

WithXErrorCode adds the xErrorCode to the upload task file default response

func (*UploadTaskFileDefault) WriteResponse Uses

func (o *UploadTaskFileDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UploadTaskFileHandler Uses

type UploadTaskFileHandler interface {
    Handle(UploadTaskFileParams, interface{}) middleware.Responder
}

UploadTaskFileHandler interface for that can handle valid upload task file params

type UploadTaskFileHandlerFunc Uses

type UploadTaskFileHandlerFunc func(UploadTaskFileParams, interface{}) middleware.Responder

UploadTaskFileHandlerFunc turns a function with the right signature into a upload task file handler

func (UploadTaskFileHandlerFunc) Handle Uses

func (fn UploadTaskFileHandlerFunc) Handle(params UploadTaskFileParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UploadTaskFileParams Uses

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 Uses

func NewUploadTaskFileParams() UploadTaskFileParams

NewUploadTaskFileParams creates a new UploadTaskFileParams object no default values defined in spec.

func (*UploadTaskFileParams) BindRequest Uses

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 Uses

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

UploadTaskFileURL generates an URL for the upload task file operation

func (*UploadTaskFileURL) Build Uses

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

Build a url path and query string

func (*UploadTaskFileURL) BuildFull Uses

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 Uses

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 Uses

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 Uses

func (o *UploadTaskFileURL) String() string

String returns the string representation of the path with query string

func (*UploadTaskFileURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*UploadTaskFileURL) WithBasePath Uses

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

Package tasks imports 15 packages (graph) and is imported by 24 packages. Updated 2019-07-29. Refresh now. Tools for package owners.