Documentation ¶
Overview ¶
Package proc is responsible to manage the communication between the shim and the sandbox process running the container.
Index ¶
- Constants
- Variables
- func NewRunsc(root, path, namespace, runtime string, config map[string]string) *runsc.Runsc
- type CreateConfig
- type ExecConfig
- type Exit
- type Init
- func (p *Init) Create(ctx context.Context, r *CreateConfig) (err error)
- func (p *Init) Delete(ctx context.Context) error
- func (p *Init) Exec(ctx context.Context, path string, r *ExecConfig) (process.Process, error)
- func (p *Init) ExitStatus() int
- func (p *Init) ExitedAt() time.Time
- func (p *Init) ID() string
- func (p *Init) Kill(ctx context.Context, signal uint32, all bool) error
- func (p *Init) KillAll(context context.Context) error
- func (p *Init) Pid() int
- func (p *Init) Resize(ws console.WinSize) error
- func (p *Init) Runtime() *runsc.Runsc
- func (p *Init) SetExited(status int)
- func (p *Init) Start(ctx context.Context) error
- func (p *Init) Status(ctx context.Context) (string, error)
- func (p *Init) Stdin() io.Closer
- func (p *Init) Stdio() stdio.Stdio
- func (p *Init) Wait()
- type Mount
- type ProcessMonitor
Constants ¶
View Source
const RunscRoot = "/run/containerd/runsc"
RunscRoot is the path to the root runsc state directory.
Variables ¶
View Source
var ExitCh = make(chan Exit, bufferSize)
ExitCh is the exit events channel for containers and exec processes inside the sandbox.
Functions ¶
Types ¶
type CreateConfig ¶
type CreateConfig struct { ID string Bundle string Runtime string Rootfs []Mount Terminal bool Stdin string Stdout string Stderr string }
CreateConfig hold task creation configuration.
type ExecConfig ¶
type ExecConfig struct { ID string Terminal bool Stdin string Stdout string Stderr string Spec *types.Any }
ExecConfig holds exec creation configuration.
type Init ¶
type Init struct { WorkDir string Bundle string Platform stdio.Platform Rootfs string IoUID int IoGID int Sandbox bool UserLog string Monitor ProcessMonitor // contains filtered or unexported fields }
Init represents an initial process for a container.
func (*Init) Create ¶
func (p *Init) Create(ctx context.Context, r *CreateConfig) (err error)
Create the process with the provided config.
func (*Init) ExitStatus ¶
ExitStatus returns the exit status of the process.
Click to show internal directories.
Click to hide internal directories.