netinfo

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2016 License: Apache-2.0 Imports: 6 Imported by: 26

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(root string, info []NetInfo) error

Types

type NetInfo

type NetInfo struct {
	NetName    string          `json:"netName"`
	ConfPath   string          `json:"netConf"`
	PluginPath string          `json:"pluginPath"`
	IfName     string          `json:"ifName"`
	IP         net.IP          `json:"ip"`
	Args       string          `json:"args"`
	Mask       net.IP          `json:"mask"` // we used IP instead of IPMask because support for json serialization (we don't need specific functionalities)
	HostIP     net.IP          `json:"-"`
	IP4        *types.IPConfig `json:"-"`
}

func LoadAt

func LoadAt(cdirfd int) ([]NetInfo, error)

Jump to

Keyboard shortcuts

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