Versions in this module Expand all Collapse all v1 v1.801.490 Aug 6, 2026 Changes in this version + const IDPrefix + const KindSandbox + func End(s *Service, ctx context.Context, org, id string, purge bool) error + func Mount(app cloud.Router, deps cloud.Deps) error + func Ours(id string) bool + func Routes(app cloud.Router, s *cloud.Service[state]) + func Write(s *Service, ctx context.Context, org, id, path string, data []byte) (string, int, error) + type Bound struct + Namespace string + Selector string + type Cmd struct + Argv []string + Command string + Dir string + Stdin string + TimeoutSec int + type Entry struct + Data []byte + Dir bool + Entries []string + Path string + func Read(s *Service, ctx context.Context, org, id, path string) (Entry, error) + type ExecResult struct + ExitCode int + Stderr string + Stdout string + func Run(s *Service, ctx context.Context, org, id string, cmd Cmd) (ExecResult, error) + type Sandbox struct + Class string + CreatedAt int64 + Error string + ExpiresAt int64 + ID string + Image string + Kind string + LastUsedAt int64 + Org string + Pod string + Project string + Status string + Volume string + func Get(s *Service, ctx context.Context, org, id string) (Sandbox, error) + func Lease(s *Service, ctx context.Context, org string, spec Spec) (Sandbox, error) + func List(s *Service, ctx context.Context, org, project, status string) ([]Sandbox, error) + type Service = cloud.Service[state] + func New(deps cloud.Deps) (*Service, error) + type Spec struct + Class string + ID string + Image string + Project string + TTLSec int + type Store struct + func (s *Store) Close() error + func (s *Store) Delete(ctx context.Context, org, id string) error + func (s *Store) Expired(ctx context.Context, org string, now int64) ([]Sandbox, error) + func (s *Store) Get(ctx context.Context, org, id string) (Sandbox, error) + func (s *Store) IDs(ctx context.Context, org string) (map[string]bool, error) + func (s *Store) List(ctx context.Context, org, project, status string) ([]Sandbox, error) + func (s *Store) Live(ctx context.Context, org, project string) (Sandbox, error) + func (s *Store) LiveOfClass(ctx context.Context, org, class string) (int, error) + func (s *Store) Put(ctx context.Context, m Sandbox) error