Discover Packages
github.com/stackdocker/rkt
Godeps
_workspace
src
github.com
appc
cni
pkg
plugin
package
Version:
v0.10.0
Opens a new window with list of versions in this module.
Published: Oct 23, 2015
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
ConfigureIface takes the result of IPAM plugin and
applies to the ifName interface
ExecDel executes IPAM plugin, assuming CNI_COMMAND == DEL.
Find returns the full path of the plugin by searching in CNI_PATH
func LoadArgs(args string , container interface{}) error
type Error struct {
Code uint `json:"code"`
Msg string `json:"msg"`
Details string `json:"details,omitempty"`
}
IPConfig contains values necessary to configure an interface
type NetConf struct {
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
IPAM struct {
Type string `json:"type,omitempty"`
} `json:"ipam,omitempty"`
}
NetConf describes a network.
type Result struct {
IP4 *IPConfig `json:"ip4,omitempty"`
IP6 *IPConfig `json:"ip6,omitempty"`
}
Result is what gets returned from the plugin (via stdout) to the caller
ExecAdd executes IPAM plugin, assuming CNI_COMMAND == ADD.
Parses and returns resulting IPConfig
Source Files
¶
Click to show internal directories.
Click to hide internal directories.