Documentation ¶
Index ¶
- Constants
- func NewRunc(root, path, namespace, runtime, criu string, systemd bool) *runc.Runc
- type CheckpointConfig
- type CreateConfig
- type ExecConfig
- type Init
- func (p *Init) Create(ctx context.Context, r *CreateConfig) error
- func (p *Init) ExitStatus() int
- func (p *Init) ExitedAt() time.Time
- func (p *Init) ID() string
- func (p *Init) KillAll(context context.Context) error
- func (p *Init) Pid() int
- func (p *Init) Runtime() *runc.Runc
- 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
Constants ¶
View Source
const InitPidFile = "init.pid"
InitPidFile name of the file that contains the init pid
View Source
const RuncRoot = "/run/containerd/runc"
RuncRoot is the path to the root runc state directory
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckpointConfig ¶
type CheckpointConfig struct { 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 Init ¶
type Init struct { WorkDir string Bundle string Platform proc.Platform Rootfs string IoUID int IoGID int NoPivotRoot bool NoNewKeyring bool // 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) error
Create the process with the provided config
Click to show internal directories.
Click to hide internal directories.