tasks

package
v0.0.0-...-f4869d1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT 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) GetTaskByID

func (a *Client) GetTaskByID(params *GetTaskByIDParams, opts ...ClientOption) (*GetTaskByIDOK, error)

GetTaskByID gets a single task by id

func (*Client) GetTasks

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

GetTasks lists tasks

func (*Client) Run

func (a *Client) Run(params *RunParams, opts ...ClientOption) (*RunNoContent, error)

Run runs task

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) Stop

func (a *Client) Stop(params *StopParams, opts ...ClientOption) (*StopNoContent, error)

Stop stops task

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetTaskByID(params *GetTaskByIDParams, opts ...ClientOption) (*GetTaskByIDOK, error)

	GetTasks(params *GetTasksParams, opts ...ClientOption) (*GetTasksOK, error)

	Run(params *RunParams, opts ...ClientOption) (*RunNoContent, error)

	Stop(params *StopParams, opts ...ClientOption) (*StopNoContent, 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 GetTaskByIDNotFound

type GetTaskByIDNotFound struct {
}

GetTaskByIDNotFound describes a response with status code 404, with default header values.

Task not found

func NewGetTaskByIDNotFound

func NewGetTaskByIDNotFound() *GetTaskByIDNotFound

NewGetTaskByIDNotFound creates a GetTaskByIDNotFound with default headers values

func (*GetTaskByIDNotFound) Code

func (o *GetTaskByIDNotFound) Code() int

Code gets the status code for the get task by Id not found response

func (*GetTaskByIDNotFound) Error

func (o *GetTaskByIDNotFound) Error() string

func (*GetTaskByIDNotFound) IsClientError

func (o *GetTaskByIDNotFound) IsClientError() bool

IsClientError returns true when this get task by Id not found response has a 4xx status code

func (*GetTaskByIDNotFound) IsCode

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

IsCode returns true when this get task by Id not found response a status code equal to that given

func (*GetTaskByIDNotFound) IsRedirect

func (o *GetTaskByIDNotFound) IsRedirect() bool

IsRedirect returns true when this get task by Id not found response has a 3xx status code

func (*GetTaskByIDNotFound) IsServerError

func (o *GetTaskByIDNotFound) IsServerError() bool

IsServerError returns true when this get task by Id not found response has a 5xx status code

func (*GetTaskByIDNotFound) IsSuccess

func (o *GetTaskByIDNotFound) IsSuccess() bool

IsSuccess returns true when this get task by Id not found response has a 2xx status code

func (*GetTaskByIDNotFound) String

func (o *GetTaskByIDNotFound) String() string

type GetTaskByIDOK

type GetTaskByIDOK struct {
	Payload *models.TaskXO
}

GetTaskByIDOK describes a response with status code 200, with default header values.

successful operation

func NewGetTaskByIDOK

func NewGetTaskByIDOK() *GetTaskByIDOK

NewGetTaskByIDOK creates a GetTaskByIDOK with default headers values

func (*GetTaskByIDOK) Code

func (o *GetTaskByIDOK) Code() int

Code gets the status code for the get task by Id o k response

func (*GetTaskByIDOK) Error

func (o *GetTaskByIDOK) Error() string

func (*GetTaskByIDOK) GetPayload

func (o *GetTaskByIDOK) GetPayload() *models.TaskXO

func (*GetTaskByIDOK) IsClientError

func (o *GetTaskByIDOK) IsClientError() bool

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

func (*GetTaskByIDOK) IsCode

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

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

func (*GetTaskByIDOK) IsRedirect

func (o *GetTaskByIDOK) IsRedirect() bool

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

func (*GetTaskByIDOK) IsServerError

func (o *GetTaskByIDOK) IsServerError() bool

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

func (*GetTaskByIDOK) IsSuccess

func (o *GetTaskByIDOK) IsSuccess() bool

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

func (*GetTaskByIDOK) String

func (o *GetTaskByIDOK) String() string

type GetTaskByIDParams

type GetTaskByIDParams struct {

	/* ID.

	   Id of the task to get
	*/
	ID string

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

GetTaskByIDParams contains all the parameters to send to the API endpoint

for the get task by Id operation.

Typically these are written to a http.Request.

func NewGetTaskByIDParams

func NewGetTaskByIDParams() *GetTaskByIDParams

NewGetTaskByIDParams creates a new GetTaskByIDParams 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 NewGetTaskByIDParamsWithContext

func NewGetTaskByIDParamsWithContext(ctx context.Context) *GetTaskByIDParams

NewGetTaskByIDParamsWithContext creates a new GetTaskByIDParams object with the ability to set a context for a request.

func NewGetTaskByIDParamsWithHTTPClient

func NewGetTaskByIDParamsWithHTTPClient(client *http.Client) *GetTaskByIDParams

NewGetTaskByIDParamsWithHTTPClient creates a new GetTaskByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetTaskByIDParamsWithTimeout

func NewGetTaskByIDParamsWithTimeout(timeout time.Duration) *GetTaskByIDParams

NewGetTaskByIDParamsWithTimeout creates a new GetTaskByIDParams object with the ability to set a timeout on a request.

func (*GetTaskByIDParams) SetContext

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

SetContext adds the context to the get task by Id params

func (*GetTaskByIDParams) SetDefaults

func (o *GetTaskByIDParams) SetDefaults()

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

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

func (*GetTaskByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get task by Id params

func (*GetTaskByIDParams) SetID

func (o *GetTaskByIDParams) SetID(id string)

SetID adds the id to the get task by Id params

func (*GetTaskByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get task by Id params

func (*GetTaskByIDParams) WithContext

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

WithContext adds the context to the get task by Id params

func (*GetTaskByIDParams) WithDefaults

func (o *GetTaskByIDParams) WithDefaults() *GetTaskByIDParams

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

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

func (*GetTaskByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get task by Id params

func (*GetTaskByIDParams) WithID

WithID adds the id to the get task by Id params

func (*GetTaskByIDParams) WithTimeout

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

WithTimeout adds the timeout to the get task by Id params

func (*GetTaskByIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTaskByIDReader

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

GetTaskByIDReader is a Reader for the GetTaskByID structure.

func (*GetTaskByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTasksOK

type GetTasksOK struct {
	Payload *models.PageTaskXO
}

GetTasksOK describes a response with status code 200, with default header values.

successful operation

func NewGetTasksOK

func NewGetTasksOK() *GetTasksOK

NewGetTasksOK creates a GetTasksOK with default headers values

func (*GetTasksOK) Code

func (o *GetTasksOK) Code() int

Code gets the status code for the get tasks o k response

func (*GetTasksOK) Error

func (o *GetTasksOK) Error() string

func (*GetTasksOK) GetPayload

func (o *GetTasksOK) GetPayload() *models.PageTaskXO

func (*GetTasksOK) IsClientError

func (o *GetTasksOK) IsClientError() bool

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

func (*GetTasksOK) IsCode

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

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

func (*GetTasksOK) IsRedirect

func (o *GetTasksOK) IsRedirect() bool

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

func (*GetTasksOK) IsServerError

func (o *GetTasksOK) IsServerError() bool

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

func (*GetTasksOK) IsSuccess

func (o *GetTasksOK) IsSuccess() bool

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

func (*GetTasksOK) String

func (o *GetTasksOK) String() string

type GetTasksParams

type GetTasksParams struct {

	/* Type.

	   Type of the tasks to get
	*/
	Type *string

	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 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 NewGetTasksParamsWithContext

func NewGetTasksParamsWithContext(ctx context.Context) *GetTasksParams

NewGetTasksParamsWithContext creates a new GetTasksParams object with 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 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 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) SetDefaults

func (o *GetTasksParams) SetDefaults()

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

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

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

func (o *GetTasksParams) SetType(typeVar *string)

SetType adds the type 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) WithDefaults

func (o *GetTasksParams) WithDefaults() *GetTasksParams

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

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

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

func (o *GetTasksParams) WithType(typeVar *string) *GetTasksParams

WithType adds the typeVar 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.

type RunMethodNotAllowed

type RunMethodNotAllowed struct {
}

RunMethodNotAllowed describes a response with status code 405, with default header values.

Task is disabled

func NewRunMethodNotAllowed

func NewRunMethodNotAllowed() *RunMethodNotAllowed

NewRunMethodNotAllowed creates a RunMethodNotAllowed with default headers values

func (*RunMethodNotAllowed) Code

func (o *RunMethodNotAllowed) Code() int

Code gets the status code for the run method not allowed response

func (*RunMethodNotAllowed) Error

func (o *RunMethodNotAllowed) Error() string

func (*RunMethodNotAllowed) IsClientError

func (o *RunMethodNotAllowed) IsClientError() bool

IsClientError returns true when this run method not allowed response has a 4xx status code

func (*RunMethodNotAllowed) IsCode

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

IsCode returns true when this run method not allowed response a status code equal to that given

func (*RunMethodNotAllowed) IsRedirect

func (o *RunMethodNotAllowed) IsRedirect() bool

IsRedirect returns true when this run method not allowed response has a 3xx status code

func (*RunMethodNotAllowed) IsServerError

func (o *RunMethodNotAllowed) IsServerError() bool

IsServerError returns true when this run method not allowed response has a 5xx status code

func (*RunMethodNotAllowed) IsSuccess

func (o *RunMethodNotAllowed) IsSuccess() bool

IsSuccess returns true when this run method not allowed response has a 2xx status code

func (*RunMethodNotAllowed) String

func (o *RunMethodNotAllowed) String() string

type RunNoContent

type RunNoContent struct {
}

RunNoContent describes a response with status code 204, with default header values.

Task was run

func NewRunNoContent

func NewRunNoContent() *RunNoContent

NewRunNoContent creates a RunNoContent with default headers values

func (*RunNoContent) Code

func (o *RunNoContent) Code() int

Code gets the status code for the run no content response

func (*RunNoContent) Error

func (o *RunNoContent) Error() string

func (*RunNoContent) IsClientError

func (o *RunNoContent) IsClientError() bool

IsClientError returns true when this run no content response has a 4xx status code

func (*RunNoContent) IsCode

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

IsCode returns true when this run no content response a status code equal to that given

func (*RunNoContent) IsRedirect

func (o *RunNoContent) IsRedirect() bool

IsRedirect returns true when this run no content response has a 3xx status code

func (*RunNoContent) IsServerError

func (o *RunNoContent) IsServerError() bool

IsServerError returns true when this run no content response has a 5xx status code

func (*RunNoContent) IsSuccess

func (o *RunNoContent) IsSuccess() bool

IsSuccess returns true when this run no content response has a 2xx status code

func (*RunNoContent) String

func (o *RunNoContent) String() string

type RunNotFound

type RunNotFound struct {
}

RunNotFound describes a response with status code 404, with default header values.

Task not found

func NewRunNotFound

func NewRunNotFound() *RunNotFound

NewRunNotFound creates a RunNotFound with default headers values

func (*RunNotFound) Code

func (o *RunNotFound) Code() int

Code gets the status code for the run not found response

func (*RunNotFound) Error

func (o *RunNotFound) Error() string

func (*RunNotFound) IsClientError

func (o *RunNotFound) IsClientError() bool

IsClientError returns true when this run not found response has a 4xx status code

func (*RunNotFound) IsCode

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

IsCode returns true when this run not found response a status code equal to that given

func (*RunNotFound) IsRedirect

func (o *RunNotFound) IsRedirect() bool

IsRedirect returns true when this run not found response has a 3xx status code

func (*RunNotFound) IsServerError

func (o *RunNotFound) IsServerError() bool

IsServerError returns true when this run not found response has a 5xx status code

func (*RunNotFound) IsSuccess

func (o *RunNotFound) IsSuccess() bool

IsSuccess returns true when this run not found response has a 2xx status code

func (*RunNotFound) String

func (o *RunNotFound) String() string

type RunParams

type RunParams struct {

	/* ID.

	   Id of the task to run
	*/
	ID string

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

RunParams contains all the parameters to send to the API endpoint

for the run operation.

Typically these are written to a http.Request.

func NewRunParams

func NewRunParams() *RunParams

NewRunParams creates a new RunParams 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 NewRunParamsWithContext

func NewRunParamsWithContext(ctx context.Context) *RunParams

NewRunParamsWithContext creates a new RunParams object with the ability to set a context for a request.

func NewRunParamsWithHTTPClient

func NewRunParamsWithHTTPClient(client *http.Client) *RunParams

NewRunParamsWithHTTPClient creates a new RunParams object with the ability to set a custom HTTPClient for a request.

func NewRunParamsWithTimeout

func NewRunParamsWithTimeout(timeout time.Duration) *RunParams

NewRunParamsWithTimeout creates a new RunParams object with the ability to set a timeout on a request.

func (*RunParams) SetContext

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

SetContext adds the context to the run params

func (*RunParams) SetDefaults

func (o *RunParams) SetDefaults()

SetDefaults hydrates default values in the run params (not the query body).

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

func (*RunParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the run params

func (*RunParams) SetID

func (o *RunParams) SetID(id string)

SetID adds the id to the run params

func (*RunParams) SetTimeout

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

SetTimeout adds the timeout to the run params

func (*RunParams) WithContext

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

WithContext adds the context to the run params

func (*RunParams) WithDefaults

func (o *RunParams) WithDefaults() *RunParams

WithDefaults hydrates default values in the run params (not the query body).

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

func (*RunParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the run params

func (*RunParams) WithID

func (o *RunParams) WithID(id string) *RunParams

WithID adds the id to the run params

func (*RunParams) WithTimeout

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

WithTimeout adds the timeout to the run params

func (*RunParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RunReader

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

RunReader is a Reader for the Run structure.

func (*RunReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StopConflict

type StopConflict struct {
}

StopConflict describes a response with status code 409, with default header values.

Unable to stop task

func NewStopConflict

func NewStopConflict() *StopConflict

NewStopConflict creates a StopConflict with default headers values

func (*StopConflict) Code

func (o *StopConflict) Code() int

Code gets the status code for the stop conflict response

func (*StopConflict) Error

func (o *StopConflict) Error() string

func (*StopConflict) IsClientError

func (o *StopConflict) IsClientError() bool

IsClientError returns true when this stop conflict response has a 4xx status code

func (*StopConflict) IsCode

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

IsCode returns true when this stop conflict response a status code equal to that given

func (*StopConflict) IsRedirect

func (o *StopConflict) IsRedirect() bool

IsRedirect returns true when this stop conflict response has a 3xx status code

func (*StopConflict) IsServerError

func (o *StopConflict) IsServerError() bool

IsServerError returns true when this stop conflict response has a 5xx status code

func (*StopConflict) IsSuccess

func (o *StopConflict) IsSuccess() bool

IsSuccess returns true when this stop conflict response has a 2xx status code

func (*StopConflict) String

func (o *StopConflict) String() string

type StopNoContent

type StopNoContent struct {
}

StopNoContent describes a response with status code 204, with default header values.

Task was stopped

func NewStopNoContent

func NewStopNoContent() *StopNoContent

NewStopNoContent creates a StopNoContent with default headers values

func (*StopNoContent) Code

func (o *StopNoContent) Code() int

Code gets the status code for the stop no content response

func (*StopNoContent) Error

func (o *StopNoContent) Error() string

func (*StopNoContent) IsClientError

func (o *StopNoContent) IsClientError() bool

IsClientError returns true when this stop no content response has a 4xx status code

func (*StopNoContent) IsCode

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

IsCode returns true when this stop no content response a status code equal to that given

func (*StopNoContent) IsRedirect

func (o *StopNoContent) IsRedirect() bool

IsRedirect returns true when this stop no content response has a 3xx status code

func (*StopNoContent) IsServerError

func (o *StopNoContent) IsServerError() bool

IsServerError returns true when this stop no content response has a 5xx status code

func (*StopNoContent) IsSuccess

func (o *StopNoContent) IsSuccess() bool

IsSuccess returns true when this stop no content response has a 2xx status code

func (*StopNoContent) String

func (o *StopNoContent) String() string

type StopNotFound

type StopNotFound struct {
}

StopNotFound describes a response with status code 404, with default header values.

Task not found

func NewStopNotFound

func NewStopNotFound() *StopNotFound

NewStopNotFound creates a StopNotFound with default headers values

func (*StopNotFound) Code

func (o *StopNotFound) Code() int

Code gets the status code for the stop not found response

func (*StopNotFound) Error

func (o *StopNotFound) Error() string

func (*StopNotFound) IsClientError

func (o *StopNotFound) IsClientError() bool

IsClientError returns true when this stop not found response has a 4xx status code

func (*StopNotFound) IsCode

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

IsCode returns true when this stop not found response a status code equal to that given

func (*StopNotFound) IsRedirect

func (o *StopNotFound) IsRedirect() bool

IsRedirect returns true when this stop not found response has a 3xx status code

func (*StopNotFound) IsServerError

func (o *StopNotFound) IsServerError() bool

IsServerError returns true when this stop not found response has a 5xx status code

func (*StopNotFound) IsSuccess

func (o *StopNotFound) IsSuccess() bool

IsSuccess returns true when this stop not found response has a 2xx status code

func (*StopNotFound) String

func (o *StopNotFound) String() string

type StopParams

type StopParams struct {

	/* ID.

	   Id of the task to stop
	*/
	ID string

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

StopParams contains all the parameters to send to the API endpoint

for the stop operation.

Typically these are written to a http.Request.

func NewStopParams

func NewStopParams() *StopParams

NewStopParams creates a new StopParams 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 NewStopParamsWithContext

func NewStopParamsWithContext(ctx context.Context) *StopParams

NewStopParamsWithContext creates a new StopParams object with the ability to set a context for a request.

func NewStopParamsWithHTTPClient

func NewStopParamsWithHTTPClient(client *http.Client) *StopParams

NewStopParamsWithHTTPClient creates a new StopParams object with the ability to set a custom HTTPClient for a request.

func NewStopParamsWithTimeout

func NewStopParamsWithTimeout(timeout time.Duration) *StopParams

NewStopParamsWithTimeout creates a new StopParams object with the ability to set a timeout on a request.

func (*StopParams) SetContext

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

SetContext adds the context to the stop params

func (*StopParams) SetDefaults

func (o *StopParams) SetDefaults()

SetDefaults hydrates default values in the stop params (not the query body).

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

func (*StopParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stop params

func (*StopParams) SetID

func (o *StopParams) SetID(id string)

SetID adds the id to the stop params

func (*StopParams) SetTimeout

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

SetTimeout adds the timeout to the stop params

func (*StopParams) WithContext

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

WithContext adds the context to the stop params

func (*StopParams) WithDefaults

func (o *StopParams) WithDefaults() *StopParams

WithDefaults hydrates default values in the stop params (not the query body).

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

func (*StopParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the stop params

func (*StopParams) WithID

func (o *StopParams) WithID(id string) *StopParams

WithID adds the id to the stop params

func (*StopParams) WithTimeout

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

WithTimeout adds the timeout to the stop params

func (*StopParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StopReader

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

StopReader is a Reader for the Stop structure.

func (*StopReader) ReadResponse

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