Versions in this module Expand all Collapse all v0 v0.25.0 May 18, 2024 Changes in this version + var EnsureCGKeeper = config.GenFlag("feature.grader.ensure_keeper", false, "Ensure isolate-cg-keeper is running") + var IsolateConfigPath = config.GenFlag("feature.grader.isolate_config_path", "/usr/local/etc/isolate", ...) + func InitKeeper() error + func IsolateVersion() string type IsolateBox + func (b *IsolateBox) SaveFile(fpath string, bucket eval.Bucket, filename string, mode fs.FileMode) error type StupidSandbox + func (b *StupidSandbox) SaveFile(fpath string, bucket eval.Bucket, filename string, mode fs.FileMode) error v0.24.0 Jan 13, 2024 Changes in this version + var CGTiming = config.GenFlag[bool]("feature.grader.use_cg_timing", false, ...) + func New(id int, memQuota int64, logger *zap.SugaredLogger) (eval.Sandbox, error) + func NewStupid(boxID int, memoryQuota int64, logger *zap.SugaredLogger) (eval.Sandbox, error) + type IsolateBox struct + func (b *IsolateBox) Close() error + func (b *IsolateBox) FileExists(fpath string) bool + func (b *IsolateBox) GetID() int + func (b *IsolateBox) MemoryQuota() int64 + func (b *IsolateBox) ReadFile(fpath string, w io.Writer) error + func (b *IsolateBox) RunCommand(ctx context.Context, command []string, conf *eval.RunConfig) (*eval.RunStats, error) + func (b *IsolateBox) WriteFile(fpath string, r io.Reader, mode fs.FileMode) error + type StupidSandbox struct + func (b *StupidSandbox) Close() error + func (b *StupidSandbox) FileExists(fpath string) bool + func (b *StupidSandbox) GetID() int + func (b *StupidSandbox) MemoryQuota() int64 + func (b *StupidSandbox) ReadFile(fpath string, w io.Writer) error + func (b *StupidSandbox) RunCommand(ctx context.Context, command []string, conf *eval.RunConfig) (*eval.RunStats, error) + func (b *StupidSandbox) WriteFile(fpath string, r io.Reader, mode fs.FileMode) error