execution

package
v0.3.1-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithAcceptTextEventStream

func WithAcceptTextEventStream(r *runtime.ClientOperation)

WithAcceptTextEventStream sets the Accept header to "text/event-stream".

Types

type Client

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

Client for execution API

func (*Client) GetRunStream

func (a *Client) GetRunStream(params *GetRunStreamParams, opts ...ClientOption) (*GetRunStreamOK, error)

GetRunStream streams claude output

Executes Claude and streams output in real-time using SSE

func (*Client) PostRun

func (a *Client) PostRun(params *PostRunParams, opts ...ClientOption) (*PostRunOK, error)

PostRun runs claude

Executes Claude Code in an isolated Podman container

func (*Client) PostRunAsync

func (a *Client) PostRunAsync(params *PostRunAsyncParams, opts ...ClientOption) (*PostRunAsyncAccepted, error)

PostRunAsync runs claude async

Starts Claude Code execution asynchronously and returns a job ID

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 may be used to customize the behavior of Client methods.

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	GetRunStream(params *GetRunStreamParams, opts ...ClientOption) (*GetRunStreamOK, error)

	PostRun(params *PostRunParams, opts ...ClientOption) (*PostRunOK, error)

	PostRunAsync(params *PostRunAsyncParams, opts ...ClientOption) (*PostRunAsyncAccepted, 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.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new execution API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new execution API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type GetRunStreamBadRequest

type GetRunStreamBadRequest struct {
	Payload string
}

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

Invalid request

func NewGetRunStreamBadRequest

func NewGetRunStreamBadRequest() *GetRunStreamBadRequest

NewGetRunStreamBadRequest creates a GetRunStreamBadRequest with default headers values

func (*GetRunStreamBadRequest) Code

func (o *GetRunStreamBadRequest) Code() int

Code gets the status code for the get run stream bad request response

func (*GetRunStreamBadRequest) Error

func (o *GetRunStreamBadRequest) Error() string

func (*GetRunStreamBadRequest) GetPayload

func (o *GetRunStreamBadRequest) GetPayload() string

func (*GetRunStreamBadRequest) IsClientError

func (o *GetRunStreamBadRequest) IsClientError() bool

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

func (*GetRunStreamBadRequest) IsCode

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

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

func (*GetRunStreamBadRequest) IsRedirect

func (o *GetRunStreamBadRequest) IsRedirect() bool

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

func (*GetRunStreamBadRequest) IsServerError

func (o *GetRunStreamBadRequest) IsServerError() bool

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

func (*GetRunStreamBadRequest) IsSuccess

func (o *GetRunStreamBadRequest) IsSuccess() bool

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

func (*GetRunStreamBadRequest) String

func (o *GetRunStreamBadRequest) String() string

type GetRunStreamOK

type GetRunStreamOK struct {
	Payload string
}

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

Event stream of output lines

func NewGetRunStreamOK

func NewGetRunStreamOK() *GetRunStreamOK

NewGetRunStreamOK creates a GetRunStreamOK with default headers values

func (*GetRunStreamOK) Code

func (o *GetRunStreamOK) Code() int

Code gets the status code for the get run stream o k response

func (*GetRunStreamOK) Error

func (o *GetRunStreamOK) Error() string

func (*GetRunStreamOK) GetPayload

func (o *GetRunStreamOK) GetPayload() string

func (*GetRunStreamOK) IsClientError

func (o *GetRunStreamOK) IsClientError() bool

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

func (*GetRunStreamOK) IsCode

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

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

func (*GetRunStreamOK) IsRedirect

func (o *GetRunStreamOK) IsRedirect() bool

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

func (*GetRunStreamOK) IsServerError

func (o *GetRunStreamOK) IsServerError() bool

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

func (*GetRunStreamOK) IsSuccess

func (o *GetRunStreamOK) IsSuccess() bool

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

func (*GetRunStreamOK) String

func (o *GetRunStreamOK) String() string

type GetRunStreamParams

type GetRunStreamParams struct {

	/* Prompt.

	   The prompt to send to Claude
	*/
	Prompt string

	/* SessionID.

	   Session ID for conversation continuation
	*/
	SessionID *string

	/* Workdir.

	   Working directory inside container
	*/
	Workdir *string

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

GetRunStreamParams contains all the parameters to send to the API endpoint

for the get run stream operation.

Typically these are written to a http.Request.

func NewGetRunStreamParams

func NewGetRunStreamParams() *GetRunStreamParams

NewGetRunStreamParams creates a new GetRunStreamParams 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 NewGetRunStreamParamsWithContext

func NewGetRunStreamParamsWithContext(ctx context.Context) *GetRunStreamParams

NewGetRunStreamParamsWithContext creates a new GetRunStreamParams object with the ability to set a context for a request.

func NewGetRunStreamParamsWithHTTPClient

func NewGetRunStreamParamsWithHTTPClient(client *http.Client) *GetRunStreamParams

NewGetRunStreamParamsWithHTTPClient creates a new GetRunStreamParams object with the ability to set a custom HTTPClient for a request.

func NewGetRunStreamParamsWithTimeout

func NewGetRunStreamParamsWithTimeout(timeout time.Duration) *GetRunStreamParams

NewGetRunStreamParamsWithTimeout creates a new GetRunStreamParams object with the ability to set a timeout on a request.

func (*GetRunStreamParams) SetContext

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

SetContext adds the context to the get run stream params

func (*GetRunStreamParams) SetDefaults

func (o *GetRunStreamParams) SetDefaults()

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

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

func (*GetRunStreamParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get run stream params

func (*GetRunStreamParams) SetPrompt

func (o *GetRunStreamParams) SetPrompt(prompt string)

SetPrompt adds the prompt to the get run stream params

func (*GetRunStreamParams) SetSessionID

func (o *GetRunStreamParams) SetSessionID(sessionID *string)

SetSessionID adds the sessionId to the get run stream params

func (*GetRunStreamParams) SetTimeout

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

SetTimeout adds the timeout to the get run stream params

func (*GetRunStreamParams) SetWorkdir

func (o *GetRunStreamParams) SetWorkdir(workdir *string)

SetWorkdir adds the workdir to the get run stream params

func (*GetRunStreamParams) WithContext

WithContext adds the context to the get run stream params

func (*GetRunStreamParams) WithDefaults

func (o *GetRunStreamParams) WithDefaults() *GetRunStreamParams

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

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

func (*GetRunStreamParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get run stream params

func (*GetRunStreamParams) WithPrompt

func (o *GetRunStreamParams) WithPrompt(prompt string) *GetRunStreamParams

WithPrompt adds the prompt to the get run stream params

func (*GetRunStreamParams) WithSessionID

func (o *GetRunStreamParams) WithSessionID(sessionID *string) *GetRunStreamParams

WithSessionID adds the sessionID to the get run stream params

func (*GetRunStreamParams) WithTimeout

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

WithTimeout adds the timeout to the get run stream params

func (*GetRunStreamParams) WithWorkdir

func (o *GetRunStreamParams) WithWorkdir(workdir *string) *GetRunStreamParams

WithWorkdir adds the workdir to the get run stream params

func (*GetRunStreamParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRunStreamReader

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

GetRunStreamReader is a Reader for the GetRunStream structure.

func (*GetRunStreamReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRunStreamServiceUnavailable

type GetRunStreamServiceUnavailable struct {
	Payload string
}

GetRunStreamServiceUnavailable describes a response with status code 503, with default header values.

Claude not configured

func NewGetRunStreamServiceUnavailable

func NewGetRunStreamServiceUnavailable() *GetRunStreamServiceUnavailable

NewGetRunStreamServiceUnavailable creates a GetRunStreamServiceUnavailable with default headers values

func (*GetRunStreamServiceUnavailable) Code

Code gets the status code for the get run stream service unavailable response

func (*GetRunStreamServiceUnavailable) Error

func (*GetRunStreamServiceUnavailable) GetPayload

func (o *GetRunStreamServiceUnavailable) GetPayload() string

func (*GetRunStreamServiceUnavailable) IsClientError

func (o *GetRunStreamServiceUnavailable) IsClientError() bool

IsClientError returns true when this get run stream service unavailable response has a 4xx status code

func (*GetRunStreamServiceUnavailable) IsCode

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

IsCode returns true when this get run stream service unavailable response a status code equal to that given

func (*GetRunStreamServiceUnavailable) IsRedirect

func (o *GetRunStreamServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this get run stream service unavailable response has a 3xx status code

func (*GetRunStreamServiceUnavailable) IsServerError

func (o *GetRunStreamServiceUnavailable) IsServerError() bool

IsServerError returns true when this get run stream service unavailable response has a 5xx status code

func (*GetRunStreamServiceUnavailable) IsSuccess

func (o *GetRunStreamServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this get run stream service unavailable response has a 2xx status code

func (*GetRunStreamServiceUnavailable) String

type PostRunAsyncAccepted

type PostRunAsyncAccepted struct {
	Payload *models.AsyncRunResponse
}

PostRunAsyncAccepted describes a response with status code 202, with default header values.

Accepted

func NewPostRunAsyncAccepted

func NewPostRunAsyncAccepted() *PostRunAsyncAccepted

NewPostRunAsyncAccepted creates a PostRunAsyncAccepted with default headers values

func (*PostRunAsyncAccepted) Code

func (o *PostRunAsyncAccepted) Code() int

Code gets the status code for the post run async accepted response

func (*PostRunAsyncAccepted) Error

func (o *PostRunAsyncAccepted) Error() string

func (*PostRunAsyncAccepted) GetPayload

func (o *PostRunAsyncAccepted) GetPayload() *models.AsyncRunResponse

func (*PostRunAsyncAccepted) IsClientError

func (o *PostRunAsyncAccepted) IsClientError() bool

IsClientError returns true when this post run async accepted response has a 4xx status code

func (*PostRunAsyncAccepted) IsCode

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

IsCode returns true when this post run async accepted response a status code equal to that given

func (*PostRunAsyncAccepted) IsRedirect

func (o *PostRunAsyncAccepted) IsRedirect() bool

IsRedirect returns true when this post run async accepted response has a 3xx status code

func (*PostRunAsyncAccepted) IsServerError

func (o *PostRunAsyncAccepted) IsServerError() bool

IsServerError returns true when this post run async accepted response has a 5xx status code

func (*PostRunAsyncAccepted) IsSuccess

func (o *PostRunAsyncAccepted) IsSuccess() bool

IsSuccess returns true when this post run async accepted response has a 2xx status code

func (*PostRunAsyncAccepted) String

func (o *PostRunAsyncAccepted) String() string

type PostRunAsyncBadRequest

type PostRunAsyncBadRequest struct {
	Payload *models.RunResponse
}

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

Invalid request

func NewPostRunAsyncBadRequest

func NewPostRunAsyncBadRequest() *PostRunAsyncBadRequest

NewPostRunAsyncBadRequest creates a PostRunAsyncBadRequest with default headers values

func (*PostRunAsyncBadRequest) Code

func (o *PostRunAsyncBadRequest) Code() int

Code gets the status code for the post run async bad request response

func (*PostRunAsyncBadRequest) Error

func (o *PostRunAsyncBadRequest) Error() string

func (*PostRunAsyncBadRequest) GetPayload

func (o *PostRunAsyncBadRequest) GetPayload() *models.RunResponse

func (*PostRunAsyncBadRequest) IsClientError

func (o *PostRunAsyncBadRequest) IsClientError() bool

IsClientError returns true when this post run async bad request response has a 4xx status code

func (*PostRunAsyncBadRequest) IsCode

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

IsCode returns true when this post run async bad request response a status code equal to that given

func (*PostRunAsyncBadRequest) IsRedirect

func (o *PostRunAsyncBadRequest) IsRedirect() bool

IsRedirect returns true when this post run async bad request response has a 3xx status code

func (*PostRunAsyncBadRequest) IsServerError

func (o *PostRunAsyncBadRequest) IsServerError() bool

IsServerError returns true when this post run async bad request response has a 5xx status code

func (*PostRunAsyncBadRequest) IsSuccess

func (o *PostRunAsyncBadRequest) IsSuccess() bool

IsSuccess returns true when this post run async bad request response has a 2xx status code

func (*PostRunAsyncBadRequest) String

func (o *PostRunAsyncBadRequest) String() string

type PostRunAsyncParams

type PostRunAsyncParams struct {

	/* Request.

	   Run request
	*/
	Request *models.RunRequest

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

PostRunAsyncParams contains all the parameters to send to the API endpoint

for the post run async operation.

Typically these are written to a http.Request.

func NewPostRunAsyncParams

func NewPostRunAsyncParams() *PostRunAsyncParams

NewPostRunAsyncParams creates a new PostRunAsyncParams 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 NewPostRunAsyncParamsWithContext

func NewPostRunAsyncParamsWithContext(ctx context.Context) *PostRunAsyncParams

NewPostRunAsyncParamsWithContext creates a new PostRunAsyncParams object with the ability to set a context for a request.

func NewPostRunAsyncParamsWithHTTPClient

func NewPostRunAsyncParamsWithHTTPClient(client *http.Client) *PostRunAsyncParams

NewPostRunAsyncParamsWithHTTPClient creates a new PostRunAsyncParams object with the ability to set a custom HTTPClient for a request.

func NewPostRunAsyncParamsWithTimeout

func NewPostRunAsyncParamsWithTimeout(timeout time.Duration) *PostRunAsyncParams

NewPostRunAsyncParamsWithTimeout creates a new PostRunAsyncParams object with the ability to set a timeout on a request.

func (*PostRunAsyncParams) SetContext

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

SetContext adds the context to the post run async params

func (*PostRunAsyncParams) SetDefaults

func (o *PostRunAsyncParams) SetDefaults()

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

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

func (*PostRunAsyncParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post run async params

func (*PostRunAsyncParams) SetRequest

func (o *PostRunAsyncParams) SetRequest(request *models.RunRequest)

SetRequest adds the request to the post run async params

func (*PostRunAsyncParams) SetTimeout

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

SetTimeout adds the timeout to the post run async params

func (*PostRunAsyncParams) WithContext

WithContext adds the context to the post run async params

func (*PostRunAsyncParams) WithDefaults

func (o *PostRunAsyncParams) WithDefaults() *PostRunAsyncParams

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

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

func (*PostRunAsyncParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post run async params

func (*PostRunAsyncParams) WithRequest

func (o *PostRunAsyncParams) WithRequest(request *models.RunRequest) *PostRunAsyncParams

WithRequest adds the request to the post run async params

func (*PostRunAsyncParams) WithTimeout

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

WithTimeout adds the timeout to the post run async params

func (*PostRunAsyncParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostRunAsyncReader

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

PostRunAsyncReader is a Reader for the PostRunAsync structure.

func (*PostRunAsyncReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostRunAsyncServiceUnavailable

type PostRunAsyncServiceUnavailable struct {
	Payload *models.RunResponse
}

PostRunAsyncServiceUnavailable describes a response with status code 503, with default header values.

Claude not configured

func NewPostRunAsyncServiceUnavailable

func NewPostRunAsyncServiceUnavailable() *PostRunAsyncServiceUnavailable

NewPostRunAsyncServiceUnavailable creates a PostRunAsyncServiceUnavailable with default headers values

func (*PostRunAsyncServiceUnavailable) Code

Code gets the status code for the post run async service unavailable response

func (*PostRunAsyncServiceUnavailable) Error

func (*PostRunAsyncServiceUnavailable) GetPayload

func (*PostRunAsyncServiceUnavailable) IsClientError

func (o *PostRunAsyncServiceUnavailable) IsClientError() bool

IsClientError returns true when this post run async service unavailable response has a 4xx status code

func (*PostRunAsyncServiceUnavailable) IsCode

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

IsCode returns true when this post run async service unavailable response a status code equal to that given

func (*PostRunAsyncServiceUnavailable) IsRedirect

func (o *PostRunAsyncServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this post run async service unavailable response has a 3xx status code

func (*PostRunAsyncServiceUnavailable) IsServerError

func (o *PostRunAsyncServiceUnavailable) IsServerError() bool

IsServerError returns true when this post run async service unavailable response has a 5xx status code

func (*PostRunAsyncServiceUnavailable) IsSuccess

func (o *PostRunAsyncServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this post run async service unavailable response has a 2xx status code

func (*PostRunAsyncServiceUnavailable) String

type PostRunBadRequest

type PostRunBadRequest struct {
	Payload *models.RunResponse
}

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

Invalid request

func NewPostRunBadRequest

func NewPostRunBadRequest() *PostRunBadRequest

NewPostRunBadRequest creates a PostRunBadRequest with default headers values

func (*PostRunBadRequest) Code

func (o *PostRunBadRequest) Code() int

Code gets the status code for the post run bad request response

func (*PostRunBadRequest) Error

func (o *PostRunBadRequest) Error() string

func (*PostRunBadRequest) GetPayload

func (o *PostRunBadRequest) GetPayload() *models.RunResponse

func (*PostRunBadRequest) IsClientError

func (o *PostRunBadRequest) IsClientError() bool

IsClientError returns true when this post run bad request response has a 4xx status code

func (*PostRunBadRequest) IsCode

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

IsCode returns true when this post run bad request response a status code equal to that given

func (*PostRunBadRequest) IsRedirect

func (o *PostRunBadRequest) IsRedirect() bool

IsRedirect returns true when this post run bad request response has a 3xx status code

func (*PostRunBadRequest) IsServerError

func (o *PostRunBadRequest) IsServerError() bool

IsServerError returns true when this post run bad request response has a 5xx status code

func (*PostRunBadRequest) IsSuccess

func (o *PostRunBadRequest) IsSuccess() bool

IsSuccess returns true when this post run bad request response has a 2xx status code

func (*PostRunBadRequest) String

func (o *PostRunBadRequest) String() string

type PostRunInternalServerError

type PostRunInternalServerError struct {
	Payload *models.RunResponse
}

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

Execution failed

func NewPostRunInternalServerError

func NewPostRunInternalServerError() *PostRunInternalServerError

NewPostRunInternalServerError creates a PostRunInternalServerError with default headers values

func (*PostRunInternalServerError) Code

func (o *PostRunInternalServerError) Code() int

Code gets the status code for the post run internal server error response

func (*PostRunInternalServerError) Error

func (*PostRunInternalServerError) GetPayload

func (*PostRunInternalServerError) IsClientError

func (o *PostRunInternalServerError) IsClientError() bool

IsClientError returns true when this post run internal server error response has a 4xx status code

func (*PostRunInternalServerError) IsCode

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

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

func (*PostRunInternalServerError) IsRedirect

func (o *PostRunInternalServerError) IsRedirect() bool

IsRedirect returns true when this post run internal server error response has a 3xx status code

func (*PostRunInternalServerError) IsServerError

func (o *PostRunInternalServerError) IsServerError() bool

IsServerError returns true when this post run internal server error response has a 5xx status code

func (*PostRunInternalServerError) IsSuccess

func (o *PostRunInternalServerError) IsSuccess() bool

IsSuccess returns true when this post run internal server error response has a 2xx status code

func (*PostRunInternalServerError) String

func (o *PostRunInternalServerError) String() string

type PostRunOK

type PostRunOK struct {
	Payload *models.RunResponse
}

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

OK

func NewPostRunOK

func NewPostRunOK() *PostRunOK

NewPostRunOK creates a PostRunOK with default headers values

func (*PostRunOK) Code

func (o *PostRunOK) Code() int

Code gets the status code for the post run o k response

func (*PostRunOK) Error

func (o *PostRunOK) Error() string

func (*PostRunOK) GetPayload

func (o *PostRunOK) GetPayload() *models.RunResponse

func (*PostRunOK) IsClientError

func (o *PostRunOK) IsClientError() bool

IsClientError returns true when this post run o k response has a 4xx status code

func (*PostRunOK) IsCode

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

IsCode returns true when this post run o k response a status code equal to that given

func (*PostRunOK) IsRedirect

func (o *PostRunOK) IsRedirect() bool

IsRedirect returns true when this post run o k response has a 3xx status code

func (*PostRunOK) IsServerError

func (o *PostRunOK) IsServerError() bool

IsServerError returns true when this post run o k response has a 5xx status code

func (*PostRunOK) IsSuccess

func (o *PostRunOK) IsSuccess() bool

IsSuccess returns true when this post run o k response has a 2xx status code

func (*PostRunOK) String

func (o *PostRunOK) String() string

type PostRunParams

type PostRunParams struct {

	/* Request.

	   Run request
	*/
	Request *models.RunRequest

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

PostRunParams contains all the parameters to send to the API endpoint

for the post run operation.

Typically these are written to a http.Request.

func NewPostRunParams

func NewPostRunParams() *PostRunParams

NewPostRunParams creates a new PostRunParams 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 NewPostRunParamsWithContext

func NewPostRunParamsWithContext(ctx context.Context) *PostRunParams

NewPostRunParamsWithContext creates a new PostRunParams object with the ability to set a context for a request.

func NewPostRunParamsWithHTTPClient

func NewPostRunParamsWithHTTPClient(client *http.Client) *PostRunParams

NewPostRunParamsWithHTTPClient creates a new PostRunParams object with the ability to set a custom HTTPClient for a request.

func NewPostRunParamsWithTimeout

func NewPostRunParamsWithTimeout(timeout time.Duration) *PostRunParams

NewPostRunParamsWithTimeout creates a new PostRunParams object with the ability to set a timeout on a request.

func (*PostRunParams) SetContext

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

SetContext adds the context to the post run params

func (*PostRunParams) SetDefaults

func (o *PostRunParams) SetDefaults()

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

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

func (*PostRunParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post run params

func (*PostRunParams) SetRequest

func (o *PostRunParams) SetRequest(request *models.RunRequest)

SetRequest adds the request to the post run params

func (*PostRunParams) SetTimeout

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

SetTimeout adds the timeout to the post run params

func (*PostRunParams) WithContext

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

WithContext adds the context to the post run params

func (*PostRunParams) WithDefaults

func (o *PostRunParams) WithDefaults() *PostRunParams

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

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

func (*PostRunParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post run params

func (*PostRunParams) WithRequest

func (o *PostRunParams) WithRequest(request *models.RunRequest) *PostRunParams

WithRequest adds the request to the post run params

func (*PostRunParams) WithTimeout

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

WithTimeout adds the timeout to the post run params

func (*PostRunParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostRunReader

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

PostRunReader is a Reader for the PostRun structure.

func (*PostRunReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostRunServiceUnavailable

type PostRunServiceUnavailable struct {
	Payload *models.RunResponse
}

PostRunServiceUnavailable describes a response with status code 503, with default header values.

Claude not configured

func NewPostRunServiceUnavailable

func NewPostRunServiceUnavailable() *PostRunServiceUnavailable

NewPostRunServiceUnavailable creates a PostRunServiceUnavailable with default headers values

func (*PostRunServiceUnavailable) Code

func (o *PostRunServiceUnavailable) Code() int

Code gets the status code for the post run service unavailable response

func (*PostRunServiceUnavailable) Error

func (o *PostRunServiceUnavailable) Error() string

func (*PostRunServiceUnavailable) GetPayload

func (o *PostRunServiceUnavailable) GetPayload() *models.RunResponse

func (*PostRunServiceUnavailable) IsClientError

func (o *PostRunServiceUnavailable) IsClientError() bool

IsClientError returns true when this post run service unavailable response has a 4xx status code

func (*PostRunServiceUnavailable) IsCode

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

IsCode returns true when this post run service unavailable response a status code equal to that given

func (*PostRunServiceUnavailable) IsRedirect

func (o *PostRunServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this post run service unavailable response has a 3xx status code

func (*PostRunServiceUnavailable) IsServerError

func (o *PostRunServiceUnavailable) IsServerError() bool

IsServerError returns true when this post run service unavailable response has a 5xx status code

func (*PostRunServiceUnavailable) IsSuccess

func (o *PostRunServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this post run service unavailable response has a 2xx status code

func (*PostRunServiceUnavailable) String

func (o *PostRunServiceUnavailable) String() string

Jump to

Keyboard shortcuts

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