sandbox

package
v0.0.0-...-ee117b3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package sandbox provides a sandboxed execution environment for running untrusted code. It integrates with the go-judge execution service to provide isolated and secure code execution. By default, it uses gRPC to communicate with go-judge.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitWithConf

func InitWithConf(execServer, token string)

overwrite the default registered executor

Types

type Sandbox

type Sandbox struct {
	// contains filtered or unexported fields
}

func (*Sandbox) Cleanup

func (e *Sandbox) Cleanup() error

func (*Sandbox) Run

func (e *Sandbox) Run(cmds []stage.Cmd) ([]stage.ExecutorResult, error)

Jump to

Keyboard shortcuts

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