distributed_tasks

package
v1.34.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: BSD-3-Clause 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 distributed tasks API

func (*Client) DistributedTasksGet

func (a *Client) DistributedTasksGet(params *DistributedTasksGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DistributedTasksGetOK, error)

DistributedTasksGet lists all distributed tasks in the cluster

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 {
	DistributedTasksGet(params *DistributedTasksGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DistributedTasksGetOK, 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 distributed tasks API client.

type DistributedTasksGetForbidden

type DistributedTasksGetForbidden struct {
	Payload *models.ErrorResponse
}

DistributedTasksGetForbidden describes a response with status code 403, with default header values.

Unauthorized or invalid credentials.

func NewDistributedTasksGetForbidden

func NewDistributedTasksGetForbidden() *DistributedTasksGetForbidden

NewDistributedTasksGetForbidden creates a DistributedTasksGetForbidden with default headers values

func (*DistributedTasksGetForbidden) Code

Code gets the status code for the distributed tasks get forbidden response

func (*DistributedTasksGetForbidden) Error

func (*DistributedTasksGetForbidden) GetPayload

func (*DistributedTasksGetForbidden) IsClientError

func (o *DistributedTasksGetForbidden) IsClientError() bool

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

func (*DistributedTasksGetForbidden) IsCode

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

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

func (*DistributedTasksGetForbidden) IsRedirect

func (o *DistributedTasksGetForbidden) IsRedirect() bool

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

func (*DistributedTasksGetForbidden) IsServerError

func (o *DistributedTasksGetForbidden) IsServerError() bool

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

func (*DistributedTasksGetForbidden) IsSuccess

func (o *DistributedTasksGetForbidden) IsSuccess() bool

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

func (*DistributedTasksGetForbidden) String

type DistributedTasksGetInternalServerError

type DistributedTasksGetInternalServerError struct {
	Payload *models.ErrorResponse
}

DistributedTasksGetInternalServerError describes a response with status code 500, with default header values.

An internal server error occurred while retrieving distributed tasks. Check the ErrorResponse for details.

func NewDistributedTasksGetInternalServerError

func NewDistributedTasksGetInternalServerError() *DistributedTasksGetInternalServerError

NewDistributedTasksGetInternalServerError creates a DistributedTasksGetInternalServerError with default headers values

func (*DistributedTasksGetInternalServerError) Code

Code gets the status code for the distributed tasks get internal server error response

func (*DistributedTasksGetInternalServerError) Error

func (*DistributedTasksGetInternalServerError) GetPayload

func (*DistributedTasksGetInternalServerError) IsClientError

func (o *DistributedTasksGetInternalServerError) IsClientError() bool

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

func (*DistributedTasksGetInternalServerError) IsCode

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

func (*DistributedTasksGetInternalServerError) IsRedirect

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

func (*DistributedTasksGetInternalServerError) IsServerError

func (o *DistributedTasksGetInternalServerError) IsServerError() bool

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

func (*DistributedTasksGetInternalServerError) IsSuccess

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

func (*DistributedTasksGetInternalServerError) String

type DistributedTasksGetOK

type DistributedTasksGetOK struct {
	Payload models.DistributedTasks
}

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

Distributed tasks successfully returned.

func NewDistributedTasksGetOK

func NewDistributedTasksGetOK() *DistributedTasksGetOK

NewDistributedTasksGetOK creates a DistributedTasksGetOK with default headers values

func (*DistributedTasksGetOK) Code

func (o *DistributedTasksGetOK) Code() int

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

func (*DistributedTasksGetOK) Error

func (o *DistributedTasksGetOK) Error() string

func (*DistributedTasksGetOK) GetPayload

func (*DistributedTasksGetOK) IsClientError

func (o *DistributedTasksGetOK) IsClientError() bool

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

func (*DistributedTasksGetOK) IsCode

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

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

func (*DistributedTasksGetOK) IsRedirect

func (o *DistributedTasksGetOK) IsRedirect() bool

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

func (*DistributedTasksGetOK) IsServerError

func (o *DistributedTasksGetOK) IsServerError() bool

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

func (*DistributedTasksGetOK) IsSuccess

func (o *DistributedTasksGetOK) IsSuccess() bool

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

func (*DistributedTasksGetOK) String

func (o *DistributedTasksGetOK) String() string

type DistributedTasksGetParams

type DistributedTasksGetParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DistributedTasksGetParams contains all the parameters to send to the API endpoint

for the distributed tasks get operation.

Typically these are written to a http.Request.

func NewDistributedTasksGetParams

func NewDistributedTasksGetParams() *DistributedTasksGetParams

NewDistributedTasksGetParams creates a new DistributedTasksGetParams 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 NewDistributedTasksGetParamsWithContext

func NewDistributedTasksGetParamsWithContext(ctx context.Context) *DistributedTasksGetParams

NewDistributedTasksGetParamsWithContext creates a new DistributedTasksGetParams object with the ability to set a context for a request.

func NewDistributedTasksGetParamsWithHTTPClient

func NewDistributedTasksGetParamsWithHTTPClient(client *http.Client) *DistributedTasksGetParams

NewDistributedTasksGetParamsWithHTTPClient creates a new DistributedTasksGetParams object with the ability to set a custom HTTPClient for a request.

func NewDistributedTasksGetParamsWithTimeout

func NewDistributedTasksGetParamsWithTimeout(timeout time.Duration) *DistributedTasksGetParams

NewDistributedTasksGetParamsWithTimeout creates a new DistributedTasksGetParams object with the ability to set a timeout on a request.

func (*DistributedTasksGetParams) SetContext

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

SetContext adds the context to the distributed tasks get params

func (*DistributedTasksGetParams) SetDefaults

func (o *DistributedTasksGetParams) SetDefaults()

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

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

func (*DistributedTasksGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the distributed tasks get params

func (*DistributedTasksGetParams) SetTimeout

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

SetTimeout adds the timeout to the distributed tasks get params

func (*DistributedTasksGetParams) WithContext

WithContext adds the context to the distributed tasks get params

func (*DistributedTasksGetParams) WithDefaults

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

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

func (*DistributedTasksGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the distributed tasks get params

func (*DistributedTasksGetParams) WithTimeout

WithTimeout adds the timeout to the distributed tasks get params

func (*DistributedTasksGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DistributedTasksGetReader

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

DistributedTasksGetReader is a Reader for the DistributedTasksGet structure.

func (*DistributedTasksGetReader) ReadResponse

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