execd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package execd provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT.

Index

Constants

View Source
const (
	AccessTokenScopes = "AccessToken.Scopes"
)

Variables

This section is empty.

Functions

func NewChmodFilesRequest

func NewChmodFilesRequest(server string, body ChmodFilesJSONRequestBody) (*http.Request, error)

NewChmodFilesRequest calls the generic ChmodFiles builder with application/json body

func NewChmodFilesRequestWithBody

func NewChmodFilesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewChmodFilesRequestWithBody generates requests for ChmodFiles with any type of body

func NewCreateCodeContextRequest

func NewCreateCodeContextRequest(server string, body CreateCodeContextJSONRequestBody) (*http.Request, error)

NewCreateCodeContextRequest calls the generic CreateCodeContext builder with application/json body

func NewCreateCodeContextRequestWithBody

func NewCreateCodeContextRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateCodeContextRequestWithBody generates requests for CreateCodeContext with any type of body

func NewCreateSessionRequest

func NewCreateSessionRequest(server string, body CreateSessionJSONRequestBody) (*http.Request, error)

NewCreateSessionRequest calls the generic CreateSession builder with application/json body

func NewCreateSessionRequestWithBody

func NewCreateSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateSessionRequestWithBody generates requests for CreateSession with any type of body

func NewDeleteContextRequest

func NewDeleteContextRequest(server string, contextID string) (*http.Request, error)

NewDeleteContextRequest generates requests for DeleteContext

func NewDeleteContextsByLanguageRequest

func NewDeleteContextsByLanguageRequest(server string, params *DeleteContextsByLanguageParams) (*http.Request, error)

NewDeleteContextsByLanguageRequest generates requests for DeleteContextsByLanguage

func NewDeleteSessionRequest

func NewDeleteSessionRequest(server string, sessionID string) (*http.Request, error)

NewDeleteSessionRequest generates requests for DeleteSession

func NewDownloadFileRequest

func NewDownloadFileRequest(server string, params *DownloadFileParams) (*http.Request, error)

NewDownloadFileRequest generates requests for DownloadFile

func NewGetBackgroundCommandLogsRequest

func NewGetBackgroundCommandLogsRequest(server string, id string, params *GetBackgroundCommandLogsParams) (*http.Request, error)

NewGetBackgroundCommandLogsRequest generates requests for GetBackgroundCommandLogs

func NewGetCommandStatusRequest

func NewGetCommandStatusRequest(server string, id string) (*http.Request, error)

NewGetCommandStatusRequest generates requests for GetCommandStatus

func NewGetContextRequest

func NewGetContextRequest(server string, contextID string) (*http.Request, error)

NewGetContextRequest generates requests for GetContext

func NewGetFilesInfoRequest

func NewGetFilesInfoRequest(server string, params *GetFilesInfoParams) (*http.Request, error)

NewGetFilesInfoRequest generates requests for GetFilesInfo

func NewGetMetricsRequest

func NewGetMetricsRequest(server string) (*http.Request, error)

NewGetMetricsRequest generates requests for GetMetrics

func NewInterruptCodeRequest

func NewInterruptCodeRequest(server string, params *InterruptCodeParams) (*http.Request, error)

NewInterruptCodeRequest generates requests for InterruptCode

func NewInterruptCommandRequest

func NewInterruptCommandRequest(server string, params *InterruptCommandParams) (*http.Request, error)

NewInterruptCommandRequest generates requests for InterruptCommand

func NewListContextsRequest

func NewListContextsRequest(server string, params *ListContextsParams) (*http.Request, error)

NewListContextsRequest generates requests for ListContexts

func NewMakeDirsRequest

func NewMakeDirsRequest(server string, body MakeDirsJSONRequestBody) (*http.Request, error)

NewMakeDirsRequest calls the generic MakeDirs builder with application/json body

func NewMakeDirsRequestWithBody

func NewMakeDirsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewMakeDirsRequestWithBody generates requests for MakeDirs with any type of body

func NewPingRequest

func NewPingRequest(server string) (*http.Request, error)

NewPingRequest generates requests for Ping

func NewRemoveDirsRequest

func NewRemoveDirsRequest(server string, params *RemoveDirsParams) (*http.Request, error)

NewRemoveDirsRequest generates requests for RemoveDirs

func NewRemoveFilesRequest

func NewRemoveFilesRequest(server string, params *RemoveFilesParams) (*http.Request, error)

NewRemoveFilesRequest generates requests for RemoveFiles

func NewRenameFilesRequest

func NewRenameFilesRequest(server string, body RenameFilesJSONRequestBody) (*http.Request, error)

NewRenameFilesRequest calls the generic RenameFiles builder with application/json body

func NewRenameFilesRequestWithBody

func NewRenameFilesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewRenameFilesRequestWithBody generates requests for RenameFiles with any type of body

func NewReplaceContentRequest

func NewReplaceContentRequest(server string, body ReplaceContentJSONRequestBody) (*http.Request, error)

NewReplaceContentRequest calls the generic ReplaceContent builder with application/json body

func NewReplaceContentRequestWithBody

func NewReplaceContentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewReplaceContentRequestWithBody generates requests for ReplaceContent with any type of body

func NewRunCodeRequest

func NewRunCodeRequest(server string, body RunCodeJSONRequestBody) (*http.Request, error)

NewRunCodeRequest calls the generic RunCode builder with application/json body

func NewRunCodeRequestWithBody

func NewRunCodeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewRunCodeRequestWithBody generates requests for RunCode with any type of body

func NewRunCommandRequest

func NewRunCommandRequest(server string, body RunCommandJSONRequestBody) (*http.Request, error)

NewRunCommandRequest calls the generic RunCommand builder with application/json body

func NewRunCommandRequestWithBody

func NewRunCommandRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewRunCommandRequestWithBody generates requests for RunCommand with any type of body

func NewRunInSessionRequest

func NewRunInSessionRequest(server string, sessionID string, body RunInSessionJSONRequestBody) (*http.Request, error)

NewRunInSessionRequest calls the generic RunInSession builder with application/json body

func NewRunInSessionRequestWithBody

func NewRunInSessionRequestWithBody(server string, sessionID string, contentType string, body io.Reader) (*http.Request, error)

NewRunInSessionRequestWithBody generates requests for RunInSession with any type of body

func NewSearchFilesRequest

func NewSearchFilesRequest(server string, params *SearchFilesParams) (*http.Request, error)

NewSearchFilesRequest generates requests for SearchFiles

func NewUploadFileRequestWithBody

func NewUploadFileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewUploadFileRequestWithBody generates requests for UploadFile with any type of body

func NewWatchMetricsRequest

func NewWatchMetricsRequest(server string) (*http.Request, error)

NewWatchMetricsRequest generates requests for WatchMetrics

Types

type BadRequest

type BadRequest = ErrorResponse

BadRequest Standard error response format

type ChmodFilesJSONBody

type ChmodFilesJSONBody map[string]Permission

ChmodFilesJSONBody defines parameters for ChmodFiles.

type ChmodFilesJSONRequestBody

type ChmodFilesJSONRequestBody ChmodFilesJSONBody

ChmodFilesJSONRequestBody defines body for ChmodFiles for application/json ContentType.

type ChmodFilesResponse

type ChmodFilesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequest
	JSON500      *InternalServerError
}

func ParseChmodFilesResponse

func ParseChmodFilesResponse(rsp *http.Response) (*ChmodFilesResponse, error)

ParseChmodFilesResponse parses an HTTP response from a ChmodFilesWithResponse call

func (ChmodFilesResponse) Status

func (r ChmodFilesResponse) Status() string

Status returns HTTPResponse.Status

func (ChmodFilesResponse) StatusCode

func (r ChmodFilesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) ChmodFiles

func (c *Client) ChmodFiles(ctx context.Context, body ChmodFilesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChmodFilesWithBody

func (c *Client) ChmodFilesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateCodeContext

func (c *Client) CreateCodeContext(ctx context.Context, body CreateCodeContextJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateCodeContextWithBody

func (c *Client) CreateCodeContextWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSession

func (c *Client) CreateSession(ctx context.Context, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSessionWithBody

func (c *Client) CreateSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteContext

func (c *Client) DeleteContext(ctx context.Context, contextID string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteContextsByLanguage

func (c *Client) DeleteContextsByLanguage(ctx context.Context, params *DeleteContextsByLanguageParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteSession

func (c *Client) DeleteSession(ctx context.Context, sessionID string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DownloadFile

func (c *Client) DownloadFile(ctx context.Context, params *DownloadFileParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBackgroundCommandLogs

func (c *Client) GetBackgroundCommandLogs(ctx context.Context, id string, params *GetBackgroundCommandLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCommandStatus

func (c *Client) GetCommandStatus(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetContext

func (c *Client) GetContext(ctx context.Context, contextID string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFilesInfo

func (c *Client) GetFilesInfo(ctx context.Context, params *GetFilesInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMetrics

func (c *Client) GetMetrics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InterruptCode

func (c *Client) InterruptCode(ctx context.Context, params *InterruptCodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InterruptCommand

func (c *Client) InterruptCommand(ctx context.Context, params *InterruptCommandParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListContexts

func (c *Client) ListContexts(ctx context.Context, params *ListContextsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MakeDirs

func (c *Client) MakeDirs(ctx context.Context, body MakeDirsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MakeDirsWithBody

func (c *Client) MakeDirsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Ping

func (c *Client) Ping(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveDirs

func (c *Client) RemoveDirs(ctx context.Context, params *RemoveDirsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveFiles

func (c *Client) RemoveFiles(ctx context.Context, params *RemoveFilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RenameFiles

func (c *Client) RenameFiles(ctx context.Context, body RenameFilesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RenameFilesWithBody

func (c *Client) RenameFilesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceContent

func (c *Client) ReplaceContent(ctx context.Context, body ReplaceContentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceContentWithBody

func (c *Client) ReplaceContentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RunCode

func (c *Client) RunCode(ctx context.Context, body RunCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RunCodeWithBody

func (c *Client) RunCodeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RunCommand

func (c *Client) RunCommand(ctx context.Context, body RunCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RunCommandWithBody

func (c *Client) RunCommandWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RunInSession

func (c *Client) RunInSession(ctx context.Context, sessionID string, body RunInSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RunInSessionWithBody

func (c *Client) RunInSessionWithBody(ctx context.Context, sessionID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SearchFiles

func (c *Client) SearchFiles(ctx context.Context, params *SearchFilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UploadFileWithBody

func (c *Client) UploadFileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) WatchMetrics

func (c *Client) WatchMetrics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// InterruptCode request
	InterruptCode(ctx context.Context, params *InterruptCodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RunCodeWithBody request with any body
	RunCodeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RunCode(ctx context.Context, body RunCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateCodeContextWithBody request with any body
	CreateCodeContextWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateCodeContext(ctx context.Context, body CreateCodeContextJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteContextsByLanguage request
	DeleteContextsByLanguage(ctx context.Context, params *DeleteContextsByLanguageParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListContexts request
	ListContexts(ctx context.Context, params *ListContextsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteContext request
	DeleteContext(ctx context.Context, contextID string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetContext request
	GetContext(ctx context.Context, contextID string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InterruptCommand request
	InterruptCommand(ctx context.Context, params *InterruptCommandParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RunCommandWithBody request with any body
	RunCommandWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RunCommand(ctx context.Context, body RunCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCommandStatus request
	GetCommandStatus(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBackgroundCommandLogs request
	GetBackgroundCommandLogs(ctx context.Context, id string, params *GetBackgroundCommandLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveDirs request
	RemoveDirs(ctx context.Context, params *RemoveDirsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MakeDirsWithBody request with any body
	MakeDirsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	MakeDirs(ctx context.Context, body MakeDirsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveFiles request
	RemoveFiles(ctx context.Context, params *RemoveFilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DownloadFile request
	DownloadFile(ctx context.Context, params *DownloadFileParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFilesInfo request
	GetFilesInfo(ctx context.Context, params *GetFilesInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RenameFilesWithBody request with any body
	RenameFilesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RenameFiles(ctx context.Context, body RenameFilesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChmodFilesWithBody request with any body
	ChmodFilesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ChmodFiles(ctx context.Context, body ChmodFilesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReplaceContentWithBody request with any body
	ReplaceContentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ReplaceContent(ctx context.Context, body ReplaceContentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SearchFiles request
	SearchFiles(ctx context.Context, params *SearchFilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UploadFileWithBody request with any body
	UploadFileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMetrics request
	GetMetrics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WatchMetrics request
	WatchMetrics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Ping request
	Ping(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSessionWithBody request with any body
	CreateSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateSession(ctx context.Context, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSession request
	DeleteSession(ctx context.Context, sessionID string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RunInSessionWithBody request with any body
	RunInSessionWithBody(ctx context.Context, sessionID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RunInSession(ctx context.Context, sessionID string, body RunInSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) ChmodFilesWithBodyWithResponse

func (c *ClientWithResponses) ChmodFilesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChmodFilesResponse, error)

ChmodFilesWithBodyWithResponse request with arbitrary body returning *ChmodFilesResponse

func (*ClientWithResponses) ChmodFilesWithResponse

func (c *ClientWithResponses) ChmodFilesWithResponse(ctx context.Context, body ChmodFilesJSONRequestBody, reqEditors ...RequestEditorFn) (*ChmodFilesResponse, error)

func (*ClientWithResponses) CreateCodeContextWithBodyWithResponse

func (c *ClientWithResponses) CreateCodeContextWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCodeContextResponse, error)

CreateCodeContextWithBodyWithResponse request with arbitrary body returning *CreateCodeContextResponse

func (*ClientWithResponses) CreateCodeContextWithResponse

func (c *ClientWithResponses) CreateCodeContextWithResponse(ctx context.Context, body CreateCodeContextJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCodeContextResponse, error)

func (*ClientWithResponses) CreateSessionWithBodyWithResponse

func (c *ClientWithResponses) CreateSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error)

CreateSessionWithBodyWithResponse request with arbitrary body returning *CreateSessionResponse

func (*ClientWithResponses) CreateSessionWithResponse

func (c *ClientWithResponses) CreateSessionWithResponse(ctx context.Context, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error)

func (*ClientWithResponses) DeleteContextWithResponse

func (c *ClientWithResponses) DeleteContextWithResponse(ctx context.Context, contextID string, reqEditors ...RequestEditorFn) (*DeleteContextResponse, error)

DeleteContextWithResponse request returning *DeleteContextResponse

func (*ClientWithResponses) DeleteContextsByLanguageWithResponse

func (c *ClientWithResponses) DeleteContextsByLanguageWithResponse(ctx context.Context, params *DeleteContextsByLanguageParams, reqEditors ...RequestEditorFn) (*DeleteContextsByLanguageResponse, error)

DeleteContextsByLanguageWithResponse request returning *DeleteContextsByLanguageResponse

func (*ClientWithResponses) DeleteSessionWithResponse

func (c *ClientWithResponses) DeleteSessionWithResponse(ctx context.Context, sessionID string, reqEditors ...RequestEditorFn) (*DeleteSessionResponse, error)

DeleteSessionWithResponse request returning *DeleteSessionResponse

func (*ClientWithResponses) DownloadFileWithResponse

func (c *ClientWithResponses) DownloadFileWithResponse(ctx context.Context, params *DownloadFileParams, reqEditors ...RequestEditorFn) (*DownloadFileResponse, error)

DownloadFileWithResponse request returning *DownloadFileResponse

func (*ClientWithResponses) GetBackgroundCommandLogsWithResponse

func (c *ClientWithResponses) GetBackgroundCommandLogsWithResponse(ctx context.Context, id string, params *GetBackgroundCommandLogsParams, reqEditors ...RequestEditorFn) (*GetBackgroundCommandLogsResponse, error)

GetBackgroundCommandLogsWithResponse request returning *GetBackgroundCommandLogsResponse

func (*ClientWithResponses) GetCommandStatusWithResponse

func (c *ClientWithResponses) GetCommandStatusWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetCommandStatusResponse, error)

GetCommandStatusWithResponse request returning *GetCommandStatusResponse

func (*ClientWithResponses) GetContextWithResponse

func (c *ClientWithResponses) GetContextWithResponse(ctx context.Context, contextID string, reqEditors ...RequestEditorFn) (*GetContextResponse, error)

GetContextWithResponse request returning *GetContextResponse

func (*ClientWithResponses) GetFilesInfoWithResponse

func (c *ClientWithResponses) GetFilesInfoWithResponse(ctx context.Context, params *GetFilesInfoParams, reqEditors ...RequestEditorFn) (*GetFilesInfoResponse, error)

GetFilesInfoWithResponse request returning *GetFilesInfoResponse

func (*ClientWithResponses) GetMetricsWithResponse

func (c *ClientWithResponses) GetMetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMetricsResponse, error)

GetMetricsWithResponse request returning *GetMetricsResponse

func (*ClientWithResponses) InterruptCodeWithResponse

func (c *ClientWithResponses) InterruptCodeWithResponse(ctx context.Context, params *InterruptCodeParams, reqEditors ...RequestEditorFn) (*InterruptCodeResponse, error)

InterruptCodeWithResponse request returning *InterruptCodeResponse

func (*ClientWithResponses) InterruptCommandWithResponse

func (c *ClientWithResponses) InterruptCommandWithResponse(ctx context.Context, params *InterruptCommandParams, reqEditors ...RequestEditorFn) (*InterruptCommandResponse, error)

InterruptCommandWithResponse request returning *InterruptCommandResponse

func (*ClientWithResponses) ListContextsWithResponse

func (c *ClientWithResponses) ListContextsWithResponse(ctx context.Context, params *ListContextsParams, reqEditors ...RequestEditorFn) (*ListContextsResponse, error)

ListContextsWithResponse request returning *ListContextsResponse

func (*ClientWithResponses) MakeDirsWithBodyWithResponse

func (c *ClientWithResponses) MakeDirsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MakeDirsResponse, error)

MakeDirsWithBodyWithResponse request with arbitrary body returning *MakeDirsResponse

func (*ClientWithResponses) MakeDirsWithResponse

func (c *ClientWithResponses) MakeDirsWithResponse(ctx context.Context, body MakeDirsJSONRequestBody, reqEditors ...RequestEditorFn) (*MakeDirsResponse, error)

func (*ClientWithResponses) PingWithResponse

func (c *ClientWithResponses) PingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PingResponse, error)

PingWithResponse request returning *PingResponse

func (*ClientWithResponses) RemoveDirsWithResponse

func (c *ClientWithResponses) RemoveDirsWithResponse(ctx context.Context, params *RemoveDirsParams, reqEditors ...RequestEditorFn) (*RemoveDirsResponse, error)

RemoveDirsWithResponse request returning *RemoveDirsResponse

func (*ClientWithResponses) RemoveFilesWithResponse

func (c *ClientWithResponses) RemoveFilesWithResponse(ctx context.Context, params *RemoveFilesParams, reqEditors ...RequestEditorFn) (*RemoveFilesResponse, error)

RemoveFilesWithResponse request returning *RemoveFilesResponse

func (*ClientWithResponses) RenameFilesWithBodyWithResponse

func (c *ClientWithResponses) RenameFilesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenameFilesResponse, error)

RenameFilesWithBodyWithResponse request with arbitrary body returning *RenameFilesResponse

func (*ClientWithResponses) RenameFilesWithResponse

func (c *ClientWithResponses) RenameFilesWithResponse(ctx context.Context, body RenameFilesJSONRequestBody, reqEditors ...RequestEditorFn) (*RenameFilesResponse, error)

func (*ClientWithResponses) ReplaceContentWithBodyWithResponse

func (c *ClientWithResponses) ReplaceContentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceContentResponse, error)

ReplaceContentWithBodyWithResponse request with arbitrary body returning *ReplaceContentResponse

func (*ClientWithResponses) ReplaceContentWithResponse

func (c *ClientWithResponses) ReplaceContentWithResponse(ctx context.Context, body ReplaceContentJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceContentResponse, error)

func (*ClientWithResponses) RunCodeWithBodyWithResponse

func (c *ClientWithResponses) RunCodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RunCodeResponse, error)

RunCodeWithBodyWithResponse request with arbitrary body returning *RunCodeResponse

func (*ClientWithResponses) RunCodeWithResponse

func (c *ClientWithResponses) RunCodeWithResponse(ctx context.Context, body RunCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*RunCodeResponse, error)

func (*ClientWithResponses) RunCommandWithBodyWithResponse

func (c *ClientWithResponses) RunCommandWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RunCommandResponse, error)

RunCommandWithBodyWithResponse request with arbitrary body returning *RunCommandResponse

func (*ClientWithResponses) RunCommandWithResponse

func (c *ClientWithResponses) RunCommandWithResponse(ctx context.Context, body RunCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*RunCommandResponse, error)

func (*ClientWithResponses) RunInSessionWithBodyWithResponse

func (c *ClientWithResponses) RunInSessionWithBodyWithResponse(ctx context.Context, sessionID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RunInSessionResponse, error)

RunInSessionWithBodyWithResponse request with arbitrary body returning *RunInSessionResponse

func (*ClientWithResponses) RunInSessionWithResponse

func (c *ClientWithResponses) RunInSessionWithResponse(ctx context.Context, sessionID string, body RunInSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*RunInSessionResponse, error)

func (*ClientWithResponses) SearchFilesWithResponse

func (c *ClientWithResponses) SearchFilesWithResponse(ctx context.Context, params *SearchFilesParams, reqEditors ...RequestEditorFn) (*SearchFilesResponse, error)

SearchFilesWithResponse request returning *SearchFilesResponse

func (*ClientWithResponses) UploadFileWithBodyWithResponse

func (c *ClientWithResponses) UploadFileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadFileResponse, error)

UploadFileWithBodyWithResponse request with arbitrary body returning *UploadFileResponse

func (*ClientWithResponses) WatchMetricsWithResponse

func (c *ClientWithResponses) WatchMetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*WatchMetricsResponse, error)

WatchMetricsWithResponse request returning *WatchMetricsResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// InterruptCodeWithResponse request
	InterruptCodeWithResponse(ctx context.Context, params *InterruptCodeParams, reqEditors ...RequestEditorFn) (*InterruptCodeResponse, error)

	// RunCodeWithBodyWithResponse request with any body
	RunCodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RunCodeResponse, error)

	RunCodeWithResponse(ctx context.Context, body RunCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*RunCodeResponse, error)

	// CreateCodeContextWithBodyWithResponse request with any body
	CreateCodeContextWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCodeContextResponse, error)

	CreateCodeContextWithResponse(ctx context.Context, body CreateCodeContextJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCodeContextResponse, error)

	// DeleteContextsByLanguageWithResponse request
	DeleteContextsByLanguageWithResponse(ctx context.Context, params *DeleteContextsByLanguageParams, reqEditors ...RequestEditorFn) (*DeleteContextsByLanguageResponse, error)

	// ListContextsWithResponse request
	ListContextsWithResponse(ctx context.Context, params *ListContextsParams, reqEditors ...RequestEditorFn) (*ListContextsResponse, error)

	// DeleteContextWithResponse request
	DeleteContextWithResponse(ctx context.Context, contextID string, reqEditors ...RequestEditorFn) (*DeleteContextResponse, error)

	// GetContextWithResponse request
	GetContextWithResponse(ctx context.Context, contextID string, reqEditors ...RequestEditorFn) (*GetContextResponse, error)

	// InterruptCommandWithResponse request
	InterruptCommandWithResponse(ctx context.Context, params *InterruptCommandParams, reqEditors ...RequestEditorFn) (*InterruptCommandResponse, error)

	// RunCommandWithBodyWithResponse request with any body
	RunCommandWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RunCommandResponse, error)

	RunCommandWithResponse(ctx context.Context, body RunCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*RunCommandResponse, error)

	// GetCommandStatusWithResponse request
	GetCommandStatusWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetCommandStatusResponse, error)

	// GetBackgroundCommandLogsWithResponse request
	GetBackgroundCommandLogsWithResponse(ctx context.Context, id string, params *GetBackgroundCommandLogsParams, reqEditors ...RequestEditorFn) (*GetBackgroundCommandLogsResponse, error)

	// RemoveDirsWithResponse request
	RemoveDirsWithResponse(ctx context.Context, params *RemoveDirsParams, reqEditors ...RequestEditorFn) (*RemoveDirsResponse, error)

	// MakeDirsWithBodyWithResponse request with any body
	MakeDirsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MakeDirsResponse, error)

	MakeDirsWithResponse(ctx context.Context, body MakeDirsJSONRequestBody, reqEditors ...RequestEditorFn) (*MakeDirsResponse, error)

	// RemoveFilesWithResponse request
	RemoveFilesWithResponse(ctx context.Context, params *RemoveFilesParams, reqEditors ...RequestEditorFn) (*RemoveFilesResponse, error)

	// DownloadFileWithResponse request
	DownloadFileWithResponse(ctx context.Context, params *DownloadFileParams, reqEditors ...RequestEditorFn) (*DownloadFileResponse, error)

	// GetFilesInfoWithResponse request
	GetFilesInfoWithResponse(ctx context.Context, params *GetFilesInfoParams, reqEditors ...RequestEditorFn) (*GetFilesInfoResponse, error)

	// RenameFilesWithBodyWithResponse request with any body
	RenameFilesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenameFilesResponse, error)

	RenameFilesWithResponse(ctx context.Context, body RenameFilesJSONRequestBody, reqEditors ...RequestEditorFn) (*RenameFilesResponse, error)

	// ChmodFilesWithBodyWithResponse request with any body
	ChmodFilesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChmodFilesResponse, error)

	ChmodFilesWithResponse(ctx context.Context, body ChmodFilesJSONRequestBody, reqEditors ...RequestEditorFn) (*ChmodFilesResponse, error)

	// ReplaceContentWithBodyWithResponse request with any body
	ReplaceContentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceContentResponse, error)

	ReplaceContentWithResponse(ctx context.Context, body ReplaceContentJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceContentResponse, error)

	// SearchFilesWithResponse request
	SearchFilesWithResponse(ctx context.Context, params *SearchFilesParams, reqEditors ...RequestEditorFn) (*SearchFilesResponse, error)

	// UploadFileWithBodyWithResponse request with any body
	UploadFileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadFileResponse, error)

	// GetMetricsWithResponse request
	GetMetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMetricsResponse, error)

	// WatchMetricsWithResponse request
	WatchMetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*WatchMetricsResponse, error)

	// PingWithResponse request
	PingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PingResponse, error)

	// CreateSessionWithBodyWithResponse request with any body
	CreateSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error)

	CreateSessionWithResponse(ctx context.Context, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error)

	// DeleteSessionWithResponse request
	DeleteSessionWithResponse(ctx context.Context, sessionID string, reqEditors ...RequestEditorFn) (*DeleteSessionResponse, error)

	// RunInSessionWithBodyWithResponse request with any body
	RunInSessionWithBodyWithResponse(ctx context.Context, sessionID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RunInSessionResponse, error)

	RunInSessionWithResponse(ctx context.Context, sessionID string, body RunInSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*RunInSessionResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CodeContext

type CodeContext struct {
	// ID Unique session identifier returned by CreateContext
	ID *string `json:"id,omitempty"`

	// Language Execution runtime
	Language string `json:"language"`
}

CodeContext Code execution context with session identifier

type CodeContextRequest

type CodeContextRequest struct {
	// Language Execution runtime (python, bash, java, etc.)
	Language *string `json:"language,omitempty"`
}

CodeContextRequest Request to create a code execution context

type CommandStatusResponse

type CommandStatusResponse struct {
	// Content Original command content
	Content *string `json:"content,omitempty"`

	// Error Error message if the command failed
	Error *string `json:"error,omitempty"`

	// ExitCode Exit code if the command has finished
	ExitCode *int32 `json:"exit_code,omitempty"`

	// FinishedAt Finish time in RFC3339 format (null if still running)
	FinishedAt *time.Time `json:"finished_at,omitempty"`

	// ID Command ID returned by RunCommand
	ID *string `json:"id,omitempty"`

	// Running Whether the command is still running
	Running *bool `json:"running,omitempty"`

	// StartedAt Start time in RFC3339 format
	StartedAt *time.Time `json:"started_at,omitempty"`
}

CommandStatusResponse Command execution status (foreground or background)

type CreateCodeContextJSONRequestBody

type CreateCodeContextJSONRequestBody = CodeContextRequest

CreateCodeContextJSONRequestBody defines body for CreateCodeContext for application/json ContentType.

type CreateCodeContextResponse

type CreateCodeContextResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CodeContext
	JSON400      *BadRequest
	JSON500      *InternalServerError
}

func ParseCreateCodeContextResponse

func ParseCreateCodeContextResponse(rsp *http.Response) (*CreateCodeContextResponse, error)

ParseCreateCodeContextResponse parses an HTTP response from a CreateCodeContextWithResponse call

func (CreateCodeContextResponse) Status

func (r CreateCodeContextResponse) Status() string

Status returns HTTPResponse.Status

func (CreateCodeContextResponse) StatusCode

func (r CreateCodeContextResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSessionJSONRequestBody

type CreateSessionJSONRequestBody = CreateSessionRequest

CreateSessionJSONRequestBody defines body for CreateSession for application/json ContentType.

type CreateSessionRequest

type CreateSessionRequest struct {
	// Cwd Working directory for the session (optional)
	Cwd *string `json:"cwd,omitempty"`
}

CreateSessionRequest Request to create a bash session (optional body; empty treated as defaults)

type CreateSessionResponse

type CreateSessionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SessionCreated
	JSON400      *BadRequest
	JSON500      *InternalServerError
}

func ParseCreateSessionResponse

func ParseCreateSessionResponse(rsp *http.Response) (*CreateSessionResponse, error)

ParseCreateSessionResponse parses an HTTP response from a CreateSessionWithResponse call

func (CreateSessionResponse) Status

func (r CreateSessionResponse) Status() string

Status returns HTTPResponse.Status

func (CreateSessionResponse) StatusCode

func (r CreateSessionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteContextResponse

type DeleteContextResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequest
	JSON404      *NotFound
	JSON500      *InternalServerError
}

func ParseDeleteContextResponse

func ParseDeleteContextResponse(rsp *http.Response) (*DeleteContextResponse, error)

ParseDeleteContextResponse parses an HTTP response from a DeleteContextWithResponse call

func (DeleteContextResponse) Status

func (r DeleteContextResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteContextResponse) StatusCode

func (r DeleteContextResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteContextsByLanguageParams

type DeleteContextsByLanguageParams struct {
	// Language Target execution runtime whose contexts should be deleted
	Language string `form:"language" json:"language"`
}

DeleteContextsByLanguageParams defines parameters for DeleteContextsByLanguage.

type DeleteContextsByLanguageResponse

type DeleteContextsByLanguageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequest
	JSON500      *InternalServerError
}

func ParseDeleteContextsByLanguageResponse

func ParseDeleteContextsByLanguageResponse(rsp *http.Response) (*DeleteContextsByLanguageResponse, error)

ParseDeleteContextsByLanguageResponse parses an HTTP response from a DeleteContextsByLanguageWithResponse call

func (DeleteContextsByLanguageResponse) Status

Status returns HTTPResponse.Status

func (DeleteContextsByLanguageResponse) StatusCode

func (r DeleteContextsByLanguageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteSessionResponse

type DeleteSessionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequest
	JSON404      *NotFound
	JSON500      *InternalServerError
}

func ParseDeleteSessionResponse

func ParseDeleteSessionResponse(rsp *http.Response) (*DeleteSessionResponse, error)

ParseDeleteSessionResponse parses an HTTP response from a DeleteSessionWithResponse call

func (DeleteSessionResponse) Status

func (r DeleteSessionResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteSessionResponse) StatusCode

func (r DeleteSessionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DownloadFileParams

type DownloadFileParams struct {
	// Path Absolute or relative path of the file to download
	Path string `form:"path" json:"path"`

	// Range HTTP Range header for partial content requests
	Range *string `json:"Range,omitempty"`
}

DownloadFileParams defines parameters for DownloadFile.

type DownloadFileResponse

type DownloadFileResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequest
	JSON404      *NotFound
	JSON416      *ErrorResponse
	JSON500      *InternalServerError
}

func ParseDownloadFileResponse

func ParseDownloadFileResponse(rsp *http.Response) (*DownloadFileResponse, error)

ParseDownloadFileResponse parses an HTTP response from a DownloadFileWithResponse call

func (DownloadFileResponse) Status

func (r DownloadFileResponse) Status() string

Status returns HTTPResponse.Status

func (DownloadFileResponse) StatusCode

func (r DownloadFileResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ErrorResponse

type ErrorResponse struct {
	// Code Error code for programmatic handling
	Code string `json:"code"`

	// Message Human-readable error message
	Message string `json:"message"`
}

ErrorResponse Standard error response format

type FileInfo

type FileInfo struct {
	// CreatedAt File creation time
	CreatedAt time.Time `json:"created_at"`

	// Group File group name
	Group string `json:"group"`

	// Mode File permissions in octal format
	Mode int `json:"mode"`

	// ModifiedAt Last modification time
	ModifiedAt time.Time `json:"modified_at"`

	// Owner File owner username
	Owner string `json:"owner"`

	// Path Absolute file path
	Path string `json:"path"`

	// Size File size in bytes
	Size int64 `json:"size"`
}

FileInfo File metadata including path and permissions

type GetBackgroundCommandLogsParams

type GetBackgroundCommandLogsParams struct {
	// Cursor Optional 0-based line cursor (behaves like a file seek). When provided, only
	// stdout/stderr lines after this line are returned. The response includes the
	// latest line index (`cursor`) so the client can request incremental output
	// on subsequent calls. If omitted, the full log is returned.
	Cursor *int64 `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetBackgroundCommandLogsParams defines parameters for GetBackgroundCommandLogs.

type GetBackgroundCommandLogsResponse

type GetBackgroundCommandLogsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequest
	JSON404      *NotFound
	JSON500      *InternalServerError
}

func ParseGetBackgroundCommandLogsResponse

func ParseGetBackgroundCommandLogsResponse(rsp *http.Response) (*GetBackgroundCommandLogsResponse, error)

ParseGetBackgroundCommandLogsResponse parses an HTTP response from a GetBackgroundCommandLogsWithResponse call

func (GetBackgroundCommandLogsResponse) Status

Status returns HTTPResponse.Status

func (GetBackgroundCommandLogsResponse) StatusCode

func (r GetBackgroundCommandLogsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCommandStatusResponse

type GetCommandStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CommandStatusResponse
	JSON400      *BadRequest
	JSON404      *NotFound
	JSON500      *InternalServerError
}

func ParseGetCommandStatusResponse

func ParseGetCommandStatusResponse(rsp *http.Response) (*GetCommandStatusResponse, error)

ParseGetCommandStatusResponse parses an HTTP response from a GetCommandStatusWithResponse call

func (GetCommandStatusResponse) Status

func (r GetCommandStatusResponse) Status() string

Status returns HTTPResponse.Status

func (GetCommandStatusResponse) StatusCode

func (r GetCommandStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetContextResponse

type GetContextResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CodeContext
	JSON404      *NotFound
	JSON500      *InternalServerError
}

func ParseGetContextResponse

func ParseGetContextResponse(rsp *http.Response) (*GetContextResponse, error)

ParseGetContextResponse parses an HTTP response from a GetContextWithResponse call

func (GetContextResponse) Status

func (r GetContextResponse) Status() string

Status returns HTTPResponse.Status

func (GetContextResponse) StatusCode

func (r GetContextResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFilesInfoParams

type GetFilesInfoParams struct {
	// Path File path(s) to get info for (can be specified multiple times)
	Path []string `form:"path" json:"path"`
}

GetFilesInfoParams defines parameters for GetFilesInfo.

type GetFilesInfoResponse

type GetFilesInfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]FileInfo
	JSON404      *NotFound
	JSON500      *InternalServerError
}

func ParseGetFilesInfoResponse

func ParseGetFilesInfoResponse(rsp *http.Response) (*GetFilesInfoResponse, error)

ParseGetFilesInfoResponse parses an HTTP response from a GetFilesInfoWithResponse call

func (GetFilesInfoResponse) Status

func (r GetFilesInfoResponse) Status() string

Status returns HTTPResponse.Status

func (GetFilesInfoResponse) StatusCode

func (r GetFilesInfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMetricsResponse

type GetMetricsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Metrics
	JSON500      *InternalServerError
}

func ParseGetMetricsResponse

func ParseGetMetricsResponse(rsp *http.Response) (*GetMetricsResponse, error)

ParseGetMetricsResponse parses an HTTP response from a GetMetricsWithResponse call

func (GetMetricsResponse) Status

func (r GetMetricsResponse) Status() string

Status returns HTTPResponse.Status

func (GetMetricsResponse) StatusCode

func (r GetMetricsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InternalServerError

type InternalServerError = ErrorResponse

InternalServerError Standard error response format

type InterruptCodeParams

type InterruptCodeParams struct {
	// ID Session ID of the execution context to interrupt
	ID string `form:"id" json:"id"`
}

InterruptCodeParams defines parameters for InterruptCode.

type InterruptCodeResponse

type InterruptCodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequest
	JSON500      *InternalServerError
}

func ParseInterruptCodeResponse

func ParseInterruptCodeResponse(rsp *http.Response) (*InterruptCodeResponse, error)

ParseInterruptCodeResponse parses an HTTP response from a InterruptCodeWithResponse call

func (InterruptCodeResponse) Status

func (r InterruptCodeResponse) Status() string

Status returns HTTPResponse.Status

func (InterruptCodeResponse) StatusCode

func (r InterruptCodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InterruptCommandParams

type InterruptCommandParams struct {
	// ID Session ID of the execution context to interrupt
	ID string `form:"id" json:"id"`
}

InterruptCommandParams defines parameters for InterruptCommand.

type InterruptCommandResponse

type InterruptCommandResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequest
	JSON500      *InternalServerError
}

func ParseInterruptCommandResponse

func ParseInterruptCommandResponse(rsp *http.Response) (*InterruptCommandResponse, error)

ParseInterruptCommandResponse parses an HTTP response from a InterruptCommandWithResponse call

func (InterruptCommandResponse) Status

func (r InterruptCommandResponse) Status() string

Status returns HTTPResponse.Status

func (InterruptCommandResponse) StatusCode

func (r InterruptCommandResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListContextsParams

type ListContextsParams struct {
	// Language Filter contexts by execution runtime (python, bash, java, etc.)
	Language string `form:"language" json:"language"`
}

ListContextsParams defines parameters for ListContexts.

type ListContextsResponse

type ListContextsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]CodeContext
	JSON400      *BadRequest
	JSON500      *InternalServerError
}

func ParseListContextsResponse

func ParseListContextsResponse(rsp *http.Response) (*ListContextsResponse, error)

ParseListContextsResponse parses an HTTP response from a ListContextsWithResponse call

func (ListContextsResponse) Status

func (r ListContextsResponse) Status() string

Status returns HTTPResponse.Status

func (ListContextsResponse) StatusCode

func (r ListContextsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MakeDirsJSONBody

type MakeDirsJSONBody map[string]Permission

MakeDirsJSONBody defines parameters for MakeDirs.

type MakeDirsJSONRequestBody

type MakeDirsJSONRequestBody MakeDirsJSONBody

MakeDirsJSONRequestBody defines body for MakeDirs for application/json ContentType.

type MakeDirsResponse

type MakeDirsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequest
	JSON500      *InternalServerError
}

func ParseMakeDirsResponse

func ParseMakeDirsResponse(rsp *http.Response) (*MakeDirsResponse, error)

ParseMakeDirsResponse parses an HTTP response from a MakeDirsWithResponse call

func (MakeDirsResponse) Status

func (r MakeDirsResponse) Status() string

Status returns HTTPResponse.Status

func (MakeDirsResponse) StatusCode

func (r MakeDirsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Metrics

type Metrics struct {
	// CPUCount Number of CPU cores
	CPUCount float32 `json:"cpu_count"`

	// CPUUsedPct CPU usage percentage
	CPUUsedPct float32 `json:"cpu_used_pct"`

	// MemTotalMib Total memory in MiB
	MemTotalMib float32 `json:"mem_total_mib"`

	// MemUsedMib Used memory in MiB
	MemUsedMib float32 `json:"mem_used_mib"`

	// Timestamp Timestamp when metrics were collected (Unix milliseconds)
	Timestamp int64 `json:"timestamp"`
}

Metrics System resource usage metrics

type NotFound

type NotFound = ErrorResponse

NotFound Standard error response format

type Permission

type Permission struct {
	// Group Group name
	Group *string `json:"group,omitempty"`

	// Mode Permission mode in octal format (e.g., 644, 755)
	Mode int `json:"mode"`

	// Owner Owner username
	Owner *string `json:"owner,omitempty"`
}

Permission File ownership and mode settings

type PingResponse

type PingResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePingResponse

func ParsePingResponse(rsp *http.Response) (*PingResponse, error)

ParsePingResponse parses an HTTP response from a PingWithResponse call

func (PingResponse) Status

func (r PingResponse) Status() string

Status returns HTTPResponse.Status

func (PingResponse) StatusCode

func (r PingResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveDirsParams

type RemoveDirsParams struct {
	// Path Directory path(s) to delete (can be specified multiple times)
	Path []string `form:"path" json:"path"`
}

RemoveDirsParams defines parameters for RemoveDirs.

type RemoveDirsResponse

type RemoveDirsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *InternalServerError
}

func ParseRemoveDirsResponse

func ParseRemoveDirsResponse(rsp *http.Response) (*RemoveDirsResponse, error)

ParseRemoveDirsResponse parses an HTTP response from a RemoveDirsWithResponse call

func (RemoveDirsResponse) Status

func (r RemoveDirsResponse) Status() string

Status returns HTTPResponse.Status

func (RemoveDirsResponse) StatusCode

func (r RemoveDirsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveFilesParams

type RemoveFilesParams struct {
	// Path File path(s) to delete (can be specified multiple times)
	Path []string `form:"path" json:"path"`
}

RemoveFilesParams defines parameters for RemoveFiles.

type RemoveFilesResponse

type RemoveFilesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *InternalServerError
}

func ParseRemoveFilesResponse

func ParseRemoveFilesResponse(rsp *http.Response) (*RemoveFilesResponse, error)

ParseRemoveFilesResponse parses an HTTP response from a RemoveFilesWithResponse call

func (RemoveFilesResponse) Status

func (r RemoveFilesResponse) Status() string

Status returns HTTPResponse.Status

func (RemoveFilesResponse) StatusCode

func (r RemoveFilesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RenameFileItem

type RenameFileItem struct {
	// Dest Destination file path
	Dest string `json:"dest"`

	// Src Source file path
	Src string `json:"src"`
}

RenameFileItem File rename/move operation

type RenameFilesJSONBody

type RenameFilesJSONBody = []RenameFileItem

RenameFilesJSONBody defines parameters for RenameFiles.

type RenameFilesJSONRequestBody

type RenameFilesJSONRequestBody = RenameFilesJSONBody

RenameFilesJSONRequestBody defines body for RenameFiles for application/json ContentType.

type RenameFilesResponse

type RenameFilesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequest
	JSON404      *NotFound
	JSON500      *InternalServerError
}

func ParseRenameFilesResponse

func ParseRenameFilesResponse(rsp *http.Response) (*RenameFilesResponse, error)

ParseRenameFilesResponse parses an HTTP response from a RenameFilesWithResponse call

func (RenameFilesResponse) Status

func (r RenameFilesResponse) Status() string

Status returns HTTPResponse.Status

func (RenameFilesResponse) StatusCode

func (r RenameFilesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReplaceContentJSONBody

type ReplaceContentJSONBody map[string]ReplaceFileContentItem

ReplaceContentJSONBody defines parameters for ReplaceContent.

type ReplaceContentJSONRequestBody

type ReplaceContentJSONRequestBody ReplaceContentJSONBody

ReplaceContentJSONRequestBody defines body for ReplaceContent for application/json ContentType.

type ReplaceContentResponse

type ReplaceContentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequest
	JSON500      *InternalServerError
}

func ParseReplaceContentResponse

func ParseReplaceContentResponse(rsp *http.Response) (*ReplaceContentResponse, error)

ParseReplaceContentResponse parses an HTTP response from a ReplaceContentWithResponse call

func (ReplaceContentResponse) Status

func (r ReplaceContentResponse) Status() string

Status returns HTTPResponse.Status

func (ReplaceContentResponse) StatusCode

func (r ReplaceContentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReplaceFileContentItem

type ReplaceFileContentItem struct {
	// New Replacement string
	New string `json:"new"`

	// Old String to be replaced
	Old string `json:"old"`
}

ReplaceFileContentItem Content replacement operation

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RunCodeJSONRequestBody

type RunCodeJSONRequestBody = RunCodeRequest

RunCodeJSONRequestBody defines body for RunCode for application/json ContentType.

type RunCodeRequest

type RunCodeRequest struct {
	// Code Source code to execute
	Code string `json:"code"`

	// Context Code execution context with session identifier
	Context *CodeContext `json:"context,omitempty"`
}

RunCodeRequest Request to execute code in a context

type RunCodeResponse

type RunCodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequest
	JSON500      *InternalServerError
}

func ParseRunCodeResponse

func ParseRunCodeResponse(rsp *http.Response) (*RunCodeResponse, error)

ParseRunCodeResponse parses an HTTP response from a RunCodeWithResponse call

func (RunCodeResponse) Status

func (r RunCodeResponse) Status() string

Status returns HTTPResponse.Status

func (RunCodeResponse) StatusCode

func (r RunCodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RunCommandJSONRequestBody

type RunCommandJSONRequestBody = RunCommandRequest

RunCommandJSONRequestBody defines body for RunCommand for application/json ContentType.

type RunCommandRequest

type RunCommandRequest struct {
	// Background Whether to run command in detached mode
	Background *bool `json:"background,omitempty"`

	// Command Shell command to execute
	Command string `json:"command"`

	// Cwd Working directory for command execution
	Cwd *string `json:"cwd,omitempty"`

	// Envs Environment variables injected into the command process.
	Envs *map[string]string `json:"envs,omitempty"`

	// GID Unix group ID used to run the command. Requires `uid` to be provided.
	GID *int32 `json:"gid,omitempty"`

	// Timeout Maximum allowed execution time in milliseconds before the command is forcefully terminated by the server. If omitted, the server will not enforce any timeout.
	Timeout *int64 `json:"timeout,omitempty"`

	// UID Unix user ID used to run the command. If `gid` is provided, `uid` is required.
	UID *int32 `json:"uid,omitempty"`
}

RunCommandRequest Request to execute a shell command

type RunCommandResponse

type RunCommandResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequest
	JSON500      *InternalServerError
}

func ParseRunCommandResponse

func ParseRunCommandResponse(rsp *http.Response) (*RunCommandResponse, error)

ParseRunCommandResponse parses an HTTP response from a RunCommandWithResponse call

func (RunCommandResponse) Status

func (r RunCommandResponse) Status() string

Status returns HTTPResponse.Status

func (RunCommandResponse) StatusCode

func (r RunCommandResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RunInSessionJSONRequestBody

type RunInSessionJSONRequestBody = RunInSessionRequest

RunInSessionJSONRequestBody defines body for RunInSession for application/json ContentType.

type RunInSessionRequest

type RunInSessionRequest struct {
	// Command Shell command to execute in the session
	Command string `json:"command"`

	// Cwd Working directory override for this run (optional)
	Cwd *string `json:"cwd,omitempty"`

	// Timeout Maximum execution time in milliseconds (optional; server may not enforce if omitted)
	Timeout *int64 `json:"timeout,omitempty"`
}

RunInSessionRequest Request to run a command in an existing bash session

type RunInSessionResponse

type RunInSessionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequest
	JSON500      *InternalServerError
}

func ParseRunInSessionResponse

func ParseRunInSessionResponse(rsp *http.Response) (*RunInSessionResponse, error)

ParseRunInSessionResponse parses an HTTP response from a RunInSessionWithResponse call

func (RunInSessionResponse) Status

func (r RunInSessionResponse) Status() string

Status returns HTTPResponse.Status

func (RunInSessionResponse) StatusCode

func (r RunInSessionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SearchFilesParams

type SearchFilesParams struct {
	// Path Root directory path to search in
	Path string `form:"path" json:"path"`

	// Pattern Glob pattern to match files (default is **)
	Pattern *string `form:"pattern,omitempty" json:"pattern,omitempty"`
}

SearchFilesParams defines parameters for SearchFiles.

type SearchFilesResponse

type SearchFilesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]FileInfo
	JSON400      *BadRequest
	JSON404      *NotFound
	JSON500      *InternalServerError
}

func ParseSearchFilesResponse

func ParseSearchFilesResponse(rsp *http.Response) (*SearchFilesResponse, error)

ParseSearchFilesResponse parses an HTTP response from a SearchFilesWithResponse call

func (SearchFilesResponse) Status

func (r SearchFilesResponse) Status() string

Status returns HTTPResponse.Status

func (SearchFilesResponse) StatusCode

func (r SearchFilesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ServerStreamEvent

type ServerStreamEvent struct {
	// Error Execution error details if an error occurred
	Error *struct {
		// Ename Error name/type
		Ename *string `json:"ename,omitempty"`

		// Evalue Error value/message
		Evalue *string `json:"evalue,omitempty"`

		// Traceback Stack trace lines
		Traceback *[]string `json:"traceback,omitempty"`
	} `json:"error,omitempty"`

	// ExecutionCount Cell execution number in the session
	ExecutionCount *int `json:"execution_count,omitempty"`

	// ExecutionTime Execution duration in milliseconds
	ExecutionTime *int64 `json:"execution_time,omitempty"`

	// Results Execution output in various MIME types (e.g., "text/plain", "text/html")
	Results *map[string]interface{} `json:"results,omitempty"`

	// Text Textual data for status, init, and stream events
	Text *string `json:"text,omitempty"`

	// Timestamp When the event was generated (Unix milliseconds)
	Timestamp *int64 `json:"timestamp,omitempty"`

	// Type Event type for client-side handling
	Type *ServerStreamEventType `json:"type,omitempty"`
}

ServerStreamEvent Server-sent event for streaming execution output

type ServerStreamEventType

type ServerStreamEventType string

ServerStreamEventType Event type for client-side handling

const (
	Error             ServerStreamEventType = "error"
	ExecutionComplete ServerStreamEventType = "execution_complete"
	ExecutionCount    ServerStreamEventType = "execution_count"
	Init              ServerStreamEventType = "init"
	Ping              ServerStreamEventType = "ping"
	Result            ServerStreamEventType = "result"
	Status            ServerStreamEventType = "status"
	Stderr            ServerStreamEventType = "stderr"
	Stdout            ServerStreamEventType = "stdout"
)

Defines values for ServerStreamEventType.

func (ServerStreamEventType) Valid

func (e ServerStreamEventType) Valid() bool

Valid indicates whether the value is a known member of the ServerStreamEventType enum.

type SessionCreated

type SessionCreated struct {
	// SessionID Unique session ID for run_in_session and delete_session
	SessionID string `json:"session_id"`
}

SessionCreated Response for create_session

type UploadFileMultipartBody

type UploadFileMultipartBody struct {
	// File File to upload
	File *openapi_types.File `json:"file,omitempty"`

	// Metadata JSON-encoded file metadata (FileMetadata object)
	Metadata *string `json:"metadata,omitempty"`
}

UploadFileMultipartBody defines parameters for UploadFile.

type UploadFileMultipartRequestBody

type UploadFileMultipartRequestBody UploadFileMultipartBody

UploadFileMultipartRequestBody defines body for UploadFile for multipart/form-data ContentType.

type UploadFileResponse

type UploadFileResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequest
	JSON500      *InternalServerError
}

func ParseUploadFileResponse

func ParseUploadFileResponse(rsp *http.Response) (*UploadFileResponse, error)

ParseUploadFileResponse parses an HTTP response from a UploadFileWithResponse call

func (UploadFileResponse) Status

func (r UploadFileResponse) Status() string

Status returns HTTPResponse.Status

func (UploadFileResponse) StatusCode

func (r UploadFileResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WatchMetricsResponse

type WatchMetricsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *InternalServerError
}

func ParseWatchMetricsResponse

func ParseWatchMetricsResponse(rsp *http.Response) (*WatchMetricsResponse, error)

ParseWatchMetricsResponse parses an HTTP response from a WatchMetricsWithResponse call

func (WatchMetricsResponse) Status

func (r WatchMetricsResponse) Status() string

Status returns HTTPResponse.Status

func (WatchMetricsResponse) StatusCode

func (r WatchMetricsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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