tasks

package
v0.0.0-...-b072d08 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	OperationName string
	Response      interface{}
	Code          int
}

APIError wraps an error model and captures the status code

func NewAPIError

func NewAPIError(opName string, response interface{}, code int) APIError

NewAPIError creates a new API error

func (APIError) Error

func (a APIError) Error() string

type AddCommentToTaskBody

type AddCommentToTaskBody struct {

	/* Content content

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

	/* UserID user id

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

AddCommentToTaskBody A comment to create

These values can have github flavored markdown.

swagger:model AddCommentToTaskBody

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 handles this case with default header values.

Comment added

func NewAddCommentToTaskCreated

func NewAddCommentToTaskCreated() *AddCommentToTaskCreated

NewAddCommentToTaskCreated creates a AddCommentToTaskCreated with default headers values

func (*AddCommentToTaskCreated) Error

func (o *AddCommentToTaskCreated) Error() string

type AddCommentToTaskDefault

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

AddCommentToTaskDefault handles this case with default header values.

AddCommentToTaskDefault add comment to task default

func NewAddCommentToTaskDefault

func NewAddCommentToTaskDefault(code int) *AddCommentToTaskDefault

NewAddCommentToTaskDefault creates a AddCommentToTaskDefault with default headers values

func (*AddCommentToTaskDefault) Code

func (o *AddCommentToTaskDefault) Code() int

Code gets the status code for the add comment to task default response

func (*AddCommentToTaskDefault) Error

func (o *AddCommentToTaskDefault) Error() string

type AddCommentToTaskParams

type AddCommentToTaskParams struct {

	/*Body
	  The comment to add

	*/
	Body AddCommentToTaskBody
	/*ID
	  The id of the item

	*/
	ID int64
}

AddCommentToTaskParams contains all the parameters to send to the API endpoint for the add comment to task operation typically these are written to a http.Request

func NewAddCommentToTaskParams

func NewAddCommentToTaskParams() *AddCommentToTaskParams

NewAddCommentToTaskParams creates a new AddCommentToTaskParams object with the default values initialized.

func (*AddCommentToTaskParams) WithBody

WithBody adds the body to the add comment to task params

func (*AddCommentToTaskParams) WithID

WithID adds the id to the add comment to task params

func (*AddCommentToTaskParams) WriteToRequest

func (o *AddCommentToTaskParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AddCommentToTaskReader

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

AddCommentToTaskReader is a Reader for the AddCommentToTask structure.

func (*AddCommentToTaskReader) ReadResponse

func (o *AddCommentToTaskReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

type Client

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

Client for tasks API

func New

func New(transport client.Transport, formats strfmt.Registry) *Client

New creates a new tasks API client.

func (*Client) AddCommentToTask

func (a *Client) AddCommentToTask(params *AddCommentToTaskParams, authInfo client.AuthInfoWriter) (*AddCommentToTaskCreated, error)

AddCommentToTask adds a comment to a task

The comment can contain ___github markdown___ syntax. Fenced codeblocks etc are supported through pygments.

func (*Client) CreateTask

func (a *Client) CreateTask(params *CreateTaskParams, authInfo client.AuthInfoWriter) (*CreateTaskCreated, error)

CreateTask creates a task object

Allows for creating a task. This operation requires authentication so that we know which user created the task.

func (*Client) DeleteTask

func (a *Client) DeleteTask(params *DeleteTaskParams, authInfo client.AuthInfoWriter) (*DeleteTaskNoContent, error)

DeleteTask deletes a task

This is a soft delete and changes the task status to ignored.

func (*Client) GetTaskComments

func (a *Client) GetTaskComments(params *GetTaskCommentsParams) (*GetTaskCommentsOK, error)

GetTaskComments gets the comments for a task

The comments require a size parameter.

func (*Client) GetTaskDetails

func (a *Client) GetTaskDetails(params *GetTaskDetailsParams) (*GetTaskDetailsOK, error)

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 (*Client) ListTasks

func (a *Client) ListTasks(params *ListTasksParams) (*ListTasksOK, error)

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 (*Client) SetTransport

func (a *Client) SetTransport(transport client.Transport)

SetTransport changes the transport on the client

func (*Client) UpdateTask

func (a *Client) UpdateTask(params *UpdateTaskParams, authInfo client.AuthInfoWriter) (*UpdateTaskOK, error)

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 (*Client) UploadTaskFile

func (a *Client) UploadTaskFile(params *UploadTaskFileParams, authInfo client.AuthInfoWriter) (*UploadTaskFileCreated, error)

UploadTaskFile adds a file to a task

The file can't be larger than **5MB**

type CreateTaskCreated

type CreateTaskCreated struct {
}

CreateTaskCreated handles this case with default header values.

Task created

func NewCreateTaskCreated

func NewCreateTaskCreated() *CreateTaskCreated

NewCreateTaskCreated creates a CreateTaskCreated with default headers values

func (*CreateTaskCreated) Error

func (o *CreateTaskCreated) Error() string

type CreateTaskDefault

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

CreateTaskDefault handles this case with default header values.

CreateTaskDefault create task default

func NewCreateTaskDefault

func NewCreateTaskDefault(code int) *CreateTaskDefault

NewCreateTaskDefault creates a CreateTaskDefault with default headers values

func (*CreateTaskDefault) Code

func (o *CreateTaskDefault) Code() int

Code gets the status code for the create task default response

func (*CreateTaskDefault) Error

func (o *CreateTaskDefault) Error() string

type CreateTaskParams

type CreateTaskParams struct {

	/*Body
	  The task to create

	*/
	Body *models.Task
}

CreateTaskParams contains all the parameters to send to the API endpoint for the create task operation typically these are written to a http.Request

func NewCreateTaskParams

func NewCreateTaskParams() *CreateTaskParams

NewCreateTaskParams creates a new CreateTaskParams object with the default values initialized.

func (*CreateTaskParams) WithBody

func (o *CreateTaskParams) WithBody(body *models.Task) *CreateTaskParams

WithBody adds the body to the create task params

func (*CreateTaskParams) WriteToRequest

func (o *CreateTaskParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateTaskReader

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

CreateTaskReader is a Reader for the CreateTask structure.

func (*CreateTaskReader) ReadResponse

func (o *CreateTaskReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

type DeleteTaskDefault

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

DeleteTaskDefault handles this case with default header values.

DeleteTaskDefault delete task default

func NewDeleteTaskDefault

func NewDeleteTaskDefault(code int) *DeleteTaskDefault

NewDeleteTaskDefault creates a DeleteTaskDefault with default headers values

func (*DeleteTaskDefault) Code

func (o *DeleteTaskDefault) Code() int

Code gets the status code for the delete task default response

func (*DeleteTaskDefault) Error

func (o *DeleteTaskDefault) Error() string

type DeleteTaskNoContent

type DeleteTaskNoContent struct {
}

DeleteTaskNoContent handles this case with default header values.

Task deleted

func NewDeleteTaskNoContent

func NewDeleteTaskNoContent() *DeleteTaskNoContent

NewDeleteTaskNoContent creates a DeleteTaskNoContent with default headers values

func (*DeleteTaskNoContent) Error

func (o *DeleteTaskNoContent) Error() string

type DeleteTaskParams

type DeleteTaskParams struct {

	/*ID
	  The id of the item

	*/
	ID int64
}

DeleteTaskParams contains all the parameters to send to the API endpoint for the delete task operation typically these are written to a http.Request

func NewDeleteTaskParams

func NewDeleteTaskParams() *DeleteTaskParams

NewDeleteTaskParams creates a new DeleteTaskParams object with the default values initialized.

func (*DeleteTaskParams) WithID

func (o *DeleteTaskParams) WithID(id int64) *DeleteTaskParams

WithID adds the id to the delete task params

func (*DeleteTaskParams) WriteToRequest

func (o *DeleteTaskParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteTaskReader

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

DeleteTaskReader is a Reader for the DeleteTask structure.

func (*DeleteTaskReader) ReadResponse

func (o *DeleteTaskReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

type GetTaskCommentsDefault

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

GetTaskCommentsDefault handles this case with default header values.

GetTaskCommentsDefault get task comments default

func NewGetTaskCommentsDefault

func NewGetTaskCommentsDefault(code int) *GetTaskCommentsDefault

NewGetTaskCommentsDefault creates a GetTaskCommentsDefault with default headers values

func (*GetTaskCommentsDefault) Code

func (o *GetTaskCommentsDefault) Code() int

Code gets the status code for the get task comments default response

func (*GetTaskCommentsDefault) Error

func (o *GetTaskCommentsDefault) Error() string

type GetTaskCommentsOK

type GetTaskCommentsOK struct {
	Payload []*models.Comment
}

GetTaskCommentsOK handles this case with default header values.

The list of comments

func NewGetTaskCommentsOK

func NewGetTaskCommentsOK() *GetTaskCommentsOK

NewGetTaskCommentsOK creates a GetTaskCommentsOK with default headers values

func (*GetTaskCommentsOK) Error

func (o *GetTaskCommentsOK) Error() string

type GetTaskCommentsParams

type GetTaskCommentsParams struct {

	/*ID
	  The id of the item

	*/
	ID int64
	/*PageSize
	  Amount of items to return in a single page

	*/
	PageSize *int32
	/*Since
	  The created time of the oldest seen comment

	*/
	Since *strfmt.DateTime
}

GetTaskCommentsParams contains all the parameters to send to the API endpoint for the get task comments operation typically these are written to a http.Request

func NewGetTaskCommentsParams

func NewGetTaskCommentsParams() *GetTaskCommentsParams

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

func (*GetTaskCommentsParams) WithID

WithID adds the id to the get task comments params

func (*GetTaskCommentsParams) WithPageSize

func (o *GetTaskCommentsParams) WithPageSize(pageSize *int32) *GetTaskCommentsParams

WithPageSize adds the pageSize to the get task comments params

func (*GetTaskCommentsParams) WithSince

WithSince adds the since to the get task comments params

func (*GetTaskCommentsParams) WriteToRequest

func (o *GetTaskCommentsParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetTaskCommentsReader

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

GetTaskCommentsReader is a Reader for the GetTaskComments structure.

func (*GetTaskCommentsReader) ReadResponse

func (o *GetTaskCommentsReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

type GetTaskDetailsDefault

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

GetTaskDetailsDefault handles this case with default header values.

GetTaskDetailsDefault get task details default

func NewGetTaskDetailsDefault

func NewGetTaskDetailsDefault(code int) *GetTaskDetailsDefault

NewGetTaskDetailsDefault creates a GetTaskDetailsDefault with default headers values

func (*GetTaskDetailsDefault) Code

func (o *GetTaskDetailsDefault) Code() int

Code gets the status code for the get task details default response

func (*GetTaskDetailsDefault) Error

func (o *GetTaskDetailsDefault) Error() string

type GetTaskDetailsOK

type GetTaskDetailsOK struct {
	Payload *models.Task
}

GetTaskDetailsOK handles this case with default header values.

Task details

func NewGetTaskDetailsOK

func NewGetTaskDetailsOK() *GetTaskDetailsOK

NewGetTaskDetailsOK creates a GetTaskDetailsOK with default headers values

func (*GetTaskDetailsOK) Error

func (o *GetTaskDetailsOK) Error() string

type GetTaskDetailsParams

type GetTaskDetailsParams struct {

	/*ID
	  The id of the item

	*/
	ID int64
}

GetTaskDetailsParams contains all the parameters to send to the API endpoint for the get task details operation typically these are written to a http.Request

func NewGetTaskDetailsParams

func NewGetTaskDetailsParams() *GetTaskDetailsParams

NewGetTaskDetailsParams creates a new GetTaskDetailsParams object with the default values initialized.

func (*GetTaskDetailsParams) WithID

WithID adds the id to the get task details params

func (*GetTaskDetailsParams) WriteToRequest

func (o *GetTaskDetailsParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetTaskDetailsReader

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

GetTaskDetailsReader is a Reader for the GetTaskDetails structure.

func (*GetTaskDetailsReader) ReadResponse

func (o *GetTaskDetailsReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

type GetTaskDetailsUnprocessableEntity

type GetTaskDetailsUnprocessableEntity struct {
	Payload *models.ValidationError
}

GetTaskDetailsUnprocessableEntity handles this case with default header values.

Validation error

func NewGetTaskDetailsUnprocessableEntity

func NewGetTaskDetailsUnprocessableEntity() *GetTaskDetailsUnprocessableEntity

NewGetTaskDetailsUnprocessableEntity creates a GetTaskDetailsUnprocessableEntity with default headers values

func (*GetTaskDetailsUnprocessableEntity) Error

type ListTasksDefault

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

ListTasksDefault handles this case with default header values.

ListTasksDefault list tasks default

func NewListTasksDefault

func NewListTasksDefault(code int) *ListTasksDefault

NewListTasksDefault creates a ListTasksDefault with default headers values

func (*ListTasksDefault) Code

func (o *ListTasksDefault) Code() int

Code gets the status code for the list tasks default response

func (*ListTasksDefault) Error

func (o *ListTasksDefault) Error() string

type ListTasksOK

type ListTasksOK struct {
	/*the last task id known to the application
	 */
	XLastTaskID int64

	Payload []*models.TaskCard
}

ListTasksOK handles this case with default header values.

Successful response

func NewListTasksOK

func NewListTasksOK() *ListTasksOK

NewListTasksOK creates a ListTasksOK with default headers values

func (*ListTasksOK) Error

func (o *ListTasksOK) Error() string

type ListTasksParams

type ListTasksParams struct {

	/*PageSize
	  Amount of items to return in a single page

	*/
	PageSize *int32
	/*SinceID
	  The last id that was seen.

	*/
	SinceID *int64
	/*Status
	  the status to filter by

	*/
	Status []string
	/*Tags
	  the tags to filter by

	*/
	Tags []string
}

ListTasksParams contains all the parameters to send to the API endpoint for the list tasks operation typically these are written to a http.Request

func NewListTasksParams

func NewListTasksParams() *ListTasksParams

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

func (*ListTasksParams) WithPageSize

func (o *ListTasksParams) WithPageSize(pageSize *int32) *ListTasksParams

WithPageSize adds the pageSize to the list tasks params

func (*ListTasksParams) WithSinceID

func (o *ListTasksParams) WithSinceID(sinceId *int64) *ListTasksParams

WithSinceID adds the sinceId to the list tasks params

func (*ListTasksParams) WithStatus

func (o *ListTasksParams) WithStatus(status []string) *ListTasksParams

WithStatus adds the status to the list tasks params

func (*ListTasksParams) WithTags

func (o *ListTasksParams) WithTags(tags []string) *ListTasksParams

WithTags adds the tags to the list tasks params

func (*ListTasksParams) WriteToRequest

func (o *ListTasksParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListTasksReader

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

ListTasksReader is a Reader for the ListTasks structure.

func (*ListTasksReader) ReadResponse

func (o *ListTasksReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

type ListTasksUnprocessableEntity

type ListTasksUnprocessableEntity struct {
	Payload *models.ValidationError
}

ListTasksUnprocessableEntity handles this case with default header values.

Validation error

func NewListTasksUnprocessableEntity

func NewListTasksUnprocessableEntity() *ListTasksUnprocessableEntity

NewListTasksUnprocessableEntity creates a ListTasksUnprocessableEntity with default headers values

func (*ListTasksUnprocessableEntity) Error

type UpdateTaskDefault

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

UpdateTaskDefault handles this case with default header values.

UpdateTaskDefault update task default

func NewUpdateTaskDefault

func NewUpdateTaskDefault(code int) *UpdateTaskDefault

NewUpdateTaskDefault creates a UpdateTaskDefault with default headers values

func (*UpdateTaskDefault) Code

func (o *UpdateTaskDefault) Code() int

Code gets the status code for the update task default response

func (*UpdateTaskDefault) Error

func (o *UpdateTaskDefault) Error() string

type UpdateTaskOK

type UpdateTaskOK struct {
	Payload *models.Task
}

UpdateTaskOK handles this case with default header values.

Task details

func NewUpdateTaskOK

func NewUpdateTaskOK() *UpdateTaskOK

NewUpdateTaskOK creates a UpdateTaskOK with default headers values

func (*UpdateTaskOK) Error

func (o *UpdateTaskOK) Error() string

type UpdateTaskParams

type UpdateTaskParams struct {

	/*Body
	  The task to update

	*/
	Body *models.Task
	/*ID
	  The id of the item

	*/
	ID int64
}

UpdateTaskParams contains all the parameters to send to the API endpoint for the update task operation typically these are written to a http.Request

func NewUpdateTaskParams

func NewUpdateTaskParams() *UpdateTaskParams

NewUpdateTaskParams creates a new UpdateTaskParams object with the default values initialized.

func (*UpdateTaskParams) WithBody

func (o *UpdateTaskParams) WithBody(body *models.Task) *UpdateTaskParams

WithBody adds the body to the update task params

func (*UpdateTaskParams) WithID

func (o *UpdateTaskParams) WithID(id int64) *UpdateTaskParams

WithID adds the id to the update task params

func (*UpdateTaskParams) WriteToRequest

func (o *UpdateTaskParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateTaskReader

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

UpdateTaskReader is a Reader for the UpdateTask structure.

func (*UpdateTaskReader) ReadResponse

func (o *UpdateTaskReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

type UpdateTaskUnprocessableEntity

type UpdateTaskUnprocessableEntity struct {
	Payload *models.ValidationError
}

UpdateTaskUnprocessableEntity handles this case with default header values.

Validation error

func NewUpdateTaskUnprocessableEntity

func NewUpdateTaskUnprocessableEntity() *UpdateTaskUnprocessableEntity

NewUpdateTaskUnprocessableEntity creates a UpdateTaskUnprocessableEntity with default headers values

func (*UpdateTaskUnprocessableEntity) Error

type UploadTaskFileCreated

type UploadTaskFileCreated struct {
}

UploadTaskFileCreated handles this case with default header values.

File added

func NewUploadTaskFileCreated

func NewUploadTaskFileCreated() *UploadTaskFileCreated

NewUploadTaskFileCreated creates a UploadTaskFileCreated with default headers values

func (*UploadTaskFileCreated) Error

func (o *UploadTaskFileCreated) Error() string

type UploadTaskFileDefault

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

UploadTaskFileDefault handles this case with default header values.

UploadTaskFileDefault upload task file default

func NewUploadTaskFileDefault

func NewUploadTaskFileDefault(code int) *UploadTaskFileDefault

NewUploadTaskFileDefault creates a UploadTaskFileDefault with default headers values

func (*UploadTaskFileDefault) Code

func (o *UploadTaskFileDefault) Code() int

Code gets the status code for the upload task file default response

func (*UploadTaskFileDefault) Error

func (o *UploadTaskFileDefault) Error() string

type UploadTaskFileParams

type UploadTaskFileParams struct {

	/*Description
	  Extra information describing the file

	*/
	Description *string
	/*File
	  The file to upload

	*/
	File *os.File
	/*ID
	  The id of the item

	*/
	ID int64
}

UploadTaskFileParams contains all the parameters to send to the API endpoint for the upload task file operation typically these are written to a http.Request

func NewUploadTaskFileParams

func NewUploadTaskFileParams() *UploadTaskFileParams

NewUploadTaskFileParams creates a new UploadTaskFileParams object with the default values initialized.

func (*UploadTaskFileParams) WithDescription

func (o *UploadTaskFileParams) WithDescription(description *string) *UploadTaskFileParams

WithDescription adds the description to the upload task file params

func (*UploadTaskFileParams) WithFile

func (o *UploadTaskFileParams) WithFile(file *os.File) *UploadTaskFileParams

WithFile adds the file to the upload task file params

func (*UploadTaskFileParams) WithID

WithID adds the id to the upload task file params

func (*UploadTaskFileParams) WriteToRequest

func (o *UploadTaskFileParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UploadTaskFileReader

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

UploadTaskFileReader is a Reader for the UploadTaskFile structure.

func (*UploadTaskFileReader) ReadResponse

func (o *UploadTaskFileReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

Jump to

Keyboard shortcuts

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