2014-07-09 01:17:05 +08:00
|
|
|
package libcontainer
|
|
|
|
|
2015-02-07 13:12:27 +08:00
|
|
|
import "io"
|
2014-07-09 01:17:05 +08:00
|
|
|
|
2015-02-04 09:44:58 +08:00
|
|
|
// Process specifies the configuration and IO for a process inside
|
|
|
|
// a container.
|
2015-02-01 12:51:12 +08:00
|
|
|
type Process struct {
|
2014-07-09 01:17:05 +08:00
|
|
|
// The command to be run followed by any arguments.
|
|
|
|
Args []string
|
2015-02-04 09:44:58 +08:00
|
|
|
|
2015-02-07 11:16:11 +08:00
|
|
|
// Env specifies the environment variables for the process.
|
|
|
|
Env []string
|
|
|
|
|
2015-02-10 05:11:57 +08:00
|
|
|
// User will set the uid and gid of the executing process running inside the container
|
|
|
|
// local to the contaienr's user and group configuration.
|
|
|
|
User string
|
|
|
|
|
|
|
|
// Cwd will change the processes current working directory inside the container's rootfs.
|
|
|
|
Cwd string
|
|
|
|
|
2014-07-09 01:17:05 +08:00
|
|
|
// Stdin is a pointer to a reader which provides the standard input stream.
|
2015-02-04 09:44:58 +08:00
|
|
|
Stdin io.Reader
|
|
|
|
|
2014-07-09 01:17:05 +08:00
|
|
|
// Stdout is a pointer to a writer which receives the standard output stream.
|
2014-12-18 05:14:49 +08:00
|
|
|
Stdout io.Writer
|
2015-02-04 09:44:58 +08:00
|
|
|
|
|
|
|
// Stderr is a pointer to a writer which receives the standard error stream.
|
2014-12-18 05:14:49 +08:00
|
|
|
Stderr io.Writer
|
2014-07-09 01:17:05 +08:00
|
|
|
}
|