networking

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2015 License: Apache-2.0 Imports: 20 Imported by: 0

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 Net

type Net struct {
	rktnet.Net
	// contains filtered or unexported fields
}

Net encodes a network plugin.

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.

Directories

Path Synopsis
net

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL