task_manager

package
v0.0.0-...-162f8c7 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: Apache-2.0 Imports: 11 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 task manager API

func New

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

New creates a new task manager API client.

func (*Client) CreateTask

func (a *Client) CreateTask(params *CreateTaskParams) (*CreateTaskOK, error)

CreateTask creates task

func (*Client) DescribeTasks

func (a *Client) DescribeTasks(params *DescribeTasksParams) (*DescribeTasksOK, error)

DescribeTasks describes tasks with filter

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type CreateTaskOK

type CreateTaskOK struct {
	Payload *models.OpenpitrixCreateTaskResponse
}

CreateTaskOK handles this case with default header values.

CreateTaskOK create task o k

func NewCreateTaskOK

func NewCreateTaskOK() *CreateTaskOK

NewCreateTaskOK creates a CreateTaskOK with default headers values

func (*CreateTaskOK) Error

func (o *CreateTaskOK) Error() string

type CreateTaskParams

type CreateTaskParams struct {

	/*Body*/
	Body *models.OpenpitrixCreateTaskRequest

	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

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

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 DescribeTasksOK

type DescribeTasksOK struct {
	Payload *models.OpenpitrixDescribeTasksResponse
}

DescribeTasksOK handles this case with default header values.

DescribeTasksOK describe tasks o k

func NewDescribeTasksOK

func NewDescribeTasksOK() *DescribeTasksOK

NewDescribeTasksOK creates a DescribeTasksOK with default headers values

func (*DescribeTasksOK) Error

func (o *DescribeTasksOK) Error() string

type DescribeTasksParams

type DescribeTasksParams struct {

	/*Executor*/
	Executor *string
	/*JobID*/
	JobID []string
	/*Limit
	  default is 20, max value is 200.

	*/
	Limit *int64
	/*Offset
	  default is 0.

	*/
	Offset *int64
	/*Status*/
	Status []string
	/*TaskID*/
	TaskID []string

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

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

func NewDescribeTasksParams

func NewDescribeTasksParams() *DescribeTasksParams

NewDescribeTasksParams creates a new DescribeTasksParams object with the default values initialized.

func NewDescribeTasksParamsWithContext

func NewDescribeTasksParamsWithContext(ctx context.Context) *DescribeTasksParams

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

func NewDescribeTasksParamsWithHTTPClient

func NewDescribeTasksParamsWithHTTPClient(client *http.Client) *DescribeTasksParams

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

func NewDescribeTasksParamsWithTimeout

func NewDescribeTasksParamsWithTimeout(timeout time.Duration) *DescribeTasksParams

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

func (*DescribeTasksParams) SetContext

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

SetContext adds the context to the describe tasks params

func (*DescribeTasksParams) SetExecutor

func (o *DescribeTasksParams) SetExecutor(executor *string)

SetExecutor adds the executor to the describe tasks params

func (*DescribeTasksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the describe tasks params

func (*DescribeTasksParams) SetJobID

func (o *DescribeTasksParams) SetJobID(jobID []string)

SetJobID adds the jobId to the describe tasks params

func (*DescribeTasksParams) SetLimit

func (o *DescribeTasksParams) SetLimit(limit *int64)

SetLimit adds the limit to the describe tasks params

func (*DescribeTasksParams) SetOffset

func (o *DescribeTasksParams) SetOffset(offset *int64)

SetOffset adds the offset to the describe tasks params

func (*DescribeTasksParams) SetStatus

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

SetStatus adds the status to the describe tasks params

func (*DescribeTasksParams) SetTaskID

func (o *DescribeTasksParams) SetTaskID(taskID []string)

SetTaskID adds the taskId to the describe tasks params

func (*DescribeTasksParams) SetTimeout

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

SetTimeout adds the timeout to the describe tasks params

func (*DescribeTasksParams) WithContext

WithContext adds the context to the describe tasks params

func (*DescribeTasksParams) WithExecutor

func (o *DescribeTasksParams) WithExecutor(executor *string) *DescribeTasksParams

WithExecutor adds the executor to the describe tasks params

func (*DescribeTasksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the describe tasks params

func (*DescribeTasksParams) WithJobID

func (o *DescribeTasksParams) WithJobID(jobID []string) *DescribeTasksParams

WithJobID adds the jobID to the describe tasks params

func (*DescribeTasksParams) WithLimit

func (o *DescribeTasksParams) WithLimit(limit *int64) *DescribeTasksParams

WithLimit adds the limit to the describe tasks params

func (*DescribeTasksParams) WithOffset

func (o *DescribeTasksParams) WithOffset(offset *int64) *DescribeTasksParams

WithOffset adds the offset to the describe tasks params

func (*DescribeTasksParams) WithStatus

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

WithStatus adds the status to the describe tasks params

func (*DescribeTasksParams) WithTaskID

func (o *DescribeTasksParams) WithTaskID(taskID []string) *DescribeTasksParams

WithTaskID adds the taskID to the describe tasks params

func (*DescribeTasksParams) WithTimeout

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

WithTimeout adds the timeout to the describe tasks params

func (*DescribeTasksParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DescribeTasksReader

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

DescribeTasksReader is a Reader for the DescribeTasks structure.

func (*DescribeTasksReader) ReadResponse

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