Documentation ¶
Index ¶
Constants ¶
View Source
const BuiltinNetPluginsPath = "usr/lib/rkt/plugins/net"
View Source
const DefaultNetPath = "etc/rkt/net.d/99-default.conf"
Default net path relative to stage1 root
View Source
const UserNetPath = "/etc/rkt/net.d"
Absolute path where users place their net configs
View Source
const UserNetPluginsPath = "/usr/lib/rkt/plugins/net"
TODO(eyakubovich): make this configurable in rkt.conf
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Networking ¶
type Networking struct { MetadataIP net.IP HostIP net.IP // contains filtered or unexported fields }
Networking describes the networking details of a container.
func Setup ¶
func Setup(rktRoot string, contID types.UUID) (*Networking, error)
Setup produces a Networking object for a given container ID.
func (*Networking) EnterContNS ¶
func (n *Networking) EnterContNS() error
EnterContNS moves into the container's network namespace.
func (*Networking) EnterHostNS ¶
func (n *Networking) EnterHostNS() error
EnterHostNS moves into the host's network namespace.
func (*Networking) Teardown ¶
func (n *Networking) Teardown()
Teardown cleans up a produced Networking object.
Click to show internal directories.
Click to hide internal directories.