Documentation ¶
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) (proc.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() proc.Stdio
- func (p *Init) Wait()
- type Mount
- type ProcessMonitor
Constants ¶
View Source
const InitPidFile = "init.pid"
InitPidFile name of the file that contains the init pid
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 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 Init ¶
type Init struct { WorkDir string Bundle string Platform proc.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
Click to show internal directories.
Click to hide internal directories.