Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { AddPort(ctx context.Context, spec Spec) (*Status, error) ListPorts(ctx context.Context) ([]Status, error) RemovePort(ctx context.Context, id int) error }
Manager MUST be thread-safe.
type ParentDriver ¶
ParentDriver is a driver for the parent process.
type Spec ¶
type Spec struct { Proto string `json:"proto,omitempty"` // either "tcp" or "udp". in future "sctp" will be supported as well. ParentIP string `json:"parentIP,omitempty"` // IPv4 address. can be empty (0.0.0.0). ParentPort int `json:"parentPort,omitempty"` ChildPort int `json:"childPort,omitempty"` }
Click to show internal directories.
Click to hide internal directories.