Documentation
¶
Index ¶
- func CreateFakeRootfs(dir string, image string) error
- func CreateInfraRootfs(dir string, src string) error
- func ExecCmd(name string, args ...string) (string, error)
- func ExecCmdWithStdStreams(stdin io.Reader, stdout, stderr io.Writer, name string, args ...string) error
- func Prctl(option int, arg2, arg3, arg4, arg5 uintptr) (err error)
- func StatusToExitCode(status int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFakeRootfs ¶
CreateFakeRootfs creates a fake rootfs for test.
func CreateInfraRootfs ¶
CreateInfraRootfs creates a rootfs similar to CreateFakeRootfs, but only copies a single binary from the host into the rootfs. This is all done without Docker, and is only used currently for the pause container which is required for all sandboxes.
func ExecCmd ¶
ExecCmd executes a command with args and returns its output as a string along with an error, if any
func ExecCmdWithStdStreams ¶
func ExecCmdWithStdStreams(stdin io.Reader, stdout, stderr io.Writer, name string, args ...string) error
ExecCmdWithStdStreams execute a command with the specified standard streams.
func StatusToExitCode ¶
StatusToExitCode converts wait status code to an exit code
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.