sandbox_runner

package
v1.28.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cmd *exec.Cmd, opts ...SandboxOption) *gexec.Session

Types

type EnvOption

type EnvOption func(cmd *exec.Cmd, value string) *exec.Cmd

func WithEnvSetToFilePath

func WithEnvSetToFilePath(envName string) EnvOption

type SandboxOption

type SandboxOption func(sandboxConfig) error

func AsUser

func AsUser(uid, gid uint32) SandboxOption

func WithFile

func WithFile(path string, contents []byte, envOpts ...EnvOption) SandboxOption

func WithSourceDirectory

func WithSourceDirectory(fromPath string, toPath string) SandboxOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL