mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
21bb5ccc4f
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
28 lines
608 B
Go
28 lines
608 B
Go
package libcontainer
|
|
|
|
import (
|
|
"io"
|
|
"os/exec"
|
|
)
|
|
|
|
// Process specifies the configuration and IO for a process inside
|
|
// a container.
|
|
type Process struct {
|
|
// The command to be run followed by any arguments.
|
|
Args []string
|
|
|
|
// Env specifies the environment variables for the process.
|
|
Env []string
|
|
|
|
// Stdin is a pointer to a reader which provides the standard input stream.
|
|
Stdin io.Reader
|
|
|
|
// Stdout is a pointer to a writer which receives the standard output stream.
|
|
Stdout io.Writer
|
|
|
|
// Stderr is a pointer to a writer which receives the standard error stream.
|
|
Stderr io.Writer
|
|
|
|
cmd *exec.Cmd
|
|
}
|