Documentation
¶
Overview ¶
Package launch builds and execs the sandboxed command ("sim <cmd>").
Index ¶
Constants ¶
View Source
const SessionDir = ".local/state/sim/sessions"
SessionDir is the per-session podman state location under virtual_home.
View Source
const SessionsLock = "lock"
SessionsLock is the flock-locked liveness file inside a session dir.
View Source
const SimImagesDir = ".cache/sim/podman-images"
SimImagesDir is the image-tar location under virtual_home (visible at $HOME).
Variables ¶
View Source
var CwdGitModes = []string{"ro", "ro_try", "rw", "rw_try", "none"}
CwdGitModes are the accepted cwd_git_mode values, in message order.
Functions ¶
Types ¶
type Params ¶
type Params struct {
Cwd string
Cfg *config.Config
UID int
GID int
Home string
User string
// Self is the absolute path to this binary, bound into the sandbox and
// re-exec'd as the entrypoint. Empty means os.Executable().
Self string
XDGRuntimeDir string
}
Params carries everything Build needs from the process environment. It is a struct (rather than reading the process directly) so tests can drive it.
Click to show internal directories.
Click to hide internal directories.