task

package
v0.0.0-...-23ce5c3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 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 API

func New

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

New creates a new task API client.

func (*Client) CreateTask

func (a *Client) CreateTask(params *CreateTaskParams, authInfo runtime.ClientAuthInfoWriter) (*CreateTaskOK, error)

CreateTask Create a task on the server. This will generally trigger a server-side background "Task", which ID will be returned in the PydioResponse['tasks'] array

func (*Client) DeleteTask

func (a *Client) DeleteTask(params *DeleteTaskParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteTaskOK, error)

DeleteTask Update a task on the server.

func (*Client) GetTaskInfo

func (a *Client) GetTaskInfo(params *GetTaskInfoParams, authInfo runtime.ClientAuthInfoWriter) (*GetTaskInfoOK, error)

GetTaskInfo Get information about a currently running task Id

func (*Client) ListTasks

func (a *Client) ListTasks(params *ListTasksParams, authInfo runtime.ClientAuthInfoWriter) (*ListTasksOK, error)

ListTasks List tasks currently running on the server (and visible to the current user).

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 Update a task on the server.

type CreateTaskOK

type CreateTaskOK struct {
	Payload *models.Task
}

CreateTaskOK handles this case with default header values.

Successful Response

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 {

	/*RequestBody
	  JSON Task object

	*/
	RequestBody *models.Task
	/*TaskID
	  Task to launch on the server

	*/
	TaskID string

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

func (o *CreateTaskParams) SetRequestBody(requestBody *models.Task)

SetRequestBody adds the requestBody to the create task params

func (*CreateTaskParams) SetTaskID

func (o *CreateTaskParams) SetTaskID(taskID string)

SetTaskID adds the taskId 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) 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) WithRequestBody

func (o *CreateTaskParams) WithRequestBody(requestBody *models.Task) *CreateTaskParams

WithRequestBody adds the requestBody to the create task params

func (*CreateTaskParams) WithTaskID

func (o *CreateTaskParams) WithTaskID(taskID string) *CreateTaskParams

WithTaskID adds the taskID 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 DeleteTaskOK

type DeleteTaskOK struct {
	Payload *models.Task
}

DeleteTaskOK handles this case with default header values.

Successful Response

func NewDeleteTaskOK

func NewDeleteTaskOK() *DeleteTaskOK

NewDeleteTaskOK creates a DeleteTaskOK with default headers values

func (*DeleteTaskOK) Error

func (o *DeleteTaskOK) Error() string

type DeleteTaskParams

type DeleteTaskParams struct {

	/*TaskID
	  Task to delete on the server

	*/
	TaskID string

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

func (o *DeleteTaskParams) SetTaskID(taskID string)

SetTaskID adds the taskId 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) WithTaskID

func (o *DeleteTaskParams) WithTaskID(taskID string) *DeleteTaskParams

WithTaskID adds the taskID 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 GetTaskInfoOK

type GetTaskInfoOK struct {
	Payload *models.Task
}

GetTaskInfoOK handles this case with default header values.

Successful Response

func NewGetTaskInfoOK

func NewGetTaskInfoOK() *GetTaskInfoOK

NewGetTaskInfoOK creates a GetTaskInfoOK with default headers values

func (*GetTaskInfoOK) Error

func (o *GetTaskInfoOK) Error() string

type GetTaskInfoParams

type GetTaskInfoParams struct {

	/*TaskID
	  Task to monitor on the server

	*/
	TaskID string

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

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

func NewGetTaskInfoParams

func NewGetTaskInfoParams() *GetTaskInfoParams

NewGetTaskInfoParams creates a new GetTaskInfoParams object with the default values initialized.

func NewGetTaskInfoParamsWithContext

func NewGetTaskInfoParamsWithContext(ctx context.Context) *GetTaskInfoParams

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

func NewGetTaskInfoParamsWithHTTPClient

func NewGetTaskInfoParamsWithHTTPClient(client *http.Client) *GetTaskInfoParams

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

func NewGetTaskInfoParamsWithTimeout

func NewGetTaskInfoParamsWithTimeout(timeout time.Duration) *GetTaskInfoParams

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

func (*GetTaskInfoParams) SetContext

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

SetContext adds the context to the get task info params

func (*GetTaskInfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get task info params

func (*GetTaskInfoParams) SetTaskID

func (o *GetTaskInfoParams) SetTaskID(taskID string)

SetTaskID adds the taskId to the get task info params

func (*GetTaskInfoParams) SetTimeout

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

SetTimeout adds the timeout to the get task info params

func (*GetTaskInfoParams) WithContext

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

WithContext adds the context to the get task info params

func (*GetTaskInfoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get task info params

func (*GetTaskInfoParams) WithTaskID

func (o *GetTaskInfoParams) WithTaskID(taskID string) *GetTaskInfoParams

WithTaskID adds the taskID to the get task info params

func (*GetTaskInfoParams) WithTimeout

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

WithTimeout adds the timeout to the get task info params

func (*GetTaskInfoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTaskInfoReader

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

GetTaskInfoReader is a Reader for the GetTaskInfo structure.

func (*GetTaskInfoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListTasksOK

type ListTasksOK struct {
	Payload []*models.Task
}

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 {

	/*Filter
	  additional filters for task listing (JSON serialized)

	*/
	Filter *string
	/*Path
	  One or more node pathes

	*/
	Path []string
	/*WorkspaceID
	  Id or Alias of the workspace

	*/
	WorkspaceID 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) SetFilter

func (o *ListTasksParams) SetFilter(filter *string)

SetFilter adds the filter 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) SetPath

func (o *ListTasksParams) SetPath(path []string)

SetPath adds the path 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) SetWorkspaceID

func (o *ListTasksParams) SetWorkspaceID(workspaceID string)

SetWorkspaceID adds the workspaceId 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) WithFilter

func (o *ListTasksParams) WithFilter(filter *string) *ListTasksParams

WithFilter adds the filter 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) WithPath

func (o *ListTasksParams) WithPath(path []string) *ListTasksParams

WithPath adds the path 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) WithWorkspaceID

func (o *ListTasksParams) WithWorkspaceID(workspaceID string) *ListTasksParams

WithWorkspaceID adds the workspaceID 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 UpdateTaskOK

type UpdateTaskOK struct {
	Payload *models.Task
}

UpdateTaskOK handles this case with default header values.

Successful Response

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 {

	/*RequestBody
	  JSON Diff describing the patches to apply on the task object

	*/
	RequestBody *models.Task
	/*TaskID
	  Task to update on the server

	*/
	TaskID string

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

func (o *UpdateTaskParams) SetRequestBody(requestBody *models.Task)

SetRequestBody adds the requestBody to the update task params

func (*UpdateTaskParams) SetTaskID

func (o *UpdateTaskParams) SetTaskID(taskID string)

SetTaskID adds the taskId 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) 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) WithRequestBody

func (o *UpdateTaskParams) WithRequestBody(requestBody *models.Task) *UpdateTaskParams

WithRequestBody adds the requestBody to the update task params

func (*UpdateTaskParams) WithTaskID

func (o *UpdateTaskParams) WithTaskID(taskID string) *UpdateTaskParams

WithTaskID adds the taskID 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.

Jump to

Keyboard shortcuts

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