Documentation
¶
Index ¶
- Constants
- type APIConfig
- type APIError
- type BootstrapMetadata
- type Client
- func (c *Client) CloneRepository(sandboxID string, req *CloneRepositoryRequest) error
- func (c *Client) CreateFolder(sandboxID, folderPath string) error
- func (c *Client) CreateSandbox(req *CreateSandboxRequest) (*Sandbox, error)
- func (c *Client) CreateSession(sandboxID, sessionID string) error
- func (c *Client) DeleteSandbox(sandboxID string, force bool) error
- func (c *Client) ExecuteCode(sandboxID string, req *ExecuteCodeRequest) (*ExecuteCodeResponse, error)
- func (c *Client) ExecuteCommand(sandboxID string, req *ExecuteCommandRequest) (*ExecuteCommandResponse, error)
- func (c *Client) ExecuteSessionCommand(sandboxID, sessionID, command string) (*SessionExecuteResponse, error)
- func (c *Client) FetchConfig() (*APIConfig, error)
- func (c *Client) GetPreviewURL(sandboxID string, port int) (*PreviewURL, error)
- func (c *Client) GetSandbox(sandboxID string) (*Sandbox, error)
- func (c *Client) GetSession(sandboxID, sessionID string) (*Session, error)
- func (c *Client) GetSessionCommandLogs(sandboxID, sessionID, commandID string) (string, error)
- func (c *Client) GetSignedPreviewURL(sandboxID string, port int, expiresInSeconds int) (*SignedPreviewURL, error)
- func (c *Client) ListSandboxes() ([]Sandbox, error)
- func (c *Client) ListSnapshots() ([]Snapshot, error)
- func (c *Client) UploadFile(sandboxID, filePath string, content []byte) error
- func (c *Client) Verify() error
- type CloneMetadata
- type CloneRepositoryRequest
- type Configuration
- type CreateRepositorySandbox
- func (c *CreateRepositorySandbox) Cancel(ctx core.ExecutionContext) error
- func (c *CreateRepositorySandbox) Cleanup(ctx core.SetupContext) error
- func (c *CreateRepositorySandbox) Color() string
- func (c *CreateRepositorySandbox) Configuration() []configuration.Field
- func (c *CreateRepositorySandbox) Description() string
- func (c *CreateRepositorySandbox) Documentation() string
- func (c *CreateRepositorySandbox) ExampleOutput() map[string]any
- func (c *CreateRepositorySandbox) Execute(ctx core.ExecutionContext) error
- func (c *CreateRepositorySandbox) HandleHook(ctx core.ActionHookContext) error
- func (c *CreateRepositorySandbox) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (c *CreateRepositorySandbox) Hooks() []core.Hook
- func (c *CreateRepositorySandbox) Icon() string
- func (c *CreateRepositorySandbox) Label() string
- func (c *CreateRepositorySandbox) Name() string
- func (c *CreateRepositorySandbox) OutputChannels(configuration any) []core.OutputChannel
- func (c *CreateRepositorySandbox) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *CreateRepositorySandbox) Setup(ctx core.SetupContext) error
- type CreateRepositorySandboxBootstrapSpec
- type CreateRepositorySandboxMetadata
- type CreateRepositorySandboxSpec
- type CreateSandbox
- func (c *CreateSandbox) Cancel(ctx core.ExecutionContext) error
- func (c *CreateSandbox) Cleanup(ctx core.SetupContext) error
- func (c *CreateSandbox) Color() string
- func (c *CreateSandbox) Configuration() []configuration.Field
- func (c *CreateSandbox) Description() string
- func (c *CreateSandbox) Documentation() string
- func (c *CreateSandbox) ExampleOutput() map[string]any
- func (c *CreateSandbox) Execute(ctx core.ExecutionContext) error
- func (c *CreateSandbox) HandleHook(ctx core.ActionHookContext) error
- func (c *CreateSandbox) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (c *CreateSandbox) Hooks() []core.Hook
- func (c *CreateSandbox) Icon() string
- func (c *CreateSandbox) Label() string
- func (c *CreateSandbox) Name() string
- func (c *CreateSandbox) OutputChannels(configuration any) []core.OutputChannel
- func (c *CreateSandbox) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *CreateSandbox) Setup(ctx core.SetupContext) error
- type CreateSandboxMetadata
- type CreateSandboxRequest
- type CreateSandboxSpec
- type Daytona
- func (d *Daytona) Actions() []core.Action
- func (d *Daytona) Cleanup(ctx core.IntegrationCleanupContext) error
- func (d *Daytona) Configuration() []configuration.Field
- func (d *Daytona) Description() string
- func (d *Daytona) HandleHook(ctx core.IntegrationHookContext) error
- func (d *Daytona) HandleRequest(ctx core.HTTPRequestContext)
- func (d *Daytona) Hooks() []core.Hook
- func (d *Daytona) Icon() string
- func (d *Daytona) Instructions() string
- func (d *Daytona) Label() string
- func (d *Daytona) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
- func (d *Daytona) Name() string
- func (d *Daytona) Sync(ctx core.SyncContext) error
- func (d *Daytona) Triggers() []core.Trigger
- type DeleteSandbox
- func (d *DeleteSandbox) Cancel(ctx core.ExecutionContext) error
- func (d *DeleteSandbox) Cleanup(ctx core.SetupContext) error
- func (d *DeleteSandbox) Color() string
- func (d *DeleteSandbox) Configuration() []configuration.Field
- func (d *DeleteSandbox) Description() string
- func (d *DeleteSandbox) Documentation() string
- func (d *DeleteSandbox) ExampleOutput() map[string]any
- func (d *DeleteSandbox) Execute(ctx core.ExecutionContext) error
- func (d *DeleteSandbox) HandleHook(ctx core.ActionHookContext) error
- func (d *DeleteSandbox) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (d *DeleteSandbox) Hooks() []core.Hook
- func (d *DeleteSandbox) Icon() string
- func (d *DeleteSandbox) Label() string
- func (d *DeleteSandbox) Name() string
- func (d *DeleteSandbox) OutputChannels(configuration any) []core.OutputChannel
- func (d *DeleteSandbox) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (d *DeleteSandbox) Setup(ctx core.SetupContext) error
- type DeleteSandboxPayload
- type DeleteSandboxSpec
- type EnvVariable
- type ExecuteCode
- func (e *ExecuteCode) Cancel(ctx core.ExecutionContext) error
- func (e *ExecuteCode) Cleanup(ctx core.SetupContext) error
- func (e *ExecuteCode) Color() string
- func (e *ExecuteCode) Configuration() []configuration.Field
- func (e *ExecuteCode) Description() string
- func (e *ExecuteCode) Documentation() string
- func (e *ExecuteCode) ExampleOutput() map[string]any
- func (e *ExecuteCode) Execute(ctx core.ExecutionContext) error
- func (e *ExecuteCode) HandleHook(ctx core.ActionHookContext) error
- func (e *ExecuteCode) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (e *ExecuteCode) Hooks() []core.Hook
- func (e *ExecuteCode) Icon() string
- func (e *ExecuteCode) Label() string
- func (e *ExecuteCode) Name() string
- func (e *ExecuteCode) OutputChannels(configuration any) []core.OutputChannel
- func (e *ExecuteCode) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (e *ExecuteCode) Setup(ctx core.SetupContext) error
- type ExecuteCodeMetadata
- type ExecuteCodeRequest
- type ExecuteCodeResponse
- type ExecuteCodeSpec
- type ExecuteCommand
- func (e *ExecuteCommand) Cancel(ctx core.ExecutionContext) error
- func (e *ExecuteCommand) Cleanup(ctx core.SetupContext) error
- func (e *ExecuteCommand) Color() string
- func (e *ExecuteCommand) Configuration() []configuration.Field
- func (e *ExecuteCommand) Description() string
- func (e *ExecuteCommand) Documentation() string
- func (e *ExecuteCommand) ExampleOutput() map[string]any
- func (e *ExecuteCommand) Execute(ctx core.ExecutionContext) error
- func (e *ExecuteCommand) HandleHook(ctx core.ActionHookContext) error
- func (e *ExecuteCommand) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (e *ExecuteCommand) Hooks() []core.Hook
- func (e *ExecuteCommand) Icon() string
- func (e *ExecuteCommand) Label() string
- func (e *ExecuteCommand) Name() string
- func (e *ExecuteCommand) OutputChannels(configuration any) []core.OutputChannel
- func (e *ExecuteCommand) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (e *ExecuteCommand) Setup(ctx core.SetupContext) error
- type ExecuteCommandMetadata
- type ExecuteCommandRequest
- type ExecuteCommandResponse
- type ExecuteCommandSpec
- type GetPreviewURLComponent
- func (p *GetPreviewURLComponent) Cancel(ctx core.ExecutionContext) error
- func (p *GetPreviewURLComponent) Cleanup(ctx core.SetupContext) error
- func (p *GetPreviewURLComponent) Color() string
- func (p *GetPreviewURLComponent) Configuration() []configuration.Field
- func (p *GetPreviewURLComponent) Description() string
- func (p *GetPreviewURLComponent) Documentation() string
- func (p *GetPreviewURLComponent) ExampleOutput() map[string]any
- func (p *GetPreviewURLComponent) Execute(ctx core.ExecutionContext) error
- func (p *GetPreviewURLComponent) HandleHook(ctx core.ActionHookContext) error
- func (p *GetPreviewURLComponent) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (p *GetPreviewURLComponent) Hooks() []core.Hook
- func (p *GetPreviewURLComponent) Icon() string
- func (p *GetPreviewURLComponent) Label() string
- func (p *GetPreviewURLComponent) Name() string
- func (p *GetPreviewURLComponent) OutputChannels(configuration any) []core.OutputChannel
- func (p *GetPreviewURLComponent) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (p *GetPreviewURLComponent) Setup(ctx core.SetupContext) error
- type Metadata
- type PaginatedSandboxes
- type PaginatedSnapshots
- type PreviewURL
- type PreviewURLPayload
- type PreviewURLSpec
- type Sandbox
- type SandboxSecret
- type Session
- type SessionCommand
- type SessionExecuteRequest
- type SessionExecuteResponse
- type SignedPreviewURL
- type Snapshot
Constants ¶
const ( SandboxHomeDir = "/home/daytona" SandboxBaseDir = "/home/daytona/.superplane" )
const ( CreateRepositorySandboxPayloadType = "daytona.repository.sandbox" CreateRepositorySandboxPollInterval = 5 * time.Second CreateRepositorySandboxDefaultTimeout = 5 * time.Minute SandboxBootstrapFromInline = "inline" SandboxBootstrapFromFile = "file" )
const ( SandboxPayloadType = "daytona.sandbox" CreateSandboxPollInterval = 5 * time.Second CreateSandboxTimeout = 5 * time.Minute )
const ( ExecuteCodePayloadType = "daytona.execute.response" ExecuteCodePollInterval = 5 * time.Second ExecuteCodeOutputChannelSuccess = "success" ExecuteCodeOutputChannelFailed = "failed" )
const ( ExecuteCommandPayloadType = "daytona.command.response" ExecuteCommandPollInterval = 5 * time.Second ExecuteCommandOutputChannelSuccess = "success" ExecuteCommandOutputChannelFailed = "failed" )
const ( SandboxSecretTypeFile = "file" SandboxSecretTypeEnvVar = "env-var" )
const DeleteSandboxPayloadType = "daytona.delete.response"
const (
PreviewURLPayloadType = "daytona.preview.response"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIConfig ¶
type APIConfig struct {
ProxyToolboxURL string `json:"proxyToolboxUrl"`
}
APIConfig represents the relevant fields from the /api/config endpoint
type BootstrapMetadata ¶ added in v0.10.0
type BootstrapMetadata struct {
CmdID string `json:"cmdId" mapstructure:"cmdId"`
StartedAt string `json:"startedAt" mapstructure:"startedAt"`
FinishedAt string `json:"finishedAt" mapstructure:"finishedAt"`
ExitCode int `json:"exitCode" mapstructure:"exitCode"`
Result string `json:"result" mapstructure:"result"`
From string `json:"from" mapstructure:"from"`
Script *string `json:"script,omitempty" mapstructure:"script,omitempty"`
Path *string `json:"path,omitempty" mapstructure:"path,omitempty"`
URL *string `json:"url,omitempty" mapstructure:"url,omitempty"`
}
type Client ¶
func NewClient ¶
func NewClient(httpClient core.HTTPContext, ctx core.IntegrationContext) (*Client, error)
func (*Client) CloneRepository ¶ added in v0.10.0
func (c *Client) CloneRepository(sandboxID string, req *CloneRepositoryRequest) error
CloneRepository clones a repository into the sandbox using the toolbox Git API.
func (*Client) CreateFolder ¶ added in v0.10.0
CreateFolder creates a folder in the sandbox filesystem.
func (*Client) CreateSandbox ¶
func (c *Client) CreateSandbox(req *CreateSandboxRequest) (*Sandbox, error)
CreateSandbox creates a new sandbox environment
func (*Client) CreateSession ¶ added in v0.9.0
CreateSession creates a new session on the sandbox toolbox
func (*Client) DeleteSandbox ¶
DeleteSandbox deletes a sandbox
func (*Client) ExecuteCode ¶
func (c *Client) ExecuteCode(sandboxID string, req *ExecuteCodeRequest) (*ExecuteCodeResponse, error)
ExecuteCode executes code in a sandbox (uses the execute command endpoint)
func (*Client) ExecuteCommand ¶
func (c *Client) ExecuteCommand(sandboxID string, req *ExecuteCommandRequest) (*ExecuteCommandResponse, error)
ExecuteCommand executes a shell command in a sandbox
func (*Client) ExecuteSessionCommand ¶ added in v0.9.0
func (c *Client) ExecuteSessionCommand(sandboxID, sessionID, command string) (*SessionExecuteResponse, error)
ExecuteSessionCommand executes a command asynchronously in a session
func (*Client) FetchConfig ¶
FetchConfig fetches the API configuration from the /api/config endpoint
func (*Client) GetPreviewURL ¶ added in v0.10.0
func (c *Client) GetPreviewURL(sandboxID string, port int) (*PreviewURL, error)
func (*Client) GetSandbox ¶ added in v0.9.0
GetSandbox retrieves the current state of a sandbox
func (*Client) GetSession ¶ added in v0.9.0
GetSession retrieves the session state including command statuses
func (*Client) GetSessionCommandLogs ¶ added in v0.9.0
GetSessionCommandLogs retrieves the logs for a specific command in a session
func (*Client) GetSignedPreviewURL ¶ added in v0.10.0
func (*Client) ListSandboxes ¶ added in v0.10.0
ListSandboxes lists available sandboxes
func (*Client) ListSnapshots ¶
ListSnapshots lists available snapshots
func (*Client) UploadFile ¶ added in v0.10.0
UploadFile uploads a file to the sandbox filesystem.
type CloneMetadata ¶ added in v0.10.0
type CloneRepositoryRequest ¶ added in v0.10.0
type CloneRepositoryRequest struct {
URL string `json:"url"`
Path string `json:"path"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
}
CloneRepositoryRequest is the request body for cloning a repository with the toolbox Git API.
type Configuration ¶
type CreateRepositorySandbox ¶ added in v0.10.0
type CreateRepositorySandbox struct{}
func (*CreateRepositorySandbox) Cancel ¶ added in v0.10.0
func (c *CreateRepositorySandbox) Cancel(ctx core.ExecutionContext) error
func (*CreateRepositorySandbox) Cleanup ¶ added in v0.10.0
func (c *CreateRepositorySandbox) Cleanup(ctx core.SetupContext) error
func (*CreateRepositorySandbox) Color ¶ added in v0.10.0
func (c *CreateRepositorySandbox) Color() string
func (*CreateRepositorySandbox) Configuration ¶ added in v0.10.0
func (c *CreateRepositorySandbox) Configuration() []configuration.Field
func (*CreateRepositorySandbox) Description ¶ added in v0.10.0
func (c *CreateRepositorySandbox) Description() string
func (*CreateRepositorySandbox) Documentation ¶ added in v0.10.0
func (c *CreateRepositorySandbox) Documentation() string
func (*CreateRepositorySandbox) ExampleOutput ¶ added in v0.10.0
func (c *CreateRepositorySandbox) ExampleOutput() map[string]any
func (*CreateRepositorySandbox) Execute ¶ added in v0.10.0
func (c *CreateRepositorySandbox) Execute(ctx core.ExecutionContext) error
func (*CreateRepositorySandbox) HandleHook ¶ added in v0.18.0
func (c *CreateRepositorySandbox) HandleHook(ctx core.ActionHookContext) error
func (*CreateRepositorySandbox) HandleWebhook ¶ added in v0.10.0
func (c *CreateRepositorySandbox) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
func (*CreateRepositorySandbox) Hooks ¶ added in v0.18.0
func (c *CreateRepositorySandbox) Hooks() []core.Hook
func (*CreateRepositorySandbox) Icon ¶ added in v0.10.0
func (c *CreateRepositorySandbox) Icon() string
func (*CreateRepositorySandbox) Label ¶ added in v0.10.0
func (c *CreateRepositorySandbox) Label() string
func (*CreateRepositorySandbox) Name ¶ added in v0.10.0
func (c *CreateRepositorySandbox) Name() string
func (*CreateRepositorySandbox) OutputChannels ¶ added in v0.10.0
func (c *CreateRepositorySandbox) OutputChannels(configuration any) []core.OutputChannel
func (*CreateRepositorySandbox) ProcessQueueItem ¶ added in v0.10.0
func (c *CreateRepositorySandbox) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*CreateRepositorySandbox) Setup ¶ added in v0.10.0
func (c *CreateRepositorySandbox) Setup(ctx core.SetupContext) error
type CreateRepositorySandboxBootstrapSpec ¶ added in v0.10.0
type CreateRepositorySandboxMetadata ¶ added in v0.10.0
type CreateRepositorySandboxMetadata struct {
Stage string `json:"stage" mapstructure:"stage"`
SandboxID string `json:"sandboxId" mapstructure:"sandboxId"`
SandboxStartedAt string `json:"sandboxStartedAt" mapstructure:"sandboxStartedAt"`
SessionID string `json:"sessionId" mapstructure:"sessionId"`
Timeout int `json:"timeout" mapstructure:"timeout"`
Repository string `json:"repository" mapstructure:"repository"`
Directory string `json:"directory" mapstructure:"directory"`
Secrets []SandboxSecret `json:"secrets,omitempty" mapstructure:"secrets,omitempty"`
Clone *CloneMetadata `json:"clone,omitempty" mapstructure:"clone,omitempty"`
Bootstrap *BootstrapMetadata `json:"bootstrap,omitempty" mapstructure:"bootstrap,omitempty"`
}
type CreateRepositorySandboxSpec ¶ added in v0.10.0
type CreateRepositorySandboxSpec struct {
Snapshot string `json:"snapshot,omitempty"`
Target string `json:"target,omitempty"`
AutoStopInterval int `json:"autoStopInterval,omitempty"`
Env []EnvVariable `json:"env,omitempty"`
Secrets []SandboxSecret `json:"secrets,omitempty"`
Repository string `json:"repository"`
Bootstrap *CreateRepositorySandboxBootstrapSpec `json:"bootstrap"`
}
type CreateSandbox ¶
type CreateSandbox struct{}
func (*CreateSandbox) Cancel ¶
func (c *CreateSandbox) Cancel(ctx core.ExecutionContext) error
func (*CreateSandbox) Cleanup ¶ added in v0.7.0
func (c *CreateSandbox) Cleanup(ctx core.SetupContext) error
func (*CreateSandbox) Color ¶
func (c *CreateSandbox) Color() string
func (*CreateSandbox) Configuration ¶
func (c *CreateSandbox) Configuration() []configuration.Field
func (*CreateSandbox) Description ¶
func (c *CreateSandbox) Description() string
func (*CreateSandbox) Documentation ¶
func (c *CreateSandbox) Documentation() string
func (*CreateSandbox) ExampleOutput ¶
func (c *CreateSandbox) ExampleOutput() map[string]any
func (*CreateSandbox) Execute ¶
func (c *CreateSandbox) Execute(ctx core.ExecutionContext) error
func (*CreateSandbox) HandleHook ¶ added in v0.18.0
func (c *CreateSandbox) HandleHook(ctx core.ActionHookContext) error
func (*CreateSandbox) HandleWebhook ¶
func (c *CreateSandbox) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
func (*CreateSandbox) Hooks ¶ added in v0.18.0
func (c *CreateSandbox) Hooks() []core.Hook
func (*CreateSandbox) Icon ¶
func (c *CreateSandbox) Icon() string
func (*CreateSandbox) Label ¶
func (c *CreateSandbox) Label() string
func (*CreateSandbox) Name ¶
func (c *CreateSandbox) Name() string
func (*CreateSandbox) OutputChannels ¶
func (c *CreateSandbox) OutputChannels(configuration any) []core.OutputChannel
func (*CreateSandbox) ProcessQueueItem ¶
func (c *CreateSandbox) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*CreateSandbox) Setup ¶
func (c *CreateSandbox) Setup(ctx core.SetupContext) error
type CreateSandboxMetadata ¶ added in v0.9.0
type CreateSandboxMetadata struct {
SandboxID string `json:"sandboxId" mapstructure:"sandboxId"`
StartedAt int64 `json:"startedAt" mapstructure:"startedAt"`
Secrets []SandboxSecret `json:"secrets,omitempty" mapstructure:"secrets,omitempty"`
}
type CreateSandboxRequest ¶
type CreateSandboxRequest struct {
Snapshot string `json:"snapshot,omitempty"`
Target string `json:"target,omitempty"`
Env map[string]string `json:"env,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
AutoStopInterval int `json:"autoStopInterval,omitempty"`
}
CreateSandboxRequest represents the request to create a sandbox
type CreateSandboxSpec ¶
type CreateSandboxSpec struct {
Snapshot string `json:"snapshot,omitempty"`
Target string `json:"target,omitempty"`
AutoStopInterval int `json:"autoStopInterval,omitempty"`
Env []EnvVariable `json:"env,omitempty"`
Secrets []SandboxSecret `json:"secrets,omitempty"`
}
type Daytona ¶
type Daytona struct{}
func (*Daytona) Configuration ¶
func (d *Daytona) Configuration() []configuration.Field
func (*Daytona) Description ¶
func (*Daytona) HandleHook ¶ added in v0.18.0
func (d *Daytona) HandleHook(ctx core.IntegrationHookContext) error
func (*Daytona) HandleRequest ¶
func (d *Daytona) HandleRequest(ctx core.HTTPRequestContext)
func (*Daytona) Instructions ¶
func (*Daytona) ListResources ¶
func (d *Daytona) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
type DeleteSandbox ¶
type DeleteSandbox struct{}
func (*DeleteSandbox) Cancel ¶
func (d *DeleteSandbox) Cancel(ctx core.ExecutionContext) error
func (*DeleteSandbox) Cleanup ¶ added in v0.7.0
func (d *DeleteSandbox) Cleanup(ctx core.SetupContext) error
func (*DeleteSandbox) Color ¶
func (d *DeleteSandbox) Color() string
func (*DeleteSandbox) Configuration ¶
func (d *DeleteSandbox) Configuration() []configuration.Field
func (*DeleteSandbox) Description ¶
func (d *DeleteSandbox) Description() string
func (*DeleteSandbox) Documentation ¶
func (d *DeleteSandbox) Documentation() string
func (*DeleteSandbox) ExampleOutput ¶
func (d *DeleteSandbox) ExampleOutput() map[string]any
func (*DeleteSandbox) Execute ¶
func (d *DeleteSandbox) Execute(ctx core.ExecutionContext) error
func (*DeleteSandbox) HandleHook ¶ added in v0.18.0
func (d *DeleteSandbox) HandleHook(ctx core.ActionHookContext) error
func (*DeleteSandbox) HandleWebhook ¶
func (d *DeleteSandbox) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
func (*DeleteSandbox) Hooks ¶ added in v0.18.0
func (d *DeleteSandbox) Hooks() []core.Hook
func (*DeleteSandbox) Icon ¶
func (d *DeleteSandbox) Icon() string
func (*DeleteSandbox) Label ¶
func (d *DeleteSandbox) Label() string
func (*DeleteSandbox) Name ¶
func (d *DeleteSandbox) Name() string
func (*DeleteSandbox) OutputChannels ¶
func (d *DeleteSandbox) OutputChannels(configuration any) []core.OutputChannel
func (*DeleteSandbox) ProcessQueueItem ¶
func (d *DeleteSandbox) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*DeleteSandbox) Setup ¶
func (d *DeleteSandbox) Setup(ctx core.SetupContext) error
type DeleteSandboxPayload ¶
type DeleteSandboxSpec ¶
type EnvVariable ¶
type ExecuteCode ¶
type ExecuteCode struct{}
func (*ExecuteCode) Cancel ¶
func (e *ExecuteCode) Cancel(ctx core.ExecutionContext) error
func (*ExecuteCode) Cleanup ¶ added in v0.7.0
func (e *ExecuteCode) Cleanup(ctx core.SetupContext) error
func (*ExecuteCode) Color ¶
func (e *ExecuteCode) Color() string
func (*ExecuteCode) Configuration ¶
func (e *ExecuteCode) Configuration() []configuration.Field
func (*ExecuteCode) Description ¶
func (e *ExecuteCode) Description() string
func (*ExecuteCode) Documentation ¶
func (e *ExecuteCode) Documentation() string
func (*ExecuteCode) ExampleOutput ¶
func (e *ExecuteCode) ExampleOutput() map[string]any
func (*ExecuteCode) Execute ¶
func (e *ExecuteCode) Execute(ctx core.ExecutionContext) error
func (*ExecuteCode) HandleHook ¶ added in v0.18.0
func (e *ExecuteCode) HandleHook(ctx core.ActionHookContext) error
func (*ExecuteCode) HandleWebhook ¶
func (e *ExecuteCode) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
func (*ExecuteCode) Hooks ¶ added in v0.18.0
func (e *ExecuteCode) Hooks() []core.Hook
func (*ExecuteCode) Icon ¶
func (e *ExecuteCode) Icon() string
func (*ExecuteCode) Label ¶
func (e *ExecuteCode) Label() string
func (*ExecuteCode) Name ¶
func (e *ExecuteCode) Name() string
func (*ExecuteCode) OutputChannels ¶
func (e *ExecuteCode) OutputChannels(configuration any) []core.OutputChannel
func (*ExecuteCode) ProcessQueueItem ¶
func (e *ExecuteCode) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*ExecuteCode) Setup ¶
func (e *ExecuteCode) Setup(ctx core.SetupContext) error
type ExecuteCodeMetadata ¶ added in v0.9.0
type ExecuteCodeMetadata struct {
SandboxID string `json:"sandboxId" mapstructure:"sandboxId"`
SessionID string `json:"sessionId" mapstructure:"sessionId"`
CmdID string `json:"cmdId" mapstructure:"cmdId"`
StartedAt int64 `json:"startedAt" mapstructure:"startedAt"`
Timeout int `json:"timeout" mapstructure:"timeout"`
}
type ExecuteCodeRequest ¶
type ExecuteCodeRequest struct {
Code string `json:"code"`
Language string `json:"language"`
Timeout int `json:"timeout,omitempty"`
}
ExecuteCodeRequest represents the request to execute code in a sandbox
type ExecuteCodeResponse ¶
ExecuteCodeResponse represents the response from code execution
type ExecuteCodeSpec ¶
type ExecuteCommand ¶
type ExecuteCommand struct{}
func (*ExecuteCommand) Cancel ¶
func (e *ExecuteCommand) Cancel(ctx core.ExecutionContext) error
func (*ExecuteCommand) Cleanup ¶ added in v0.7.0
func (e *ExecuteCommand) Cleanup(ctx core.SetupContext) error
func (*ExecuteCommand) Color ¶
func (e *ExecuteCommand) Color() string
func (*ExecuteCommand) Configuration ¶
func (e *ExecuteCommand) Configuration() []configuration.Field
func (*ExecuteCommand) Description ¶
func (e *ExecuteCommand) Description() string
func (*ExecuteCommand) Documentation ¶
func (e *ExecuteCommand) Documentation() string
func (*ExecuteCommand) ExampleOutput ¶
func (e *ExecuteCommand) ExampleOutput() map[string]any
func (*ExecuteCommand) Execute ¶
func (e *ExecuteCommand) Execute(ctx core.ExecutionContext) error
func (*ExecuteCommand) HandleHook ¶ added in v0.18.0
func (e *ExecuteCommand) HandleHook(ctx core.ActionHookContext) error
func (*ExecuteCommand) HandleWebhook ¶
func (e *ExecuteCommand) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
func (*ExecuteCommand) Hooks ¶ added in v0.18.0
func (e *ExecuteCommand) Hooks() []core.Hook
func (*ExecuteCommand) Icon ¶
func (e *ExecuteCommand) Icon() string
func (*ExecuteCommand) Label ¶
func (e *ExecuteCommand) Label() string
func (*ExecuteCommand) Name ¶
func (e *ExecuteCommand) Name() string
func (*ExecuteCommand) OutputChannels ¶
func (e *ExecuteCommand) OutputChannels(configuration any) []core.OutputChannel
func (*ExecuteCommand) ProcessQueueItem ¶
func (e *ExecuteCommand) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*ExecuteCommand) Setup ¶
func (e *ExecuteCommand) Setup(ctx core.SetupContext) error
type ExecuteCommandMetadata ¶ added in v0.9.0
type ExecuteCommandMetadata struct {
SandboxID string `json:"sandboxId" mapstructure:"sandboxId"`
SessionID string `json:"sessionId" mapstructure:"sessionId"`
CmdID string `json:"cmdId" mapstructure:"cmdId"`
StartedAt int64 `json:"startedAt" mapstructure:"startedAt"`
Timeout int `json:"timeout" mapstructure:"timeout"`
}
type ExecuteCommandRequest ¶
type ExecuteCommandRequest struct {
Command string `json:"command"`
Cwd string `json:"cwd,omitempty"`
Timeout int `json:"timeout,omitempty"`
}
ExecuteCommandRequest represents the request to execute a command in a sandbox
type ExecuteCommandResponse ¶
type ExecuteCommandResponse struct {
ExitCode int `json:"exitCode"`
Timeout bool `json:"timeout"`
Result string `json:"result"`
}
ExecuteCommandResponse represents the response from command execution
func (*ExecuteCommandResponse) ShortResult ¶ added in v0.10.0
func (e *ExecuteCommandResponse) ShortResult() string
type ExecuteCommandSpec ¶
type ExecuteCommandSpec struct {
Sandbox string `json:"sandbox"`
Command string `json:"command"`
Cwd string `json:"cwd,omitempty"`
Env []EnvVariable `json:"env,omitempty"`
Timeout int `json:"timeout,omitempty"`
}
type GetPreviewURLComponent ¶ added in v0.10.0
type GetPreviewURLComponent struct{}
func (*GetPreviewURLComponent) Cancel ¶ added in v0.10.0
func (p *GetPreviewURLComponent) Cancel(ctx core.ExecutionContext) error
func (*GetPreviewURLComponent) Cleanup ¶ added in v0.10.0
func (p *GetPreviewURLComponent) Cleanup(ctx core.SetupContext) error
func (*GetPreviewURLComponent) Color ¶ added in v0.10.0
func (p *GetPreviewURLComponent) Color() string
func (*GetPreviewURLComponent) Configuration ¶ added in v0.10.0
func (p *GetPreviewURLComponent) Configuration() []configuration.Field
func (*GetPreviewURLComponent) Description ¶ added in v0.10.0
func (p *GetPreviewURLComponent) Description() string
func (*GetPreviewURLComponent) Documentation ¶ added in v0.10.0
func (p *GetPreviewURLComponent) Documentation() string
func (*GetPreviewURLComponent) ExampleOutput ¶ added in v0.10.0
func (p *GetPreviewURLComponent) ExampleOutput() map[string]any
func (*GetPreviewURLComponent) Execute ¶ added in v0.10.0
func (p *GetPreviewURLComponent) Execute(ctx core.ExecutionContext) error
func (*GetPreviewURLComponent) HandleHook ¶ added in v0.18.0
func (p *GetPreviewURLComponent) HandleHook(ctx core.ActionHookContext) error
func (*GetPreviewURLComponent) HandleWebhook ¶ added in v0.10.0
func (p *GetPreviewURLComponent) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
func (*GetPreviewURLComponent) Hooks ¶ added in v0.18.0
func (p *GetPreviewURLComponent) Hooks() []core.Hook
func (*GetPreviewURLComponent) Icon ¶ added in v0.10.0
func (p *GetPreviewURLComponent) Icon() string
func (*GetPreviewURLComponent) Label ¶ added in v0.10.0
func (p *GetPreviewURLComponent) Label() string
func (*GetPreviewURLComponent) Name ¶ added in v0.10.0
func (p *GetPreviewURLComponent) Name() string
func (*GetPreviewURLComponent) OutputChannels ¶ added in v0.10.0
func (p *GetPreviewURLComponent) OutputChannels(configuration any) []core.OutputChannel
func (*GetPreviewURLComponent) ProcessQueueItem ¶ added in v0.10.0
func (p *GetPreviewURLComponent) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*GetPreviewURLComponent) Setup ¶ added in v0.10.0
func (p *GetPreviewURLComponent) Setup(ctx core.SetupContext) error
type PaginatedSandboxes ¶ added in v0.10.0
type PaginatedSandboxes struct {
Items []Sandbox `json:"items"`
}
type PaginatedSnapshots ¶
type PaginatedSnapshots struct {
Items []Snapshot `json:"items"`
}
PaginatedSnapshots represents a paginated list of snapshots
type PreviewURL ¶ added in v0.10.0
type PreviewURLPayload ¶ added in v0.10.0
type PreviewURLSpec ¶ added in v0.10.0
type SandboxSecret ¶ added in v0.10.0
type SandboxSecret struct {
Type string `json:"type" mapstructure:"type"`
Path string `json:"path,omitempty" mapstructure:"path"`
Name string `json:"name,omitempty" mapstructure:"name"`
Value configuration.SecretKeyRef `json:"value" mapstructure:"value"`
}
type Session ¶ added in v0.9.0
type Session struct {
SessionID string `json:"sessionId"`
Commands []SessionCommand `json:"commands"`
}
Session represents a Daytona session with its commands
func (*Session) FindCommand ¶ added in v0.9.0
func (s *Session) FindCommand(cmdID string) *SessionCommand
FindCommand returns the command with the given ID, or nil if not found
type SessionCommand ¶ added in v0.9.0
SessionCommand represents a command within a session
type SessionExecuteRequest ¶ added in v0.9.0
type SessionExecuteRequest struct {
Command string `json:"command"`
RunAsync bool `json:"runAsync"`
}
SessionExecuteRequest is the request body for executing a command in a session
type SessionExecuteResponse ¶ added in v0.9.0
type SessionExecuteResponse struct {
CmdID string `json:"cmdId"`
}
SessionExecuteResponse is the response from executing a command in a session