sandbox_daemon

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSandboxDaemon

func NewSandboxDaemon()

Types

type ExecRequest

type ExecRequest struct {
	Command        string            `json:"command,omitempty"`         // for bash
	Args           []string          `json:"args,omitempty"`            // for bash
	Script         string            `json:"script,omitempty"`          // for python
	TimeoutSeconds int               `json:"timeout_seconds,omitempty"` // defaults to 60
	Workdir        string            `json:"workdir,omitempty"`
	Env            map[string]string `json:"env,omitempty"`
}

type ExecResponse

type ExecResponse struct {
	Stdout        string `json:"stdout"`
	Stderr        string `json:"stderr"`
	ExitCode      int    `json:"exit_code"`
	DurationMilli int64  `json:"duration_ms"`
}

Jump to

Keyboard shortcuts

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