execution

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT 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 execution API

func (*Client) ReadRequestBody

func (a *Client) ReadRequestBody(params *ReadRequestBodyParams, opts ...ClientOption) (*ReadRequestBodyOK, error)

ReadRequestBody retrieves a large request body such as a file that has spilled into object storage

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 {
	ReadRequestBody(params *ReadRequestBodyParams, opts ...ClientOption) (*ReadRequestBodyOK, 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 execution API client.

type ReadRequestBodyBadRequest

type ReadRequestBodyBadRequest struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaspecResponseFields
}

ReadRequestBodyBadRequest describes a response with status code 400, with default header values.

Invalid arguments

func NewReadRequestBodyBadRequest

func NewReadRequestBodyBadRequest() *ReadRequestBodyBadRequest

NewReadRequestBodyBadRequest creates a ReadRequestBodyBadRequest with default headers values

func (*ReadRequestBodyBadRequest) Code

func (o *ReadRequestBodyBadRequest) Code() int

Code gets the status code for the read request body bad request response

func (*ReadRequestBodyBadRequest) Error

func (o *ReadRequestBodyBadRequest) Error() string

func (*ReadRequestBodyBadRequest) GetPayload

func (*ReadRequestBodyBadRequest) IsClientError

func (o *ReadRequestBodyBadRequest) IsClientError() bool

IsClientError returns true when this read request body bad request response has a 4xx status code

func (*ReadRequestBodyBadRequest) IsCode

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

IsCode returns true when this read request body bad request response a status code equal to that given

func (*ReadRequestBodyBadRequest) IsRedirect

func (o *ReadRequestBodyBadRequest) IsRedirect() bool

IsRedirect returns true when this read request body bad request response has a 3xx status code

func (*ReadRequestBodyBadRequest) IsServerError

func (o *ReadRequestBodyBadRequest) IsServerError() bool

IsServerError returns true when this read request body bad request response has a 5xx status code

func (*ReadRequestBodyBadRequest) IsSuccess

func (o *ReadRequestBodyBadRequest) IsSuccess() bool

IsSuccess returns true when this read request body bad request response has a 2xx status code

func (*ReadRequestBodyBadRequest) String

func (o *ReadRequestBodyBadRequest) String() string

type ReadRequestBodyForbidden

type ReadRequestBodyForbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaspecResponseFields
}

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

Authorization failed

func NewReadRequestBodyForbidden

func NewReadRequestBodyForbidden() *ReadRequestBodyForbidden

NewReadRequestBodyForbidden creates a ReadRequestBodyForbidden with default headers values

func (*ReadRequestBodyForbidden) Code

func (o *ReadRequestBodyForbidden) Code() int

Code gets the status code for the read request body forbidden response

func (*ReadRequestBodyForbidden) Error

func (o *ReadRequestBodyForbidden) Error() string

func (*ReadRequestBodyForbidden) GetPayload

func (*ReadRequestBodyForbidden) IsClientError

func (o *ReadRequestBodyForbidden) IsClientError() bool

IsClientError returns true when this read request body forbidden response has a 4xx status code

func (*ReadRequestBodyForbidden) IsCode

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

IsCode returns true when this read request body forbidden response a status code equal to that given

func (*ReadRequestBodyForbidden) IsRedirect

func (o *ReadRequestBodyForbidden) IsRedirect() bool

IsRedirect returns true when this read request body forbidden response has a 3xx status code

func (*ReadRequestBodyForbidden) IsServerError

func (o *ReadRequestBodyForbidden) IsServerError() bool

IsServerError returns true when this read request body forbidden response has a 5xx status code

func (*ReadRequestBodyForbidden) IsSuccess

func (o *ReadRequestBodyForbidden) IsSuccess() bool

IsSuccess returns true when this read request body forbidden response has a 2xx status code

func (*ReadRequestBodyForbidden) String

func (o *ReadRequestBodyForbidden) String() string

type ReadRequestBodyInternalServerError

type ReadRequestBodyInternalServerError struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaspecResponseFields
}

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

Unexpected error during request body read

func NewReadRequestBodyInternalServerError

func NewReadRequestBodyInternalServerError() *ReadRequestBodyInternalServerError

NewReadRequestBodyInternalServerError creates a ReadRequestBodyInternalServerError with default headers values

func (*ReadRequestBodyInternalServerError) Code

Code gets the status code for the read request body internal server error response

func (*ReadRequestBodyInternalServerError) Error

func (*ReadRequestBodyInternalServerError) GetPayload

func (*ReadRequestBodyInternalServerError) IsClientError

func (o *ReadRequestBodyInternalServerError) IsClientError() bool

IsClientError returns true when this read request body internal server error response has a 4xx status code

func (*ReadRequestBodyInternalServerError) IsCode

IsCode returns true when this read request body internal server error response a status code equal to that given

func (*ReadRequestBodyInternalServerError) IsRedirect

func (o *ReadRequestBodyInternalServerError) IsRedirect() bool

IsRedirect returns true when this read request body internal server error response has a 3xx status code

func (*ReadRequestBodyInternalServerError) IsServerError

func (o *ReadRequestBodyInternalServerError) IsServerError() bool

IsServerError returns true when this read request body internal server error response has a 5xx status code

func (*ReadRequestBodyInternalServerError) IsSuccess

IsSuccess returns true when this read request body internal server error response has a 2xx status code

func (*ReadRequestBodyInternalServerError) String

type ReadRequestBodyOK

type ReadRequestBodyOK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload models.MapStringInterface
}

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

request body retrieved successfully

func NewReadRequestBodyOK

func NewReadRequestBodyOK() *ReadRequestBodyOK

NewReadRequestBodyOK creates a ReadRequestBodyOK with default headers values

func (*ReadRequestBodyOK) Code

func (o *ReadRequestBodyOK) Code() int

Code gets the status code for the read request body o k response

func (*ReadRequestBodyOK) Error

func (o *ReadRequestBodyOK) Error() string

func (*ReadRequestBodyOK) GetPayload

func (*ReadRequestBodyOK) IsClientError

func (o *ReadRequestBodyOK) IsClientError() bool

IsClientError returns true when this read request body o k response has a 4xx status code

func (*ReadRequestBodyOK) IsCode

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

IsCode returns true when this read request body o k response a status code equal to that given

func (*ReadRequestBodyOK) IsRedirect

func (o *ReadRequestBodyOK) IsRedirect() bool

IsRedirect returns true when this read request body o k response has a 3xx status code

func (*ReadRequestBodyOK) IsServerError

func (o *ReadRequestBodyOK) IsServerError() bool

IsServerError returns true when this read request body o k response has a 5xx status code

func (*ReadRequestBodyOK) IsSuccess

func (o *ReadRequestBodyOK) IsSuccess() bool

IsSuccess returns true when this read request body o k response has a 2xx status code

func (*ReadRequestBodyOK) String

func (o *ReadRequestBodyOK) String() string

type ReadRequestBodyParams

type ReadRequestBodyParams struct {

	/* Filename.

	   filename to be retrieved
	*/
	Filename string

	/* Fn.

	   function ref; form of $fn_id:$fn_version
	*/
	Fn string

	/* ID.

	   Execution ID
	*/
	ID string

	/* Sha256.

	   sha256 checksum for file to be retrieved
	*/
	Sha256 string

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

ReadRequestBodyParams contains all the parameters to send to the API endpoint

for the read request body operation.

Typically these are written to a http.Request.

func NewReadRequestBodyParams

func NewReadRequestBodyParams() *ReadRequestBodyParams

NewReadRequestBodyParams creates a new ReadRequestBodyParams 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 NewReadRequestBodyParamsWithContext

func NewReadRequestBodyParamsWithContext(ctx context.Context) *ReadRequestBodyParams

NewReadRequestBodyParamsWithContext creates a new ReadRequestBodyParams object with the ability to set a context for a request.

func NewReadRequestBodyParamsWithHTTPClient

func NewReadRequestBodyParamsWithHTTPClient(client *http.Client) *ReadRequestBodyParams

NewReadRequestBodyParamsWithHTTPClient creates a new ReadRequestBodyParams object with the ability to set a custom HTTPClient for a request.

func NewReadRequestBodyParamsWithTimeout

func NewReadRequestBodyParamsWithTimeout(timeout time.Duration) *ReadRequestBodyParams

NewReadRequestBodyParamsWithTimeout creates a new ReadRequestBodyParams object with the ability to set a timeout on a request.

func (*ReadRequestBodyParams) SetContext

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

SetContext adds the context to the read request body params

func (*ReadRequestBodyParams) SetDefaults

func (o *ReadRequestBodyParams) SetDefaults()

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

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

func (*ReadRequestBodyParams) SetFilename

func (o *ReadRequestBodyParams) SetFilename(filename string)

SetFilename adds the filename to the read request body params

func (*ReadRequestBodyParams) SetFn

func (o *ReadRequestBodyParams) SetFn(fn string)

SetFn adds the fn to the read request body params

func (*ReadRequestBodyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read request body params

func (*ReadRequestBodyParams) SetID

func (o *ReadRequestBodyParams) SetID(id string)

SetID adds the id to the read request body params

func (*ReadRequestBodyParams) SetSha256

func (o *ReadRequestBodyParams) SetSha256(sha256 string)

SetSha256 adds the sha256 to the read request body params

func (*ReadRequestBodyParams) SetTimeout

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

SetTimeout adds the timeout to the read request body params

func (*ReadRequestBodyParams) WithContext

WithContext adds the context to the read request body params

func (*ReadRequestBodyParams) WithDefaults

func (o *ReadRequestBodyParams) WithDefaults() *ReadRequestBodyParams

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

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

func (*ReadRequestBodyParams) WithFilename

func (o *ReadRequestBodyParams) WithFilename(filename string) *ReadRequestBodyParams

WithFilename adds the filename to the read request body params

func (*ReadRequestBodyParams) WithFn

WithFn adds the fn to the read request body params

func (*ReadRequestBodyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the read request body params

func (*ReadRequestBodyParams) WithID

WithID adds the id to the read request body params

func (*ReadRequestBodyParams) WithSha256

func (o *ReadRequestBodyParams) WithSha256(sha256 string) *ReadRequestBodyParams

WithSha256 adds the sha256 to the read request body params

func (*ReadRequestBodyParams) WithTimeout

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

WithTimeout adds the timeout to the read request body params

func (*ReadRequestBodyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReadRequestBodyReader

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

ReadRequestBodyReader is a Reader for the ReadRequestBody structure.

func (*ReadRequestBodyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadRequestBodyTooManyRequests

type ReadRequestBodyTooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}

ReadRequestBodyTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewReadRequestBodyTooManyRequests

func NewReadRequestBodyTooManyRequests() *ReadRequestBodyTooManyRequests

NewReadRequestBodyTooManyRequests creates a ReadRequestBodyTooManyRequests with default headers values

func (*ReadRequestBodyTooManyRequests) Code

Code gets the status code for the read request body too many requests response

func (*ReadRequestBodyTooManyRequests) Error

func (*ReadRequestBodyTooManyRequests) GetPayload

func (*ReadRequestBodyTooManyRequests) IsClientError

func (o *ReadRequestBodyTooManyRequests) IsClientError() bool

IsClientError returns true when this read request body too many requests response has a 4xx status code

func (*ReadRequestBodyTooManyRequests) IsCode

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

IsCode returns true when this read request body too many requests response a status code equal to that given

func (*ReadRequestBodyTooManyRequests) IsRedirect

func (o *ReadRequestBodyTooManyRequests) IsRedirect() bool

IsRedirect returns true when this read request body too many requests response has a 3xx status code

func (*ReadRequestBodyTooManyRequests) IsServerError

func (o *ReadRequestBodyTooManyRequests) IsServerError() bool

IsServerError returns true when this read request body too many requests response has a 5xx status code

func (*ReadRequestBodyTooManyRequests) IsSuccess

func (o *ReadRequestBodyTooManyRequests) IsSuccess() bool

IsSuccess returns true when this read request body too many requests response has a 2xx status code

func (*ReadRequestBodyTooManyRequests) String

Jump to

Keyboard shortcuts

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