networking

package
v0.5.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Absolute path where users place their net configs
	UserNetPath = "/etc/rkt/net.d"

	// Default net path relative to stage1 root
	DefaultNetPath = "etc/rkt/net.d/99-default.conf"
)
View Source
const BuiltinNetPluginsPath = "usr/lib/rkt/plugins/net"
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 ForwardedPort added in v0.5.4

type ForwardedPort struct {
	Protocol string
	HostPort uint
	PodPort  uint
}

ForwardedPort describes a port that will be forwarded (mapped) from the host to the pod

type Networking

type Networking struct {
	// contains filtered or unexported fields
}

Networking describes the networking details of a pod.

func Load added in v0.5.4

func Load(rktRoot string, podID *types.UUID) (*Networking, error)

Load creates the Networking object from saved state. Assumes the current netns is that of the host.

func Setup

func Setup(rktRoot string, podID types.UUID, fps []ForwardedPort) (*Networking, error)

Setup creates a new networking namespace and executes network plugins to setup private networking. It returns in the new pod namespace

func (*Networking) GetDefaultHostIP added in v0.5.4

func (n *Networking) GetDefaultHostIP() net.IP

func (*Networking) GetDefaultIP added in v0.5.4

func (n *Networking) GetDefaultIP() net.IP

func (*Networking) Save added in v0.5.4

func (e *Networking) Save() error

Save writes out the info about active nets for "rkt list" and friends to display

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