common

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2019 License: Apache-2.0 Imports: 5 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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
	Port     PortMessage
}

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.

type PortMessage added in v0.3.0

type PortMessage struct {
	Opaque map[string]string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL