package messages
import "github.com/rootless-containers/rootlesskit/v2/pkg/messages"
Index ¶
- func Name(x interface{}) string
- func Send(w io.Writer, m *Message) error
- type ChildHello
- type ChildInitUserNSCompleted
- type Message
- func Recv(r io.Reader) (*Message, error)
- func WaitFor(r io.Reader, name string) (*Message, error)
- func (m *Message) FulfillName() error
- type ParentHello
- type ParentInitIdmapCompleted
- type ParentInitNetworkDriverCompleted
- type ParentInitPortDriverCompleted
- type U
Functions ¶
func Name ¶
func Name(x interface{}) string
func Send ¶
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 WaitFor ¶
func (*Message) FulfillName ¶
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 ¶
type U struct { *ParentHello *ChildHello *ParentInitIdmapCompleted *ChildInitUserNSCompleted *ParentInitNetworkDriverCompleted *ParentInitPortDriverCompleted }
U is a union.
Source Files ¶
- Version
- v2.3.4 (latest)
- Published
- Mar 10, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 3 weeks ago –
Tools for package owners.