Documentation
¶
Index ¶
Constants ¶
View Source
const ( PullNever = "never" PullIfNotPresent = "if-not-present" PullAlways = "always" )
Variables ¶
View Source
var ( ErrImageNotAllowed = errors.New("docker sandbox: image not allowed") ErrImagePull = errors.New("docker sandbox: image pull failed") ErrCompileFailed = errors.New("docker sandbox: compile failed") ErrRuntimeFailed = errors.New("docker sandbox: runtime failed") ErrTimeout = errors.New("docker sandbox: timeout") ErrCleanup = errors.New("docker sandbox: cleanup failed") )
Functions ¶
This section is empty.
Types ¶
type RegistryAuth ¶
type Spec ¶
type Spec struct {
SubmissionID string
Language string
Image string
CompileCmd []string
RunCmd []string
Env []string
Timeout time.Duration
CompileTimeout time.Duration
RunTimeout time.Duration
CPUNano int64
MemoryBytes int64
PidsLimit int64
Ulimits []Ulimit
WorkingDir string
Stdin []byte
NetworkDisabled bool
ReadonlyRootfs bool
User string
RegistryAuth *RegistryAuth
PullPolicy string
WorkspaceDir string
CleanupTimeout time.Duration
LogLimitBytes int64
}
Click to show internal directories.
Click to hide internal directories.