net

package
Version: 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: 5 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"`
}

this is what net plugin returns to rkt

type Net

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

Net describes a network.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL