Documentation
¶
Overview ¶
Package container runs a check in an OCI container through the command line of an engine such as docker or podman.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Engine string
Image string
// Runtime is the OCI runtime name that the engine passes with --runtime. Empty means the default of the engine.
Runtime string
// Network is the engine network mode. The default none gives the check no network.
Network string
// User is the uid:gid of the check. The default is the uid and gid of the runner, so that the runner can delete what the
// check wrote, and 65532:65532 when the runner is root.
User string
Memory string
PidsLimit int
}
Config says how the container runs. Engine and Image are required.
type Sandbox ¶
type Sandbox struct {
// contains filtered or unexported fields
}
Sandbox is the engine-backed implementation.
func (*Sandbox) Isolation ¶ added in v0.9.0
func (s *Sandbox) Isolation() runnerproto.Isolation
Isolation is the level of the default runtime of the engine, or of the runtime that cfg names.