package messages

import "github.com/rootless-containers/rootlesskit/v2/pkg/messages"

Index

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
}

type U

U is a union.

Source Files

messages.go

Version
v2.3.4 (latest)
Published
Mar 10, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
3 weeks ago

Tools for package owners.