Versions in this module Expand all Collapse all v0 v0.1.3 Sep 7, 2026 v0.1.2 Jul 27, 2026 v0.1.0 Jul 27, 2026 Changes in this version + type ActionError struct + Code string + Method string + func (e *ActionError) Error() string + func (e *ActionError) Unwrap() error + type AuthError struct + func (e *AuthError) Unwrap() error + type Chart struct + Elements []interface{} + Title string + Type ChartType + X *ChartAxis + XLabel string + Y *ChartAxis + YLabel string + type ChartAxis struct + Label string + Scale string + Ticks []interface{} + type ChartType string + const ChartBar + const ChartBoxAndWhisker + const ChartComposite + const ChartLine + const ChartPie + const ChartScatter + const ChartUnknown + type Client struct + func NewClient(opts ClientOptions) (*Client, error) + func (c *Client) Connect(ctx context.Context, sandboxID string) (*Sandbox, error) + func (c *Client) Create(ctx context.Context, opts CreateOptions) (*Sandbox, error) + func (c *Client) Get(ctx context.Context, sandboxID string) (*SandboxView, error) + func (c *Client) Kill(ctx context.Context, sandboxID string) error + func (c *Client) Pause(ctx context.Context, sandboxID string) error + func (c *Client) Resume(ctx context.Context, sandboxID string) (string, error) + type ClientOptions struct + APIKey string + BaseURL string + CallTimeoutMs int + HTTPClient *http.Client + MaxRetries int + RetryDelayMs *int + type Code struct + func (c *Code) CreateContext(ctx context.Context, language string) (string, error) + func (c *Code) Run(ctx context.Context, code string, opts RunCodeOptions) (*RunCodeResult, error) + type CodeError struct + Message string + Name string + Traceback string + type CodeResultItem struct + Chart *Chart + HTML string + JPEG string + JSON interface{} + LaTeX string + Markdown string + PNG string + SVG string + Text string + Type string + type CommandHandle struct + CmdID string + func (h *CommandHandle) Kill(ctx context.Context, signal int) error + func (h *CommandHandle) OnData(cb func(stream, data string)) + func (h *CommandHandle) Stdin(ctx context.Context, data []byte) error + func (h *CommandHandle) Wait(ctx context.Context) (int, error) + type CommandOptions struct + Args []string + Background bool + Cwd string + Env map[string]string + OnStderr func(string) + OnStdout func(string) + TimeoutMs int + User string + type CommandResult struct + ExitCode int + Stderr string + Stdout string + type Commands struct + func (c *Commands) Run(ctx context.Context, cmd string, opts CommandOptions) (*CommandResult, error) + func (c *Commands) Start(ctx context.Context, cmd string, opts CommandOptions) (*CommandHandle, error) + type ConcurrencyLimitError struct + func (e *ConcurrencyLimitError) Unwrap() error + type ConnectionError struct + func (e *ConnectionError) Error() string + func (e *ConnectionError) Unwrap() error + type CreateOptions struct + CPU int + DiskGb int + Envs map[string]string + FromSnapshot string + Kind SandboxKind + Lifecycle *SandboxLifecycle + MemMb int + Metadata map[string]string + Record *bool + Resolution string + Template string + TimeoutMs int + Volumes []VolumeAttachment + type CreateSandboxResponse struct + ControlURL string + ExpiresAt string + Kind SandboxKind + SandboxID string + StreamURL string + type Files struct + func (f *Files) List(ctx context.Context, path string) ([]FsEntry, error) + func (f *Files) Mkdir(ctx context.Context, path string) error + func (f *Files) Read(ctx context.Context, path string) ([]byte, error) + func (f *Files) ReadText(ctx context.Context, path string) (string, error) + func (f *Files) Remove(ctx context.Context, path string, recursive bool) error + func (f *Files) Rename(ctx context.Context, from, to string) error + func (f *Files) Stat(ctx context.Context, path string) (*FsStat, error) + func (f *Files) Write(ctx context.Context, path string, data []byte, mode int) error + type FsEntry struct + Dir bool + Name string + Size int64 + type FsStat struct + Dir bool + ModTimeMs int64 + Mode int + Name string + Size int64 + type GatewayError struct + Body *GatewayErrorBody + Code string + Status int + func (e *GatewayError) Error() string + func (e *GatewayError) Unwrap() error + type GatewayErrorBody struct + Code string + Error string + Message string + Retryable bool + type Git struct + func (g *Git) Add(ctx context.Context, paths []string, cwd string) error + func (g *Git) Branches(ctx context.Context, cwd string) ([]GitBranch, error) + func (g *Git) Checkout(ctx context.Context, ref string, cwd string, create bool) error + func (g *Git) Clone(ctx context.Context, rawURL string, opts GitCloneOptions) error + func (g *Git) Commit(ctx context.Context, message string, opts GitCommitOptions) (string, error) + func (g *Git) Log(ctx context.Context, opts GitLogOptions) ([]GitCommit, error) + func (g *Git) Pull(ctx context.Context, opts GitRemoteOptions) error + func (g *Git) Push(ctx context.Context, opts GitRemoteOptions) error + func (g *Git) Status(ctx context.Context, cwd string) (*GitStatus, error) + type GitBranch struct + Commit string + Current bool + Name string + type GitCloneOptions struct + Branch string + Cwd string + Depth int + Password string + Path string + Username string + type GitCommit struct + Author string + Date string + Email string + Hash string + Message string + type GitCommitOptions struct + All bool + Author string + Cwd string + Email string + type GitLogOptions struct + Cwd string + MaxCount int + type GitRemoteOptions struct + Branch string + Cwd string + Password string + Remote string + Username string + type GitStatus struct + Ahead int + Behind int + Branch string + Clean bool + Detached bool + Modified []string + Staged []string + Untracked []string + type NoCapacityError struct + func (e *NoCapacityError) Unwrap() error + type PlanError struct + func (e *PlanError) Unwrap() error + type RunCodeOptions struct + ContextID string + Language string + OnStderr func(string) + OnStdout func(string) + type RunCodeResult struct + Charts []Chart + Error interface{} + Results []CodeResultItem + type Sandbox struct + Code *Code + Commands *Commands + ControlURL string + ExpiresAt string + Files *Files + Git *Git + ID string + Kind SandboxKind + StreamURL string + func (s *Sandbox) Close() + func (s *Sandbox) Connect(ctx context.Context) error + func (s *Sandbox) Connected() bool + func (s *Sandbox) Kill(ctx context.Context) error + func (s *Sandbox) Pause(ctx context.Context) error + func (s *Sandbox) Reconnect(ctx context.Context) error + func (s *Sandbox) Resume(ctx context.Context) error + type SandboxKind string + const KindDesktop + const KindSandbox + type SandboxLifecycle struct + AutoResume *bool + OnTimeout string + type SandboxView struct + CPU int + ControlURL string + ExpiresAt string + Kind SandboxKind + MemMb int + Metadata map[string]string + SandboxID string + State string + type SolariError struct + Message string + func (e *SolariError) Error() string + type TimeoutError struct + Method string + TimeoutMs int + func (e *TimeoutError) Error() string + func (e *TimeoutError) Unwrap() error + type VolumeAttachment struct + Path string + VolumeID string