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 pod.
func Setup ¶
func Setup(rktRoot string, podID types.UUID) (*Networking, error)
Setup produces a Networking object for a given pod ID.
func (*Networking) EnterHostNS ¶
func (n *Networking) EnterHostNS() error
EnterHostNS moves into the host's network namespace.
func (*Networking) EnterPodNS ¶ added in v0.5.3
func (n *Networking) EnterPodNS() error
EnterPodNS moves into the pod'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.