tasks

package
v0.0.0-...-cfedc03 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 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 (*Client) GetTaskStatus

func (a *Client) GetTaskStatus(params *GetTaskStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTaskStatusOK, error)

GetTaskStatus gets background task status

Get background task status by task uuid

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetTaskStatus(params *GetTaskStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTaskStatusOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new tasks API client.

type GetTaskStatusBadRequest

type GetTaskStatusBadRequest struct {
	Payload *models.HTTPError
}
GetTaskStatusBadRequest describes a response with status code 400, with default header values.

bad request

func NewGetTaskStatusBadRequest

func NewGetTaskStatusBadRequest() *GetTaskStatusBadRequest

NewGetTaskStatusBadRequest creates a GetTaskStatusBadRequest with default headers values

func (*GetTaskStatusBadRequest) Error

func (o *GetTaskStatusBadRequest) Error() string

func (*GetTaskStatusBadRequest) GetPayload

func (o *GetTaskStatusBadRequest) GetPayload() *models.HTTPError

func (*GetTaskStatusBadRequest) IsClientError

func (o *GetTaskStatusBadRequest) IsClientError() bool

IsClientError returns true when this get task status bad request response has a 4xx status code

func (*GetTaskStatusBadRequest) IsCode

func (o *GetTaskStatusBadRequest) IsCode(code int) bool

IsCode returns true when this get task status bad request response a status code equal to that given

func (*GetTaskStatusBadRequest) IsRedirect

func (o *GetTaskStatusBadRequest) IsRedirect() bool

IsRedirect returns true when this get task status bad request response has a 3xx status code

func (*GetTaskStatusBadRequest) IsServerError

func (o *GetTaskStatusBadRequest) IsServerError() bool

IsServerError returns true when this get task status bad request response has a 5xx status code

func (*GetTaskStatusBadRequest) IsSuccess

func (o *GetTaskStatusBadRequest) IsSuccess() bool

IsSuccess returns true when this get task status bad request response has a 2xx status code

func (*GetTaskStatusBadRequest) String

func (o *GetTaskStatusBadRequest) String() string

type GetTaskStatusForbidden

type GetTaskStatusForbidden struct {
	Payload *models.HTTPError
}
GetTaskStatusForbidden describes a response with status code 403, with default header values.

forbidden

func NewGetTaskStatusForbidden

func NewGetTaskStatusForbidden() *GetTaskStatusForbidden

NewGetTaskStatusForbidden creates a GetTaskStatusForbidden with default headers values

func (*GetTaskStatusForbidden) Error

func (o *GetTaskStatusForbidden) Error() string

func (*GetTaskStatusForbidden) GetPayload

func (o *GetTaskStatusForbidden) GetPayload() *models.HTTPError

func (*GetTaskStatusForbidden) IsClientError

func (o *GetTaskStatusForbidden) IsClientError() bool

IsClientError returns true when this get task status forbidden response has a 4xx status code

func (*GetTaskStatusForbidden) IsCode

func (o *GetTaskStatusForbidden) IsCode(code int) bool

IsCode returns true when this get task status forbidden response a status code equal to that given

func (*GetTaskStatusForbidden) IsRedirect

func (o *GetTaskStatusForbidden) IsRedirect() bool

IsRedirect returns true when this get task status forbidden response has a 3xx status code

func (*GetTaskStatusForbidden) IsServerError

func (o *GetTaskStatusForbidden) IsServerError() bool

IsServerError returns true when this get task status forbidden response has a 5xx status code

func (*GetTaskStatusForbidden) IsSuccess

func (o *GetTaskStatusForbidden) IsSuccess() bool

IsSuccess returns true when this get task status forbidden response has a 2xx status code

func (*GetTaskStatusForbidden) String

func (o *GetTaskStatusForbidden) String() string

type GetTaskStatusInternalServerError

type GetTaskStatusInternalServerError struct {
	Payload *models.HTTPError
}
GetTaskStatusInternalServerError describes a response with status code 500, with default header values.

server error

func NewGetTaskStatusInternalServerError

func NewGetTaskStatusInternalServerError() *GetTaskStatusInternalServerError

NewGetTaskStatusInternalServerError creates a GetTaskStatusInternalServerError with default headers values

func (*GetTaskStatusInternalServerError) Error

func (*GetTaskStatusInternalServerError) GetPayload

func (*GetTaskStatusInternalServerError) IsClientError

func (o *GetTaskStatusInternalServerError) IsClientError() bool

IsClientError returns true when this get task status internal server error response has a 4xx status code

func (*GetTaskStatusInternalServerError) IsCode

func (o *GetTaskStatusInternalServerError) IsCode(code int) bool

IsCode returns true when this get task status internal server error response a status code equal to that given

func (*GetTaskStatusInternalServerError) IsRedirect

func (o *GetTaskStatusInternalServerError) IsRedirect() bool

IsRedirect returns true when this get task status internal server error response has a 3xx status code

func (*GetTaskStatusInternalServerError) IsServerError

func (o *GetTaskStatusInternalServerError) IsServerError() bool

IsServerError returns true when this get task status internal server error response has a 5xx status code

func (*GetTaskStatusInternalServerError) IsSuccess

func (o *GetTaskStatusInternalServerError) IsSuccess() bool

IsSuccess returns true when this get task status internal server error response has a 2xx status code

func (*GetTaskStatusInternalServerError) String

type GetTaskStatusOK

type GetTaskStatusOK struct {
	Payload *models.TaskState
}
GetTaskStatusOK describes a response with status code 200, with default header values.

no error

func NewGetTaskStatusOK

func NewGetTaskStatusOK() *GetTaskStatusOK

NewGetTaskStatusOK creates a GetTaskStatusOK with default headers values

func (*GetTaskStatusOK) Error

func (o *GetTaskStatusOK) Error() string

func (*GetTaskStatusOK) GetPayload

func (o *GetTaskStatusOK) GetPayload() *models.TaskState

func (*GetTaskStatusOK) IsClientError

func (o *GetTaskStatusOK) IsClientError() bool

IsClientError returns true when this get task status o k response has a 4xx status code

func (*GetTaskStatusOK) IsCode

func (o *GetTaskStatusOK) IsCode(code int) bool

IsCode returns true when this get task status o k response a status code equal to that given

func (*GetTaskStatusOK) IsRedirect

func (o *GetTaskStatusOK) IsRedirect() bool

IsRedirect returns true when this get task status o k response has a 3xx status code

func (*GetTaskStatusOK) IsServerError

func (o *GetTaskStatusOK) IsServerError() bool

IsServerError returns true when this get task status o k response has a 5xx status code

func (*GetTaskStatusOK) IsSuccess

func (o *GetTaskStatusOK) IsSuccess() bool

IsSuccess returns true when this get task status o k response has a 2xx status code

func (*GetTaskStatusOK) String

func (o *GetTaskStatusOK) String() string

type GetTaskStatusParams

type GetTaskStatusParams struct {

	/* ID.

	   Task status uuid
	*/
	ID string

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

GetTaskStatusParams contains all the parameters to send to the API endpoint

for the get task status operation.

Typically these are written to a http.Request.

func NewGetTaskStatusParams

func NewGetTaskStatusParams() *GetTaskStatusParams

NewGetTaskStatusParams creates a new GetTaskStatusParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetTaskStatusParamsWithContext

func NewGetTaskStatusParamsWithContext(ctx context.Context) *GetTaskStatusParams

NewGetTaskStatusParamsWithContext creates a new GetTaskStatusParams object with the ability to set a context for a request.

func NewGetTaskStatusParamsWithHTTPClient

func NewGetTaskStatusParamsWithHTTPClient(client *http.Client) *GetTaskStatusParams

NewGetTaskStatusParamsWithHTTPClient creates a new GetTaskStatusParams object with the ability to set a custom HTTPClient for a request.

func NewGetTaskStatusParamsWithTimeout

func NewGetTaskStatusParamsWithTimeout(timeout time.Duration) *GetTaskStatusParams

NewGetTaskStatusParamsWithTimeout creates a new GetTaskStatusParams object with the ability to set a timeout on a request.

func (*GetTaskStatusParams) SetContext

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

SetContext adds the context to the get task status params

func (*GetTaskStatusParams) SetDefaults

func (o *GetTaskStatusParams) SetDefaults()

SetDefaults hydrates default values in the get task status params (not the query body).

All values with no default are reset to their zero value.

func (*GetTaskStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get task status params

func (*GetTaskStatusParams) SetID

func (o *GetTaskStatusParams) SetID(id string)

SetID adds the id to the get task status params

func (*GetTaskStatusParams) SetTimeout

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

SetTimeout adds the timeout to the get task status params

func (*GetTaskStatusParams) WithContext

WithContext adds the context to the get task status params

func (*GetTaskStatusParams) WithDefaults

func (o *GetTaskStatusParams) WithDefaults() *GetTaskStatusParams

WithDefaults hydrates default values in the get task status params (not the query body).

All values with no default are reset to their zero value.

func (*GetTaskStatusParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get task status params

func (*GetTaskStatusParams) WithID

WithID adds the id to the get task status params

func (*GetTaskStatusParams) WithTimeout

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

WithTimeout adds the timeout to the get task status params

func (*GetTaskStatusParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTaskStatusReader

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

GetTaskStatusReader is a Reader for the GetTaskStatus structure.

func (*GetTaskStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTaskStatusUnauthorized

type GetTaskStatusUnauthorized struct {
	Payload *models.HTTPError
}
GetTaskStatusUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewGetTaskStatusUnauthorized

func NewGetTaskStatusUnauthorized() *GetTaskStatusUnauthorized

NewGetTaskStatusUnauthorized creates a GetTaskStatusUnauthorized with default headers values

func (*GetTaskStatusUnauthorized) Error

func (o *GetTaskStatusUnauthorized) Error() string

func (*GetTaskStatusUnauthorized) GetPayload

func (o *GetTaskStatusUnauthorized) GetPayload() *models.HTTPError

func (*GetTaskStatusUnauthorized) IsClientError

func (o *GetTaskStatusUnauthorized) IsClientError() bool

IsClientError returns true when this get task status unauthorized response has a 4xx status code

func (*GetTaskStatusUnauthorized) IsCode

func (o *GetTaskStatusUnauthorized) IsCode(code int) bool

IsCode returns true when this get task status unauthorized response a status code equal to that given

func (*GetTaskStatusUnauthorized) IsRedirect

func (o *GetTaskStatusUnauthorized) IsRedirect() bool

IsRedirect returns true when this get task status unauthorized response has a 3xx status code

func (*GetTaskStatusUnauthorized) IsServerError

func (o *GetTaskStatusUnauthorized) IsServerError() bool

IsServerError returns true when this get task status unauthorized response has a 5xx status code

func (*GetTaskStatusUnauthorized) IsSuccess

func (o *GetTaskStatusUnauthorized) IsSuccess() bool

IsSuccess returns true when this get task status unauthorized response has a 2xx status code

func (*GetTaskStatusUnauthorized) String

func (o *GetTaskStatusUnauthorized) String() string

Jump to

Keyboard shortcuts

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