package common

import "github.com/rootless-containers/rootlesskit/pkg/common"

Index

Functions

func Execs

func Execs(o io.Writer, env []string, cmds [][]string) error

func GetExecExitStatus

func GetExecExitStatus(err error) (int, bool)

func Seq

func Seq(fns []func() error) func() error

Types

type Message

type Message struct {
	// StateDir cannot be empty
	StateDir string
	Network  NetworkMessage
}

Message is sent from the parent to the child as JSON, with uint32le length header.

type NetworkMessage

type NetworkMessage struct {
	IP      string
	Netmask int
	Gateway string
	DNS     string
	MTU     int
	// Opaque strings are specific to driver
	Opaque map[string]string
}

NetworkMessage is empty for HostNetwork.

Source Files

common.go exec.go message.go

Version
v0.3.0-alpha.0
Published
Jan 13, 2019
Platform
js/wasm
Imports
5 packages
Last checked
2 hours ago

Tools for package owners.