net

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadNet

func LoadNet(path string, n interface{}) error

LoadNet loads a JSON-encoded Net from the filesystem.

func PrintIfConfig

func PrintIfConfig(conf *IfConfig) error

Types

type IfConfig

type IfConfig struct {
	IP  gonet.IP `json:"ip,omitempty"`
	IP6 gonet.IP `json:"ip6,omitempty"`

	// these are "extensions" and only meaningful for default net
	HostIP  gonet.IP `json:"hostIP,omitempty"`
	HostIP6 gonet.IP `json:"hostIP6,omitempty"`
}

this is what net plugin returns to rkt

type Net

type Net struct {
	Name string `json:"name,omitempty"`
	Type string `json:"type,omitempty"`
	IPAM struct {
		Type string `json:"type,omitempty"`
	} `json:"ipam,omitempty"`
}

Net describes a network.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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