Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command a starter command to execute.
type CommandOp ¶
type CommandOp func(*Command)
CommandOp represents a function type passed to Exec/Run allowing to customize the starter command execution.
func CleanupHost ¶
CleanupHost sets CLEANUP_HOST environment variable which tells starter to spawn the unprivileged host cleanup process.
func LoadOverlayModule ¶
LoadOverlayModule sets LOAD_OVERLAY_MODULE environment variable which tell starter to load overlay kernel module.
func PostStartHost ¶ added in v4.1.0
PostStartHost sets POST_START_HOST environment variable which tells starter to spawn the unprivileged host post start process.
func UseSuid ¶
UseSuid sets if the starter command uses either the setuid binary or the unprivileged binary. The unprivileged binary is used by default if this operation is not passed to Run/Exec.
func WithStderr ¶
WithStderr allows to pass a custom error stream to starter command. Error stream is ignored for Exec as it uses the caller stream.
func WithStdin ¶
WithStdin allows to pass a custom input stream to starter command. Input stream is ignored for Exec as it uses the caller stream.
func WithStdout ¶
WithStdout allows to pass a custom output stream to starter command. Output stream is ignored for Exec as it uses the caller stream.