package process
import "github.com/containerd/containerd/pkg/process"
Index ¶
Types ¶
type CheckpointConfig ¶
type CheckpointConfig struct { WorkDir string Path string Exit bool AllowOpenTCP bool AllowExternalUnixSockets bool AllowTerminal bool FileLocks bool EmptyNamespaces []string }
CheckpointConfig holds task checkpoint configuration
type CreateConfig ¶
type CreateConfig struct { ID string Bundle string Runtime string Rootfs []Mount Terminal bool Stdin string Stdout string Stderr string Checkpoint string ParentCheckpoint string Options *google_protobuf.Any }
CreateConfig hold task creation configuration
type ExecConfig ¶
type ExecConfig struct { ID string Terminal bool Stdin string Stdout string Stderr string Spec *google_protobuf.Any }
ExecConfig holds exec creation configuration
type Mount ¶
Mount holds filesystem mount configuration
type Process ¶
type Process interface { // ID returns the id for the process ID() string // Pid returns the pid for the process Pid() int // ExitStatus returns the exit status ExitStatus() int // ExitedAt is the time the process exited ExitedAt() time.Time // Stdin returns the process STDIN Stdin() io.Closer // Stdio returns io information for the container Stdio() stdio.Stdio // Status returns the process status Status(context.Context) (string, error) // Wait blocks until the process has exited Wait() // Resize resizes the process console Resize(ws console.WinSize) error // Start execution of the process Start(context.Context) error // Delete deletes the process and its resourcess Delete(context.Context) error // Kill kills the process Kill(context.Context, uint32, bool) error // SetExited sets the exit status for the process SetExited(status int) }
Process on a system
Source Files ¶
- Version
- v1.5.0-beta.0
- Published
- Jan 21, 2021
- Platform
- windows/amd64
- Imports
- 6 packages
- Last checked
- 1 minute ago –
Tools for package owners.