Documentation
¶
Overview ¶
Package sandbox implements the runtime provisioner for runtimes in sandboxed processes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// GetSandboxConfig is a function that generates the sandbox configuration. In case it is not
// specified a default function is used.
GetSandboxConfig GetSandboxConfigFunc
// HostInfo provides information about the host environment.
HostInfo *protocol.HostInfo
// HostInitializer is a function that additionally initializes the runtime host. In case it is
// not specified a default function is used.
HostInitializer func(context.Context, *HostInitializerParams) (*host.StartedEvent, error)
// Logger is an optional logger to use with this provisioner. In case it is not specified a
// default logger will be created.
Logger *logging.Logger
// SandboxBinaryPath is the path to the sandbox support binary.
SandboxBinaryPath string
// InsecureNoSandbox disables the sandbox and runs the runtime binary directly.
InsecureNoSandbox bool
}
Config contains the sandbox provisioner configuration options.
type GetSandboxConfigFunc ¶ added in v0.2400.0
type GetSandboxConfigFunc func(cfg host.Config, socketPath, runtimeDir string) (process.Config, error)
GetSandboxConfigFunc is the function used to generate the sandbox configuration.
func DefaultGetSandboxConfig ¶ added in v0.2400.0
func DefaultGetSandboxConfig(logger *logging.Logger, sandboxBinaryPath string) GetSandboxConfigFunc
DefaultGetSandboxConfig is the default function for generating sandbox configuration.
type HostInitializerParams ¶ added in v0.2300.0
type HostInitializerParams struct {
Runtime host.Runtime
Version version.Version
Process process.Process
Connection protocol.Connection
NotifyUpdateCapabilityTEE <-chan struct{}
}
HostInitializerParams contains parameters for the HostInitializer function.
Click to show internal directories.
Click to hide internal directories.