networking

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2015 License: Apache-2.0 Imports: 18 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
	// 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.

Directories

Path Synopsis
net

Jump to

Keyboard shortcuts

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