jobs_service

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

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 jobs service API

func New

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

New creates a new jobs service API client.

func (*Client) ListTasksLogs

func (a *Client) ListTasksLogs(params *ListTasksLogsParams) (*ListTasksLogsOK, error)

ListTasksLogs technicals logs in Json or c s v format

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UserControlJob

func (a *Client) UserControlJob(params *UserControlJobParams) (*UserControlJobOK, error)

UserControlJob sends control commands to one or many jobs tasks

func (*Client) UserCreateJob

func (a *Client) UserCreateJob(params *UserCreateJobParams) (*UserCreateJobOK, error)

UserCreateJob creates a predefined job to be run directly

func (*Client) UserDeleteTasks

func (a *Client) UserDeleteTasks(params *UserDeleteTasksParams) (*UserDeleteTasksOK, error)

UserDeleteTasks sends a control command to clean tasks on a given job

func (*Client) UserListJobs

func (a *Client) UserListJobs(params *UserListJobsParams) (*UserListJobsOK, error)

UserListJobs lists jobs associated with current user

type ListTasksLogsOK

type ListTasksLogsOK struct {
	Payload *models.RestLogMessageCollection
}

ListTasksLogsOK handles this case with default header values.

ListTasksLogsOK list tasks logs o k

func NewListTasksLogsOK

func NewListTasksLogsOK() *ListTasksLogsOK

NewListTasksLogsOK creates a ListTasksLogsOK with default headers values

func (*ListTasksLogsOK) Error

func (o *ListTasksLogsOK) Error() string

type ListTasksLogsParams

type ListTasksLogsParams struct {

	/*Body*/
	Body *models.LogListLogRequest

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

ListTasksLogsParams contains all the parameters to send to the API endpoint for the list tasks logs operation typically these are written to a http.Request

func NewListTasksLogsParams

func NewListTasksLogsParams() *ListTasksLogsParams

NewListTasksLogsParams creates a new ListTasksLogsParams object with the default values initialized.

func NewListTasksLogsParamsWithContext

func NewListTasksLogsParamsWithContext(ctx context.Context) *ListTasksLogsParams

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

func NewListTasksLogsParamsWithHTTPClient

func NewListTasksLogsParamsWithHTTPClient(client *http.Client) *ListTasksLogsParams

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

func NewListTasksLogsParamsWithTimeout

func NewListTasksLogsParamsWithTimeout(timeout time.Duration) *ListTasksLogsParams

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

func (*ListTasksLogsParams) SetBody

func (o *ListTasksLogsParams) SetBody(body *models.LogListLogRequest)

SetBody adds the body to the list tasks logs params

func (*ListTasksLogsParams) SetContext

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

SetContext adds the context to the list tasks logs params

func (*ListTasksLogsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list tasks logs params

func (*ListTasksLogsParams) SetTimeout

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

SetTimeout adds the timeout to the list tasks logs params

func (*ListTasksLogsParams) WithBody

WithBody adds the body to the list tasks logs params

func (*ListTasksLogsParams) WithContext

WithContext adds the context to the list tasks logs params

func (*ListTasksLogsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list tasks logs params

func (*ListTasksLogsParams) WithTimeout

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

WithTimeout adds the timeout to the list tasks logs params

func (*ListTasksLogsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListTasksLogsReader

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

ListTasksLogsReader is a Reader for the ListTasksLogs structure.

func (*ListTasksLogsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserControlJobOK

type UserControlJobOK struct {
	Payload *models.JobsCtrlCommandResponse
}

UserControlJobOK handles this case with default header values.

UserControlJobOK user control job o k

func NewUserControlJobOK

func NewUserControlJobOK() *UserControlJobOK

NewUserControlJobOK creates a UserControlJobOK with default headers values

func (*UserControlJobOK) Error

func (o *UserControlJobOK) Error() string

type UserControlJobParams

type UserControlJobParams struct {

	/*Body*/
	Body *models.JobsCtrlCommand

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

UserControlJobParams contains all the parameters to send to the API endpoint for the user control job operation typically these are written to a http.Request

func NewUserControlJobParams

func NewUserControlJobParams() *UserControlJobParams

NewUserControlJobParams creates a new UserControlJobParams object with the default values initialized.

func NewUserControlJobParamsWithContext

func NewUserControlJobParamsWithContext(ctx context.Context) *UserControlJobParams

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

func NewUserControlJobParamsWithHTTPClient

func NewUserControlJobParamsWithHTTPClient(client *http.Client) *UserControlJobParams

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

func NewUserControlJobParamsWithTimeout

func NewUserControlJobParamsWithTimeout(timeout time.Duration) *UserControlJobParams

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

func (*UserControlJobParams) SetBody

func (o *UserControlJobParams) SetBody(body *models.JobsCtrlCommand)

SetBody adds the body to the user control job params

func (*UserControlJobParams) SetContext

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

SetContext adds the context to the user control job params

func (*UserControlJobParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user control job params

func (*UserControlJobParams) SetTimeout

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

SetTimeout adds the timeout to the user control job params

func (*UserControlJobParams) WithBody

WithBody adds the body to the user control job params

func (*UserControlJobParams) WithContext

WithContext adds the context to the user control job params

func (*UserControlJobParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user control job params

func (*UserControlJobParams) WithTimeout

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

WithTimeout adds the timeout to the user control job params

func (*UserControlJobParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserControlJobReader

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

UserControlJobReader is a Reader for the UserControlJob structure.

func (*UserControlJobReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserCreateJobOK

type UserCreateJobOK struct {
	Payload *models.RestUserJobResponse
}

UserCreateJobOK handles this case with default header values.

UserCreateJobOK user create job o k

func NewUserCreateJobOK

func NewUserCreateJobOK() *UserCreateJobOK

NewUserCreateJobOK creates a UserCreateJobOK with default headers values

func (*UserCreateJobOK) Error

func (o *UserCreateJobOK) Error() string

type UserCreateJobParams

type UserCreateJobParams struct {

	/*JobName*/
	JobName string
	/*Body*/
	Body *models.RestUserJobRequest

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

UserCreateJobParams contains all the parameters to send to the API endpoint for the user create job operation typically these are written to a http.Request

func NewUserCreateJobParams

func NewUserCreateJobParams() *UserCreateJobParams

NewUserCreateJobParams creates a new UserCreateJobParams object with the default values initialized.

func NewUserCreateJobParamsWithContext

func NewUserCreateJobParamsWithContext(ctx context.Context) *UserCreateJobParams

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

func NewUserCreateJobParamsWithHTTPClient

func NewUserCreateJobParamsWithHTTPClient(client *http.Client) *UserCreateJobParams

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

func NewUserCreateJobParamsWithTimeout

func NewUserCreateJobParamsWithTimeout(timeout time.Duration) *UserCreateJobParams

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

func (*UserCreateJobParams) SetBody

func (o *UserCreateJobParams) SetBody(body *models.RestUserJobRequest)

SetBody adds the body to the user create job params

func (*UserCreateJobParams) SetContext

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

SetContext adds the context to the user create job params

func (*UserCreateJobParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user create job params

func (*UserCreateJobParams) SetJobName

func (o *UserCreateJobParams) SetJobName(jobName string)

SetJobName adds the jobName to the user create job params

func (*UserCreateJobParams) SetTimeout

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

SetTimeout adds the timeout to the user create job params

func (*UserCreateJobParams) WithBody

WithBody adds the body to the user create job params

func (*UserCreateJobParams) WithContext

WithContext adds the context to the user create job params

func (*UserCreateJobParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user create job params

func (*UserCreateJobParams) WithJobName

func (o *UserCreateJobParams) WithJobName(jobName string) *UserCreateJobParams

WithJobName adds the jobName to the user create job params

func (*UserCreateJobParams) WithTimeout

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

WithTimeout adds the timeout to the user create job params

func (*UserCreateJobParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserCreateJobReader

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

UserCreateJobReader is a Reader for the UserCreateJob structure.

func (*UserCreateJobReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserDeleteTasksOK

type UserDeleteTasksOK struct {
	Payload *models.JobsDeleteTasksResponse
}

UserDeleteTasksOK handles this case with default header values.

UserDeleteTasksOK user delete tasks o k

func NewUserDeleteTasksOK

func NewUserDeleteTasksOK() *UserDeleteTasksOK

NewUserDeleteTasksOK creates a UserDeleteTasksOK with default headers values

func (*UserDeleteTasksOK) Error

func (o *UserDeleteTasksOK) Error() string

type UserDeleteTasksParams

type UserDeleteTasksParams struct {

	/*Body*/
	Body *models.JobsDeleteTasksRequest

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

UserDeleteTasksParams contains all the parameters to send to the API endpoint for the user delete tasks operation typically these are written to a http.Request

func NewUserDeleteTasksParams

func NewUserDeleteTasksParams() *UserDeleteTasksParams

NewUserDeleteTasksParams creates a new UserDeleteTasksParams object with the default values initialized.

func NewUserDeleteTasksParamsWithContext

func NewUserDeleteTasksParamsWithContext(ctx context.Context) *UserDeleteTasksParams

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

func NewUserDeleteTasksParamsWithHTTPClient

func NewUserDeleteTasksParamsWithHTTPClient(client *http.Client) *UserDeleteTasksParams

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

func NewUserDeleteTasksParamsWithTimeout

func NewUserDeleteTasksParamsWithTimeout(timeout time.Duration) *UserDeleteTasksParams

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

func (*UserDeleteTasksParams) SetBody

SetBody adds the body to the user delete tasks params

func (*UserDeleteTasksParams) SetContext

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

SetContext adds the context to the user delete tasks params

func (*UserDeleteTasksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user delete tasks params

func (*UserDeleteTasksParams) SetTimeout

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

SetTimeout adds the timeout to the user delete tasks params

func (*UserDeleteTasksParams) WithBody

WithBody adds the body to the user delete tasks params

func (*UserDeleteTasksParams) WithContext

WithContext adds the context to the user delete tasks params

func (*UserDeleteTasksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user delete tasks params

func (*UserDeleteTasksParams) WithTimeout

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

WithTimeout adds the timeout to the user delete tasks params

func (*UserDeleteTasksParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserDeleteTasksReader

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

UserDeleteTasksReader is a Reader for the UserDeleteTasks structure.

func (*UserDeleteTasksReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserListJobsOK

type UserListJobsOK struct {
	Payload *models.RestUserJobsCollection
}

UserListJobsOK handles this case with default header values.

UserListJobsOK user list jobs o k

func NewUserListJobsOK

func NewUserListJobsOK() *UserListJobsOK

NewUserListJobsOK creates a UserListJobsOK with default headers values

func (*UserListJobsOK) Error

func (o *UserListJobsOK) Error() string

type UserListJobsParams

type UserListJobsParams struct {

	/*Body*/
	Body *models.JobsListJobsRequest

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

UserListJobsParams contains all the parameters to send to the API endpoint for the user list jobs operation typically these are written to a http.Request

func NewUserListJobsParams

func NewUserListJobsParams() *UserListJobsParams

NewUserListJobsParams creates a new UserListJobsParams object with the default values initialized.

func NewUserListJobsParamsWithContext

func NewUserListJobsParamsWithContext(ctx context.Context) *UserListJobsParams

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

func NewUserListJobsParamsWithHTTPClient

func NewUserListJobsParamsWithHTTPClient(client *http.Client) *UserListJobsParams

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

func NewUserListJobsParamsWithTimeout

func NewUserListJobsParamsWithTimeout(timeout time.Duration) *UserListJobsParams

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

func (*UserListJobsParams) SetBody

func (o *UserListJobsParams) SetBody(body *models.JobsListJobsRequest)

SetBody adds the body to the user list jobs params

func (*UserListJobsParams) SetContext

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

SetContext adds the context to the user list jobs params

func (*UserListJobsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user list jobs params

func (*UserListJobsParams) SetTimeout

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

SetTimeout adds the timeout to the user list jobs params

func (*UserListJobsParams) WithBody

WithBody adds the body to the user list jobs params

func (*UserListJobsParams) WithContext

WithContext adds the context to the user list jobs params

func (*UserListJobsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user list jobs params

func (*UserListJobsParams) WithTimeout

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

WithTimeout adds the timeout to the user list jobs params

func (*UserListJobsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserListJobsReader

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

UserListJobsReader is a Reader for the UserListJobs structure.

func (*UserListJobsReader) ReadResponse

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