Versions in this module Expand all Collapse all v0 v0.1.0 May 2, 2022 Changes in this version + var EnvNameProcSyncPipe = "_RUNCEXT_PROC_SYNC_PIPE" + var RuntimeExtCommand = "embedshim-runcext" + func NewSocketPair(name string) (*os.File, *os.File, error) + func ParseProcSync(pipe io.Reader, fn func(*ProcSync) error) error + func ReadProcSync(r io.Reader, expected ProcSyncType) error + func RuncExecOptsArgs(opts *runc.ExecOpts) (out []string, err error) + func RuntimeCommand(ctx context.Context, ext bool, r *runc.Runc, args ...string) *exec.Cmd + func WriteProcSyncMessage(w io.Writer, msg ProcSync) error + type PidFile struct + func NewPidFile(p string) *PidFile + func (p *PidFile) Path() string + func (p *PidFile) Read() (int, error) + type ProcSync struct + Exited bool + ExitedStatus uint32 + Message string + Pid uint32 + Type ProcSyncType + func NewProcSyncErrorMessage(err error) ProcSync + func NewProcSyncExecPidDoneMessage() ProcSync + func NewProcSyncExecPidMessage(pid uint32) ProcSync + func NewProcSyncExecStatusDoneMessage() ProcSync + func NewProcSyncExecStatusMessage(exited bool, status uint32) ProcSync + type ProcSyncType string + const ProcSyncError + const ProcSyncExecPid + const ProcSyncExecPidDone + const ProcSyncExecStatus + const ProcSyncExecStatusDone