ipam

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyIPConfig added in v0.3.0

func ApplyIPConfig(ifName string, ipConf *IPConfig) error

func ExecPluginDel added in v0.3.0

func ExecPluginDel(plugin string) error

Executes IPAM plugin, assuming RKT_NETPLUGIN_COMMAND == DEL.

Types

type IPConfig added in v0.3.0

type IPConfig struct {
	IP      *net.IPNet
	Gateway net.IP
	Routes  []net.IPNet
}

L3 config value for interface

func ExecPluginAdd added in v0.3.0

func ExecPluginAdd(plugin string) (*IPConfig, error)

Executes IPAM plugin, assuming RKT_NETPLUGIN_COMMAND == ADD. Parses and returns resulting IPConfig

func (*IPConfig) MarshalJSON added in v0.3.0

func (c *IPConfig) MarshalJSON() ([]byte, error)

func (*IPConfig) UnmarshalJSON added in v0.3.0

func (c *IPConfig) UnmarshalJSON(data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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