MCPcopy Index your code
hub / github.com/containerd/containerd / Process

Interface Process

core/runtime/task.go:35–50  ·  view source on GitHub ↗

Process is a runtime object for an executing process inside a container

Source from the content-addressed store, hash-verified

33
34// Process is a runtime object for an executing process inside a container
35type Process interface {
36 // ID of the process
37 ID() string
38 // State returns the process state
39 State(ctx context.Context) (State, error)
40 // Kill signals a container
41 Kill(ctx context.Context, signal uint32, all bool) error
42 // ResizePty resizes the processes pty/console
43 ResizePty(ctx context.Context, size ConsoleSize) error
44 // CloseIO closes the processes IO
45 CloseIO(ctx context.Context) error
46 // Start the container's user defined process
47 Start(ctx context.Context) error
48 // Wait for the process to exit
49 Wait(ctx context.Context) (*Exit, error)
50}
51
52// ExecProcess is a process spawned in container via Task.Exec call.
53// The only difference from a regular `Process` is that exec process can delete self,

Callers 6

StartMethod · 0.92
GetMethod · 0.92
KillMethod · 0.92
ResizePtyMethod · 0.92
CloseIOMethod · 0.92
WaitMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…