messages

package
v2.0.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name

func Name(x interface{}) string

func Send

func Send(w io.Writer, m *Message) error

Types

type ChildHello

type ChildHello struct {
}

type ChildInitUserNSCompleted

type ChildInitUserNSCompleted struct {
}

type Message

type Message struct {
	Name string // Name is like "MessageParentHello". Automatically filled on [Send.
	U
}

Message for parent-child communication. Sent as JSON, with uint32le length header.

func Recv

func Recv(r io.Reader) (*Message, error)

func WaitFor

func WaitFor(r io.Reader, name string) (*Message, error)

func (*Message) FulfillName

func (m *Message) FulfillName() error

type ParentHello

type ParentHello struct {
}

type ParentInitIdmapCompleted

type ParentInitIdmapCompleted struct {
}

type ParentInitNetworkDriverCompleted

type ParentInitNetworkDriverCompleted struct {
	// Fields are empty for HostNetwork.
	Dev     string
	IP      string
	Netmask int
	Gateway string
	DNS     string
	MTU     int
	// NetworkDriverOpaque strings are specific to driver
	NetworkDriverOpaque map[string]string
}

type ParentInitPortDriverCompleted

type ParentInitPortDriverCompleted struct {
	// Fields are empty for port driver "none"
	PortDriverOpaque map[string]string
}

Jump to

Keyboard shortcuts

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