tasks

package
v0.0.0-...-91b84f5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 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 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) GetTasks

func (a *Client) GetTasks(params *GetTasksParams) (*GetTasksOK, error)

GetTasks gets next task

Gets the next task in the queue, ready for processing. Consumers should start processing tasks in order. No other consumer can retrieve this task.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetTasksDefault

type GetTasksDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetTasksDefault handles this case with default header values.

Unexpected error

func NewGetTasksDefault

func NewGetTasksDefault(code int) *GetTasksDefault

NewGetTasksDefault creates a GetTasksDefault with default headers values

func (*GetTasksDefault) Code

func (o *GetTasksDefault) Code() int

Code gets the status code for the get tasks default response

func (*GetTasksDefault) Error

func (o *GetTasksDefault) Error() string

type GetTasksOK

type GetTasksOK struct {
	Payload *models.TaskWrapper
}

GetTasksOK handles this case with default header values.

Task information

func NewGetTasksOK

func NewGetTasksOK() *GetTasksOK

NewGetTasksOK creates a GetTasksOK with default headers values

func (*GetTasksOK) Error

func (o *GetTasksOK) Error() string

type GetTasksParams

type GetTasksParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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

func NewGetTasksParams

func NewGetTasksParams() *GetTasksParams

NewGetTasksParams creates a new GetTasksParams object with the default values initialized.

func NewGetTasksParamsWithContext

func NewGetTasksParamsWithContext(ctx context.Context) *GetTasksParams

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

func NewGetTasksParamsWithHTTPClient

func NewGetTasksParamsWithHTTPClient(client *http.Client) *GetTasksParams

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

func NewGetTasksParamsWithTimeout

func NewGetTasksParamsWithTimeout(timeout time.Duration) *GetTasksParams

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

func (*GetTasksParams) SetContext

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

SetContext adds the context to the get tasks params

func (*GetTasksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get tasks params

func (*GetTasksParams) SetTimeout

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

SetTimeout adds the timeout to the get tasks params

func (*GetTasksParams) WithContext

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

WithContext adds the context to the get tasks params

func (*GetTasksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get tasks params

func (*GetTasksParams) WithTimeout

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

WithTimeout adds the timeout to the get tasks params

func (*GetTasksParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTasksReader

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

GetTasksReader is a Reader for the GetTasks structure.

func (*GetTasksReader) ReadResponse

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