tasks

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 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 {
	XErrorCode string

	Payload *models.Error
	// contains filtered or unexported fields
}

AddCommentToTaskDefault handles this case with default header values.

Error response

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

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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 NewAddCommentToTaskParamsWithContext

func NewAddCommentToTaskParamsWithContext(ctx context.Context) *AddCommentToTaskParams

NewAddCommentToTaskParamsWithContext creates a new AddCommentToTaskParams object with the default values initialized, and the ability to set a context for a request

func NewAddCommentToTaskParamsWithHTTPClient

func NewAddCommentToTaskParamsWithHTTPClient(client *http.Client) *AddCommentToTaskParams

NewAddCommentToTaskParamsWithHTTPClient creates a new AddCommentToTaskParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAddCommentToTaskParamsWithTimeout

func NewAddCommentToTaskParamsWithTimeout(timeout time.Duration) *AddCommentToTaskParams

NewAddCommentToTaskParamsWithTimeout creates a new AddCommentToTaskParams object with the default values initialized, and the ability to set a timeout on a request

func (*AddCommentToTaskParams) SetBody

SetBody adds the body to the add comment to task params

func (*AddCommentToTaskParams) SetContext

func (o *AddCommentToTaskParams) SetContext(ctx context.Context)

SetContext adds the context to the add comment to task params

func (*AddCommentToTaskParams) SetHTTPClient

func (o *AddCommentToTaskParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the add comment to task params

func (*AddCommentToTaskParams) SetID

func (o *AddCommentToTaskParams) SetID(id int64)

SetID adds the id to the add comment to task params

func (*AddCommentToTaskParams) SetTimeout

func (o *AddCommentToTaskParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the add comment to task params

func (*AddCommentToTaskParams) WithBody

WithBody adds the body to the add comment to task params

func (*AddCommentToTaskParams) WithContext

WithContext adds the context to the add comment to task params

func (*AddCommentToTaskParams) WithHTTPClient

func (o *AddCommentToTaskParams) WithHTTPClient(client *http.Client) *AddCommentToTaskParams

WithHTTPClient adds the HTTPClient to the add comment to task params

func (*AddCommentToTaskParams) WithID

WithID adds the id to the add comment to task params

func (*AddCommentToTaskParams) WithTimeout

WithTimeout adds the timeout to the add comment to task params

func (*AddCommentToTaskParams) WriteToRequest

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 runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type Client

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

Client for tasks API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new tasks API client.

func (*Client) AddCommentToTask

func (a *Client) AddCommentToTask(params *AddCommentToTaskParams, authInfo runtime.ClientAuthInfoWriter) (*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 runtime.ClientAuthInfoWriter) (*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 runtime.ClientAuthInfoWriter) (*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 runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateTask

func (a *Client) UpdateTask(params *UpdateTaskParams, authInfo runtime.ClientAuthInfoWriter) (*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 runtime.ClientAuthInfoWriter) (*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 {
	XErrorCode string

	Payload *models.Error
	// contains filtered or unexported fields
}

CreateTaskDefault handles this case with default header values.

Error response

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

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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 NewCreateTaskParamsWithContext

func NewCreateTaskParamsWithContext(ctx context.Context) *CreateTaskParams

NewCreateTaskParamsWithContext creates a new CreateTaskParams object with the default values initialized, and the ability to set a context for a request

func NewCreateTaskParamsWithHTTPClient

func NewCreateTaskParamsWithHTTPClient(client *http.Client) *CreateTaskParams

NewCreateTaskParamsWithHTTPClient creates a new CreateTaskParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateTaskParamsWithTimeout

func NewCreateTaskParamsWithTimeout(timeout time.Duration) *CreateTaskParams

NewCreateTaskParamsWithTimeout creates a new CreateTaskParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateTaskParams) SetBody

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

SetBody adds the body to the create task params

func (*CreateTaskParams) SetContext

func (o *CreateTaskParams) SetContext(ctx context.Context)

SetContext adds the context to the create task params

func (*CreateTaskParams) SetHTTPClient

func (o *CreateTaskParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create task params

func (*CreateTaskParams) SetTimeout

func (o *CreateTaskParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create task params

func (*CreateTaskParams) WithBody

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

WithBody adds the body to the create task params

func (*CreateTaskParams) WithContext

func (o *CreateTaskParams) WithContext(ctx context.Context) *CreateTaskParams

WithContext adds the context to the create task params

func (*CreateTaskParams) WithHTTPClient

func (o *CreateTaskParams) WithHTTPClient(client *http.Client) *CreateTaskParams

WithHTTPClient adds the HTTPClient to the create task params

func (*CreateTaskParams) WithTimeout

func (o *CreateTaskParams) WithTimeout(timeout time.Duration) *CreateTaskParams

WithTimeout adds the timeout to the create task params

func (*CreateTaskParams) WriteToRequest

func (o *CreateTaskParams) WriteToRequest(r runtime.ClientRequest, 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 runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteTaskDefault

type DeleteTaskDefault struct {
	XErrorCode string

	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteTaskDefault handles this case with default header values.

Error response

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

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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 NewDeleteTaskParamsWithContext

func NewDeleteTaskParamsWithContext(ctx context.Context) *DeleteTaskParams

NewDeleteTaskParamsWithContext creates a new DeleteTaskParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteTaskParamsWithHTTPClient

func NewDeleteTaskParamsWithHTTPClient(client *http.Client) *DeleteTaskParams

NewDeleteTaskParamsWithHTTPClient creates a new DeleteTaskParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteTaskParamsWithTimeout

func NewDeleteTaskParamsWithTimeout(timeout time.Duration) *DeleteTaskParams

NewDeleteTaskParamsWithTimeout creates a new DeleteTaskParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteTaskParams) SetContext

func (o *DeleteTaskParams) SetContext(ctx context.Context)

SetContext adds the context to the delete task params

func (*DeleteTaskParams) SetHTTPClient

func (o *DeleteTaskParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete task params

func (*DeleteTaskParams) SetID

func (o *DeleteTaskParams) SetID(id int64)

SetID adds the id to the delete task params

func (*DeleteTaskParams) SetTimeout

func (o *DeleteTaskParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete task params

func (*DeleteTaskParams) WithContext

func (o *DeleteTaskParams) WithContext(ctx context.Context) *DeleteTaskParams

WithContext adds the context to the delete task params

func (*DeleteTaskParams) WithHTTPClient

func (o *DeleteTaskParams) WithHTTPClient(client *http.Client) *DeleteTaskParams

WithHTTPClient adds the HTTPClient to the delete task params

func (*DeleteTaskParams) WithID

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

WithID adds the id to the delete task params

func (*DeleteTaskParams) WithTimeout

func (o *DeleteTaskParams) WithTimeout(timeout time.Duration) *DeleteTaskParams

WithTimeout adds the timeout to the delete task params

func (*DeleteTaskParams) WriteToRequest

func (o *DeleteTaskParams) WriteToRequest(r runtime.ClientRequest, 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 runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetTaskCommentsDefault

type GetTaskCommentsDefault struct {
	XErrorCode string

	Payload *models.Error
	// contains filtered or unexported fields
}

GetTaskCommentsDefault handles this case with default header values.

Error response

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

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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 NewGetTaskCommentsParamsWithContext

func NewGetTaskCommentsParamsWithContext(ctx context.Context) *GetTaskCommentsParams

NewGetTaskCommentsParamsWithContext creates a new GetTaskCommentsParams object with the default values initialized, and the ability to set a context for a request

func NewGetTaskCommentsParamsWithHTTPClient

func NewGetTaskCommentsParamsWithHTTPClient(client *http.Client) *GetTaskCommentsParams

NewGetTaskCommentsParamsWithHTTPClient creates a new GetTaskCommentsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetTaskCommentsParamsWithTimeout

func NewGetTaskCommentsParamsWithTimeout(timeout time.Duration) *GetTaskCommentsParams

NewGetTaskCommentsParamsWithTimeout creates a new GetTaskCommentsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetTaskCommentsParams) SetContext

func (o *GetTaskCommentsParams) SetContext(ctx context.Context)

SetContext adds the context to the get task comments params

func (*GetTaskCommentsParams) SetHTTPClient

func (o *GetTaskCommentsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get task comments params

func (*GetTaskCommentsParams) SetID

func (o *GetTaskCommentsParams) SetID(id int64)

SetID adds the id to the get task comments params

func (*GetTaskCommentsParams) SetPageSize

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

SetPageSize adds the pageSize to the get task comments params

func (*GetTaskCommentsParams) SetSince

func (o *GetTaskCommentsParams) SetSince(since *strfmt.DateTime)

SetSince adds the since to the get task comments params

func (*GetTaskCommentsParams) SetTimeout

func (o *GetTaskCommentsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get task comments params

func (*GetTaskCommentsParams) WithContext

WithContext adds the context to the get task comments params

func (*GetTaskCommentsParams) WithHTTPClient

func (o *GetTaskCommentsParams) WithHTTPClient(client *http.Client) *GetTaskCommentsParams

WithHTTPClient adds the HTTPClient to the get task comments params

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

func (o *GetTaskCommentsParams) WithTimeout(timeout time.Duration) *GetTaskCommentsParams

WithTimeout adds the timeout to the get task comments params

func (*GetTaskCommentsParams) WriteToRequest

func (o *GetTaskCommentsParams) WriteToRequest(r runtime.ClientRequest, 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 runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetTaskDetailsDefault

type GetTaskDetailsDefault struct {
	XErrorCode string

	Payload *models.Error
	// contains filtered or unexported fields
}

GetTaskDetailsDefault handles this case with default header values.

Error response

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

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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 NewGetTaskDetailsParamsWithContext

func NewGetTaskDetailsParamsWithContext(ctx context.Context) *GetTaskDetailsParams

NewGetTaskDetailsParamsWithContext creates a new GetTaskDetailsParams object with the default values initialized, and the ability to set a context for a request

func NewGetTaskDetailsParamsWithHTTPClient

func NewGetTaskDetailsParamsWithHTTPClient(client *http.Client) *GetTaskDetailsParams

NewGetTaskDetailsParamsWithHTTPClient creates a new GetTaskDetailsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetTaskDetailsParamsWithTimeout

func NewGetTaskDetailsParamsWithTimeout(timeout time.Duration) *GetTaskDetailsParams

NewGetTaskDetailsParamsWithTimeout creates a new GetTaskDetailsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetTaskDetailsParams) SetContext

func (o *GetTaskDetailsParams) SetContext(ctx context.Context)

SetContext adds the context to the get task details params

func (*GetTaskDetailsParams) SetHTTPClient

func (o *GetTaskDetailsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get task details params

func (*GetTaskDetailsParams) SetID

func (o *GetTaskDetailsParams) SetID(id int64)

SetID adds the id to the get task details params

func (*GetTaskDetailsParams) SetTimeout

func (o *GetTaskDetailsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get task details params

func (*GetTaskDetailsParams) WithContext

WithContext adds the context to the get task details params

func (*GetTaskDetailsParams) WithHTTPClient

func (o *GetTaskDetailsParams) WithHTTPClient(client *http.Client) *GetTaskDetailsParams

WithHTTPClient adds the HTTPClient to the get task details params

func (*GetTaskDetailsParams) WithID

WithID adds the id to the get task details params

func (*GetTaskDetailsParams) WithTimeout

func (o *GetTaskDetailsParams) WithTimeout(timeout time.Duration) *GetTaskDetailsParams

WithTimeout adds the timeout to the get task details params

func (*GetTaskDetailsParams) WriteToRequest

func (o *GetTaskDetailsParams) WriteToRequest(r runtime.ClientRequest, 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 runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received 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 {
	XErrorCode string

	Payload *models.Error
	// contains filtered or unexported fields
}

ListTasksDefault handles this case with default header values.

Error response

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

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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 NewListTasksParamsWithContext

func NewListTasksParamsWithContext(ctx context.Context) *ListTasksParams

NewListTasksParamsWithContext creates a new ListTasksParams object with the default values initialized, and the ability to set a context for a request

func NewListTasksParamsWithHTTPClient

func NewListTasksParamsWithHTTPClient(client *http.Client) *ListTasksParams

NewListTasksParamsWithHTTPClient creates a new ListTasksParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListTasksParamsWithTimeout

func NewListTasksParamsWithTimeout(timeout time.Duration) *ListTasksParams

NewListTasksParamsWithTimeout creates a new ListTasksParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListTasksParams) SetContext

func (o *ListTasksParams) SetContext(ctx context.Context)

SetContext adds the context to the list tasks params

func (*ListTasksParams) SetHTTPClient

func (o *ListTasksParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list tasks params

func (*ListTasksParams) SetPageSize

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

SetPageSize adds the pageSize to the list tasks params

func (*ListTasksParams) SetSinceID

func (o *ListTasksParams) SetSinceID(sinceID *int64)

SetSinceID adds the sinceId to the list tasks params

func (*ListTasksParams) SetStatus

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

SetStatus adds the status to the list tasks params

func (*ListTasksParams) SetTags

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

SetTags adds the tags to the list tasks params

func (*ListTasksParams) SetTimeout

func (o *ListTasksParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list tasks params

func (*ListTasksParams) WithContext

func (o *ListTasksParams) WithContext(ctx context.Context) *ListTasksParams

WithContext adds the context to the list tasks params

func (*ListTasksParams) WithHTTPClient

func (o *ListTasksParams) WithHTTPClient(client *http.Client) *ListTasksParams

WithHTTPClient adds the HTTPClient to the list tasks params

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

func (o *ListTasksParams) WithTimeout(timeout time.Duration) *ListTasksParams

WithTimeout adds the timeout to the list tasks params

func (*ListTasksParams) WriteToRequest

func (o *ListTasksParams) WriteToRequest(r runtime.ClientRequest, 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 runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received 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 {
	XErrorCode string

	Payload *models.Error
	// contains filtered or unexported fields
}

UpdateTaskDefault handles this case with default header values.

Error response

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

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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 NewUpdateTaskParamsWithContext

func NewUpdateTaskParamsWithContext(ctx context.Context) *UpdateTaskParams

NewUpdateTaskParamsWithContext creates a new UpdateTaskParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateTaskParamsWithHTTPClient

func NewUpdateTaskParamsWithHTTPClient(client *http.Client) *UpdateTaskParams

NewUpdateTaskParamsWithHTTPClient creates a new UpdateTaskParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateTaskParamsWithTimeout

func NewUpdateTaskParamsWithTimeout(timeout time.Duration) *UpdateTaskParams

NewUpdateTaskParamsWithTimeout creates a new UpdateTaskParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateTaskParams) SetBody

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

SetBody adds the body to the update task params

func (*UpdateTaskParams) SetContext

func (o *UpdateTaskParams) SetContext(ctx context.Context)

SetContext adds the context to the update task params

func (*UpdateTaskParams) SetHTTPClient

func (o *UpdateTaskParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update task params

func (*UpdateTaskParams) SetID

func (o *UpdateTaskParams) SetID(id int64)

SetID adds the id to the update task params

func (*UpdateTaskParams) SetTimeout

func (o *UpdateTaskParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update task params

func (*UpdateTaskParams) WithBody

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

WithBody adds the body to the update task params

func (*UpdateTaskParams) WithContext

func (o *UpdateTaskParams) WithContext(ctx context.Context) *UpdateTaskParams

WithContext adds the context to the update task params

func (*UpdateTaskParams) WithHTTPClient

func (o *UpdateTaskParams) WithHTTPClient(client *http.Client) *UpdateTaskParams

WithHTTPClient adds the HTTPClient 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) WithTimeout

func (o *UpdateTaskParams) WithTimeout(timeout time.Duration) *UpdateTaskParams

WithTimeout adds the timeout to the update task params

func (*UpdateTaskParams) WriteToRequest

func (o *UpdateTaskParams) WriteToRequest(r runtime.ClientRequest, 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 runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received 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 {
	XErrorCode string

	Payload *models.Error
	// contains filtered or unexported fields
}

UploadTaskFileDefault handles this case with default header values.

Error response

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 runtime.NamedReadCloser
	/*ID
	  The id of the item

	*/
	ID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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 NewUploadTaskFileParamsWithContext

func NewUploadTaskFileParamsWithContext(ctx context.Context) *UploadTaskFileParams

NewUploadTaskFileParamsWithContext creates a new UploadTaskFileParams object with the default values initialized, and the ability to set a context for a request

func NewUploadTaskFileParamsWithHTTPClient

func NewUploadTaskFileParamsWithHTTPClient(client *http.Client) *UploadTaskFileParams

NewUploadTaskFileParamsWithHTTPClient creates a new UploadTaskFileParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUploadTaskFileParamsWithTimeout

func NewUploadTaskFileParamsWithTimeout(timeout time.Duration) *UploadTaskFileParams

NewUploadTaskFileParamsWithTimeout creates a new UploadTaskFileParams object with the default values initialized, and the ability to set a timeout on a request

func (*UploadTaskFileParams) SetContext

func (o *UploadTaskFileParams) SetContext(ctx context.Context)

SetContext adds the context to the upload task file params

func (*UploadTaskFileParams) SetDescription

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

SetDescription adds the description to the upload task file params

func (*UploadTaskFileParams) SetFile

func (o *UploadTaskFileParams) SetFile(file runtime.NamedReadCloser)

SetFile adds the file to the upload task file params

func (*UploadTaskFileParams) SetHTTPClient

func (o *UploadTaskFileParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the upload task file params

func (*UploadTaskFileParams) SetID

func (o *UploadTaskFileParams) SetID(id int64)

SetID adds the id to the upload task file params

func (*UploadTaskFileParams) SetTimeout

func (o *UploadTaskFileParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the upload task file params

func (*UploadTaskFileParams) WithContext

WithContext adds the context to the upload task file params

func (*UploadTaskFileParams) WithDescription

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

WithDescription adds the description to the upload task file params

func (*UploadTaskFileParams) WithFile

WithFile adds the file to the upload task file params

func (*UploadTaskFileParams) WithHTTPClient

func (o *UploadTaskFileParams) WithHTTPClient(client *http.Client) *UploadTaskFileParams

WithHTTPClient adds the HTTPClient to the upload task file params

func (*UploadTaskFileParams) WithID

WithID adds the id to the upload task file params

func (*UploadTaskFileParams) WithTimeout

func (o *UploadTaskFileParams) WithTimeout(timeout time.Duration) *UploadTaskFileParams

WithTimeout adds the timeout to the upload task file params

func (*UploadTaskFileParams) WriteToRequest

func (o *UploadTaskFileParams) WriteToRequest(r runtime.ClientRequest, 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 runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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