Documentation
¶
Index ¶
- Constants
- func BuildProcessEnv(env map[string]string) []string
- func BuildProcessEnvMap(env map[string]string) map[string]string
- func ContainsOpVisibleSentinel(value interface{}) bool
- func ExecuteProcess(ctx context.Context, req RunRequest) ([]byte, []byte, error)
- func SandboxType(sandbox *SandboxInput) string
- func TransformOperationPaths(_ context.Context, rawSandbox interface{}, host ops.OperationPaths) (ops.OperationPathTransformResult, error)
- type RunRequest
- type SandboxInput
- type SandboxPathConfig
- type SandboxPathMapping
Constants ¶
View Source
const ( SandboxTypeNone = "none" SandboxTypeShai = "shai" DefaultShaiWorkdir = "/src" DefaultShaiWorktreePath = "/src/git" DefaultShaiInbox = "/src/inbox" DefaultShaiOutbox = "/src/outbox" )
Variables ¶
This section is empty.
Functions ¶
func BuildProcessEnv ¶
func ContainsOpVisibleSentinel ¶
func ContainsOpVisibleSentinel(value interface{}) bool
func ExecuteProcess ¶
func SandboxType ¶
func SandboxType(sandbox *SandboxInput) string
func TransformOperationPaths ¶
func TransformOperationPaths(_ context.Context, rawSandbox interface{}, host ops.OperationPaths) (ops.OperationPathTransformResult, error)
Types ¶
type RunRequest ¶
type RunRequest struct {
WorkspaceRoot string
WorkingDir string
ConfigFile string
Shell string
Run string
Command []string
Env map[string]string
Stdin []byte
Sandbox *SandboxInput
RequiredMounts []ops.RequiredMount
RequiredPorts []ops.RequiredPort
}
type SandboxInput ¶
type SandboxInput struct {
Type string `json:"type,omitempty" yaml:"type,omitempty"`
Paths *SandboxPathConfig `json:"paths,omitempty" yaml:"paths,omitempty"`
}
func ParseSandboxInput ¶
func ParseSandboxInput(raw interface{}) (*SandboxInput, error)
type SandboxPathConfig ¶
type SandboxPathConfig struct {
Workdir SandboxPathMapping `json:"workdir,omitempty" yaml:"workdir,omitempty"`
WorktreePath SandboxPathMapping `json:"worktree_path,omitempty" yaml:"worktree_path,omitempty"`
Inbox SandboxPathMapping `json:"inbox,omitempty" yaml:"inbox,omitempty"`
Outbox SandboxPathMapping `json:"outbox,omitempty" yaml:"outbox,omitempty"`
}
type SandboxPathMapping ¶
Click to show internal directories.
Click to hide internal directories.