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

package tasks

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

Index

Package Files

add_comment_to_task_parameters.go add_comment_to_task_responses.go create_task_parameters.go create_task_responses.go delete_task_parameters.go delete_task_responses.go get_task_comments_parameters.go get_task_comments_responses.go get_task_details_parameters.go get_task_details_responses.go list_tasks_parameters.go list_tasks_responses.go tasks_client.go update_task_parameters.go update_task_responses.go upload_task_file_parameters.go upload_task_file_responses.go

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

Comment added

func NewAddCommentToTaskCreated Uses

func NewAddCommentToTaskCreated() *AddCommentToTaskCreated

NewAddCommentToTaskCreated creates a AddCommentToTaskCreated with default headers values

func (*AddCommentToTaskCreated) Error Uses

func (o *AddCommentToTaskCreated) Error() string

type AddCommentToTaskDefault Uses

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 Uses

func NewAddCommentToTaskDefault(code int) *AddCommentToTaskDefault

NewAddCommentToTaskDefault creates a AddCommentToTaskDefault with default headers values

func (*AddCommentToTaskDefault) Code Uses

func (o *AddCommentToTaskDefault) Code() int

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

func (*AddCommentToTaskDefault) Error Uses

func (o *AddCommentToTaskDefault) Error() string

func (*AddCommentToTaskDefault) GetPayload Uses

func (o *AddCommentToTaskDefault) GetPayload() *models.Error

type AddCommentToTaskParams Uses

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 Uses

func NewAddCommentToTaskParams() *AddCommentToTaskParams

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

func NewAddCommentToTaskParamsWithContext Uses

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 Uses

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 Uses

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 Uses

func (o *AddCommentToTaskParams) SetBody(body AddCommentToTaskBody)

SetBody adds the body to the add comment to task params

func (*AddCommentToTaskParams) SetContext Uses

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

SetContext adds the context to the add comment to task params

func (*AddCommentToTaskParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the add comment to task params

func (*AddCommentToTaskParams) SetID Uses

func (o *AddCommentToTaskParams) SetID(id int64)

SetID adds the id to the add comment to task params

func (*AddCommentToTaskParams) SetTimeout Uses

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

SetTimeout adds the timeout to the add comment to task params

func (*AddCommentToTaskParams) WithBody Uses

func (o *AddCommentToTaskParams) WithBody(body AddCommentToTaskBody) *AddCommentToTaskParams

WithBody adds the body to the add comment to task params

func (*AddCommentToTaskParams) WithContext Uses

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

WithContext adds the context to the add comment to task params

func (*AddCommentToTaskParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the add comment to task params

func (*AddCommentToTaskParams) WithID Uses

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

WithID adds the id to the add comment to task params

func (*AddCommentToTaskParams) WithTimeout Uses

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

WithTimeout adds the timeout to the add comment to task params

func (*AddCommentToTaskParams) WriteToRequest Uses

func (o *AddCommentToTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AddCommentToTaskReader Uses

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

AddCommentToTaskReader is a Reader for the AddCommentToTask structure.

func (*AddCommentToTaskReader) ReadResponse Uses

func (o *AddCommentToTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type Client Uses

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

Client for tasks API

func New Uses

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

New creates a new tasks API client.

func (*Client) AddCommentToTask Uses

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 Uses

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 Uses

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 Uses

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

GetTaskComments gets the comments for a task

The comments require a size parameter.

func (*Client) GetTaskDetails Uses

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 Uses

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 Uses

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateTask Uses

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 Uses

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 Uses

type CreateTaskCreated struct {
}

CreateTaskCreated handles this case with default header values.

Task created

func NewCreateTaskCreated Uses

func NewCreateTaskCreated() *CreateTaskCreated

NewCreateTaskCreated creates a CreateTaskCreated with default headers values

func (*CreateTaskCreated) Error Uses

func (o *CreateTaskCreated) Error() string

type CreateTaskDefault Uses

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 Uses

func NewCreateTaskDefault(code int) *CreateTaskDefault

NewCreateTaskDefault creates a CreateTaskDefault with default headers values

func (*CreateTaskDefault) Code Uses

func (o *CreateTaskDefault) Code() int

Code gets the status code for the create task default response

func (*CreateTaskDefault) Error Uses

func (o *CreateTaskDefault) Error() string

func (*CreateTaskDefault) GetPayload Uses

func (o *CreateTaskDefault) GetPayload() *models.Error

type CreateTaskParams Uses

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 Uses

func NewCreateTaskParams() *CreateTaskParams

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

func NewCreateTaskParamsWithContext Uses

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 Uses

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 Uses

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 Uses

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

SetBody adds the body to the create task params

func (*CreateTaskParams) SetContext Uses

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

SetContext adds the context to the create task params

func (*CreateTaskParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the create task params

func (*CreateTaskParams) SetTimeout Uses

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

SetTimeout adds the timeout to the create task params

func (*CreateTaskParams) WithBody Uses

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

WithBody adds the body to the create task params

func (*CreateTaskParams) WithContext Uses

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

WithContext adds the context to the create task params

func (*CreateTaskParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the create task params

func (*CreateTaskParams) WithTimeout Uses

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

WithTimeout adds the timeout to the create task params

func (*CreateTaskParams) WriteToRequest Uses

func (o *CreateTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateTaskReader Uses

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

CreateTaskReader is a Reader for the CreateTask structure.

func (*CreateTaskReader) ReadResponse Uses

func (o *CreateTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteTaskDefault Uses

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 Uses

func NewDeleteTaskDefault(code int) *DeleteTaskDefault

NewDeleteTaskDefault creates a DeleteTaskDefault with default headers values

func (*DeleteTaskDefault) Code Uses

func (o *DeleteTaskDefault) Code() int

Code gets the status code for the delete task default response

func (*DeleteTaskDefault) Error Uses

func (o *DeleteTaskDefault) Error() string

func (*DeleteTaskDefault) GetPayload Uses

func (o *DeleteTaskDefault) GetPayload() *models.Error

type DeleteTaskNoContent Uses

type DeleteTaskNoContent struct {
}

DeleteTaskNoContent handles this case with default header values.

Task deleted

func NewDeleteTaskNoContent Uses

func NewDeleteTaskNoContent() *DeleteTaskNoContent

NewDeleteTaskNoContent creates a DeleteTaskNoContent with default headers values

func (*DeleteTaskNoContent) Error Uses

func (o *DeleteTaskNoContent) Error() string

type DeleteTaskParams Uses

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 Uses

func NewDeleteTaskParams() *DeleteTaskParams

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

func NewDeleteTaskParamsWithContext Uses

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 Uses

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 Uses

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 Uses

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

SetContext adds the context to the delete task params

func (*DeleteTaskParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the delete task params

func (*DeleteTaskParams) SetID Uses

func (o *DeleteTaskParams) SetID(id int64)

SetID adds the id to the delete task params

func (*DeleteTaskParams) SetTimeout Uses

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

SetTimeout adds the timeout to the delete task params

func (*DeleteTaskParams) WithContext Uses

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

WithContext adds the context to the delete task params

func (*DeleteTaskParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the delete task params

func (*DeleteTaskParams) WithID Uses

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

WithID adds the id to the delete task params

func (*DeleteTaskParams) WithTimeout Uses

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

WithTimeout adds the timeout to the delete task params

func (*DeleteTaskParams) WriteToRequest Uses

func (o *DeleteTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteTaskReader Uses

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

DeleteTaskReader is a Reader for the DeleteTask structure.

func (*DeleteTaskReader) ReadResponse Uses

func (o *DeleteTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetTaskCommentsDefault Uses

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 Uses

func NewGetTaskCommentsDefault(code int) *GetTaskCommentsDefault

NewGetTaskCommentsDefault creates a GetTaskCommentsDefault with default headers values

func (*GetTaskCommentsDefault) Code Uses

func (o *GetTaskCommentsDefault) Code() int

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

func (*GetTaskCommentsDefault) Error Uses

func (o *GetTaskCommentsDefault) Error() string

func (*GetTaskCommentsDefault) GetPayload Uses

func (o *GetTaskCommentsDefault) GetPayload() *models.Error

type GetTaskCommentsOK Uses

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

GetTaskCommentsOK handles this case with default header values.

The list of comments

func NewGetTaskCommentsOK Uses

func NewGetTaskCommentsOK() *GetTaskCommentsOK

NewGetTaskCommentsOK creates a GetTaskCommentsOK with default headers values

func (*GetTaskCommentsOK) Error Uses

func (o *GetTaskCommentsOK) Error() string

func (*GetTaskCommentsOK) GetPayload Uses

func (o *GetTaskCommentsOK) GetPayload() []*models.Comment

type GetTaskCommentsParams Uses

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 Uses

func NewGetTaskCommentsParams() *GetTaskCommentsParams

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

func NewGetTaskCommentsParamsWithContext Uses

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 Uses

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 Uses

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 Uses

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

SetContext adds the context to the get task comments params

func (*GetTaskCommentsParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the get task comments params

func (*GetTaskCommentsParams) SetID Uses

func (o *GetTaskCommentsParams) SetID(id int64)

SetID adds the id to the get task comments params

func (*GetTaskCommentsParams) SetPageSize Uses

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

SetPageSize adds the pageSize to the get task comments params

func (*GetTaskCommentsParams) SetSince Uses

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

SetSince adds the since to the get task comments params

func (*GetTaskCommentsParams) SetTimeout Uses

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

SetTimeout adds the timeout to the get task comments params

func (*GetTaskCommentsParams) WithContext Uses

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

WithContext adds the context to the get task comments params

func (*GetTaskCommentsParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the get task comments params

func (*GetTaskCommentsParams) WithID Uses

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

WithID adds the id to the get task comments params

func (*GetTaskCommentsParams) WithPageSize Uses

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

WithPageSize adds the pageSize to the get task comments params

func (*GetTaskCommentsParams) WithSince Uses

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

WithSince adds the since to the get task comments params

func (*GetTaskCommentsParams) WithTimeout Uses

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

WithTimeout adds the timeout to the get task comments params

func (*GetTaskCommentsParams) WriteToRequest Uses

func (o *GetTaskCommentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetTaskCommentsReader Uses

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

GetTaskCommentsReader is a Reader for the GetTaskComments structure.

func (*GetTaskCommentsReader) ReadResponse Uses

func (o *GetTaskCommentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetTaskDetailsDefault Uses

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 Uses

func NewGetTaskDetailsDefault(code int) *GetTaskDetailsDefault

NewGetTaskDetailsDefault creates a GetTaskDetailsDefault with default headers values

func (*GetTaskDetailsDefault) Code Uses

func (o *GetTaskDetailsDefault) Code() int

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

func (*GetTaskDetailsDefault) Error Uses

func (o *GetTaskDetailsDefault) Error() string

func (*GetTaskDetailsDefault) GetPayload Uses

func (o *GetTaskDetailsDefault) GetPayload() *models.Error

type GetTaskDetailsOK Uses

type GetTaskDetailsOK struct {
    Payload *models.Task
}

GetTaskDetailsOK handles this case with default header values.

Task details

func NewGetTaskDetailsOK Uses

func NewGetTaskDetailsOK() *GetTaskDetailsOK

NewGetTaskDetailsOK creates a GetTaskDetailsOK with default headers values

func (*GetTaskDetailsOK) Error Uses

func (o *GetTaskDetailsOK) Error() string

func (*GetTaskDetailsOK) GetPayload Uses

func (o *GetTaskDetailsOK) GetPayload() *models.Task

type GetTaskDetailsParams Uses

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 Uses

func NewGetTaskDetailsParams() *GetTaskDetailsParams

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

func NewGetTaskDetailsParamsWithContext Uses

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 Uses

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 Uses

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 Uses

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

SetContext adds the context to the get task details params

func (*GetTaskDetailsParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the get task details params

func (*GetTaskDetailsParams) SetID Uses

func (o *GetTaskDetailsParams) SetID(id int64)

SetID adds the id to the get task details params

func (*GetTaskDetailsParams) SetTimeout Uses

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

SetTimeout adds the timeout to the get task details params

func (*GetTaskDetailsParams) WithContext Uses

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

WithContext adds the context to the get task details params

func (*GetTaskDetailsParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the get task details params

func (*GetTaskDetailsParams) WithID Uses

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

WithID adds the id to the get task details params

func (*GetTaskDetailsParams) WithTimeout Uses

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

WithTimeout adds the timeout to the get task details params

func (*GetTaskDetailsParams) WriteToRequest Uses

func (o *GetTaskDetailsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetTaskDetailsReader Uses

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

GetTaskDetailsReader is a Reader for the GetTaskDetails structure.

func (*GetTaskDetailsReader) ReadResponse Uses

func (o *GetTaskDetailsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetTaskDetailsUnprocessableEntity Uses

type GetTaskDetailsUnprocessableEntity struct {
    Payload *models.ValidationError
}

GetTaskDetailsUnprocessableEntity handles this case with default header values.

Validation error

func NewGetTaskDetailsUnprocessableEntity Uses

func NewGetTaskDetailsUnprocessableEntity() *GetTaskDetailsUnprocessableEntity

NewGetTaskDetailsUnprocessableEntity creates a GetTaskDetailsUnprocessableEntity with default headers values

func (*GetTaskDetailsUnprocessableEntity) Error Uses

func (o *GetTaskDetailsUnprocessableEntity) Error() string

func (*GetTaskDetailsUnprocessableEntity) GetPayload Uses

func (o *GetTaskDetailsUnprocessableEntity) GetPayload() *models.ValidationError

type ListTasksDefault Uses

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 Uses

func NewListTasksDefault(code int) *ListTasksDefault

NewListTasksDefault creates a ListTasksDefault with default headers values

func (*ListTasksDefault) Code Uses

func (o *ListTasksDefault) Code() int

Code gets the status code for the list tasks default response

func (*ListTasksDefault) Error Uses

func (o *ListTasksDefault) Error() string

func (*ListTasksDefault) GetPayload Uses

func (o *ListTasksDefault) GetPayload() *models.Error

type ListTasksOK Uses

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 Uses

func NewListTasksOK() *ListTasksOK

NewListTasksOK creates a ListTasksOK with default headers values

func (*ListTasksOK) Error Uses

func (o *ListTasksOK) Error() string

func (*ListTasksOK) GetPayload Uses

func (o *ListTasksOK) GetPayload() []*models.TaskCard

type ListTasksParams Uses

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 Uses

func NewListTasksParams() *ListTasksParams

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

func NewListTasksParamsWithContext Uses

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 Uses

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 Uses

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 Uses

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

SetContext adds the context to the list tasks params

func (*ListTasksParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the list tasks params

func (*ListTasksParams) SetPageSize Uses

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

SetPageSize adds the pageSize to the list tasks params

func (*ListTasksParams) SetSinceID Uses

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

SetSinceID adds the sinceId to the list tasks params

func (*ListTasksParams) SetStatus Uses

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

SetStatus adds the status to the list tasks params

func (*ListTasksParams) SetTags Uses

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

SetTags adds the tags to the list tasks params

func (*ListTasksParams) SetTimeout Uses

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

SetTimeout adds the timeout to the list tasks params

func (*ListTasksParams) WithContext Uses

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

WithContext adds the context to the list tasks params

func (*ListTasksParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the list tasks params

func (*ListTasksParams) WithPageSize Uses

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

WithPageSize adds the pageSize to the list tasks params

func (*ListTasksParams) WithSinceID Uses

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

WithSinceID adds the sinceID to the list tasks params

func (*ListTasksParams) WithStatus Uses

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

WithStatus adds the status to the list tasks params

func (*ListTasksParams) WithTags Uses

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

WithTags adds the tags to the list tasks params

func (*ListTasksParams) WithTimeout Uses

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

WithTimeout adds the timeout to the list tasks params

func (*ListTasksParams) WriteToRequest Uses

func (o *ListTasksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListTasksReader Uses

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

ListTasksReader is a Reader for the ListTasks structure.

func (*ListTasksReader) ReadResponse Uses

func (o *ListTasksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListTasksUnprocessableEntity Uses

type ListTasksUnprocessableEntity struct {
    Payload *models.ValidationError
}

ListTasksUnprocessableEntity handles this case with default header values.

Validation error

func NewListTasksUnprocessableEntity Uses

func NewListTasksUnprocessableEntity() *ListTasksUnprocessableEntity

NewListTasksUnprocessableEntity creates a ListTasksUnprocessableEntity with default headers values

func (*ListTasksUnprocessableEntity) Error Uses

func (o *ListTasksUnprocessableEntity) Error() string

func (*ListTasksUnprocessableEntity) GetPayload Uses

func (o *ListTasksUnprocessableEntity) GetPayload() *models.ValidationError

type UpdateTaskDefault Uses

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 Uses

func NewUpdateTaskDefault(code int) *UpdateTaskDefault

NewUpdateTaskDefault creates a UpdateTaskDefault with default headers values

func (*UpdateTaskDefault) Code Uses

func (o *UpdateTaskDefault) Code() int

Code gets the status code for the update task default response

func (*UpdateTaskDefault) Error Uses

func (o *UpdateTaskDefault) Error() string

func (*UpdateTaskDefault) GetPayload Uses

func (o *UpdateTaskDefault) GetPayload() *models.Error

type UpdateTaskOK Uses

type UpdateTaskOK struct {
    Payload *models.Task
}

UpdateTaskOK handles this case with default header values.

Task details

func NewUpdateTaskOK Uses

func NewUpdateTaskOK() *UpdateTaskOK

NewUpdateTaskOK creates a UpdateTaskOK with default headers values

func (*UpdateTaskOK) Error Uses

func (o *UpdateTaskOK) Error() string

func (*UpdateTaskOK) GetPayload Uses

func (o *UpdateTaskOK) GetPayload() *models.Task

type UpdateTaskParams Uses

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 Uses

func NewUpdateTaskParams() *UpdateTaskParams

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

func NewUpdateTaskParamsWithContext Uses

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 Uses

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 Uses

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 Uses

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

SetBody adds the body to the update task params

func (*UpdateTaskParams) SetContext Uses

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

SetContext adds the context to the update task params

func (*UpdateTaskParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the update task params

func (*UpdateTaskParams) SetID Uses

func (o *UpdateTaskParams) SetID(id int64)

SetID adds the id to the update task params

func (*UpdateTaskParams) SetTimeout Uses

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

SetTimeout adds the timeout to the update task params

func (*UpdateTaskParams) WithBody Uses

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

WithBody adds the body to the update task params

func (*UpdateTaskParams) WithContext Uses

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

WithContext adds the context to the update task params

func (*UpdateTaskParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the update task params

func (*UpdateTaskParams) WithID Uses

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

WithID adds the id to the update task params

func (*UpdateTaskParams) WithTimeout Uses

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

WithTimeout adds the timeout to the update task params

func (*UpdateTaskParams) WriteToRequest Uses

func (o *UpdateTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateTaskReader Uses

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

UpdateTaskReader is a Reader for the UpdateTask structure.

func (*UpdateTaskReader) ReadResponse Uses

func (o *UpdateTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateTaskUnprocessableEntity Uses

type UpdateTaskUnprocessableEntity struct {
    Payload *models.ValidationError
}

UpdateTaskUnprocessableEntity handles this case with default header values.

Validation error

func NewUpdateTaskUnprocessableEntity Uses

func NewUpdateTaskUnprocessableEntity() *UpdateTaskUnprocessableEntity

NewUpdateTaskUnprocessableEntity creates a UpdateTaskUnprocessableEntity with default headers values

func (*UpdateTaskUnprocessableEntity) Error Uses

func (o *UpdateTaskUnprocessableEntity) Error() string

func (*UpdateTaskUnprocessableEntity) GetPayload Uses

func (o *UpdateTaskUnprocessableEntity) GetPayload() *models.ValidationError

type UploadTaskFileCreated Uses

type UploadTaskFileCreated struct {
}

UploadTaskFileCreated handles this case with default header values.

File added

func NewUploadTaskFileCreated Uses

func NewUploadTaskFileCreated() *UploadTaskFileCreated

NewUploadTaskFileCreated creates a UploadTaskFileCreated with default headers values

func (*UploadTaskFileCreated) Error Uses

func (o *UploadTaskFileCreated) Error() string

type UploadTaskFileDefault Uses

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 Uses

func NewUploadTaskFileDefault(code int) *UploadTaskFileDefault

NewUploadTaskFileDefault creates a UploadTaskFileDefault with default headers values

func (*UploadTaskFileDefault) Code Uses

func (o *UploadTaskFileDefault) Code() int

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

func (*UploadTaskFileDefault) Error Uses

func (o *UploadTaskFileDefault) Error() string

func (*UploadTaskFileDefault) GetPayload Uses

func (o *UploadTaskFileDefault) GetPayload() *models.Error

type UploadTaskFileParams Uses

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 Uses

func NewUploadTaskFileParams() *UploadTaskFileParams

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

func NewUploadTaskFileParamsWithContext Uses

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 Uses

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 Uses

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 Uses

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

SetContext adds the context to the upload task file params

func (*UploadTaskFileParams) SetDescription Uses

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

SetDescription adds the description to the upload task file params

func (*UploadTaskFileParams) SetFile Uses

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

SetFile adds the file to the upload task file params

func (*UploadTaskFileParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the upload task file params

func (*UploadTaskFileParams) SetID Uses

func (o *UploadTaskFileParams) SetID(id int64)

SetID adds the id to the upload task file params

func (*UploadTaskFileParams) SetTimeout Uses

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

SetTimeout adds the timeout to the upload task file params

func (*UploadTaskFileParams) WithContext Uses

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

WithContext adds the context to the upload task file params

func (*UploadTaskFileParams) WithDescription Uses

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

WithDescription adds the description to the upload task file params

func (*UploadTaskFileParams) WithFile Uses

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

WithFile adds the file to the upload task file params

func (*UploadTaskFileParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the upload task file params

func (*UploadTaskFileParams) WithID Uses

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

WithID adds the id to the upload task file params

func (*UploadTaskFileParams) WithTimeout Uses

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

WithTimeout adds the timeout to the upload task file params

func (*UploadTaskFileParams) WriteToRequest Uses

func (o *UploadTaskFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UploadTaskFileReader Uses

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

UploadTaskFileReader is a Reader for the UploadTaskFile structure.

func (*UploadTaskFileReader) ReadResponse Uses

func (o *UploadTaskFileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Package tasks imports 12 packages (graph) and is imported by 12 packages. Updated 2019-08-19. Refresh now. Tools for package owners.