Versions in this module Expand all Collapse all v1 v1.0.1 Jun 19, 2014 v1.0.0 Jun 10, 2014 Changes in this version + var ErrNotValidStrategyType = errors.New("not a valid network strategy type") + func ChangeInterfaceName(old, newName string) error + func CreateVethPair(name1, name2 string) error + func InterfaceDown(name string) error + func InterfaceUp(name string) error + func SetDefaultGateway(ip, ifaceName string) error + func SetInterfaceInNamespacePid(name string, nsPid int) error + func SetInterfaceIp(name string, rawIp string) error + func SetInterfaceMaster(name, master string) error + func SetMtu(name string, mtu int) error + type Loopback struct + func (l *Loopback) Create(n *libcontainer.Network, nspid int, context libcontainer.Context) error + func (l *Loopback) Initialize(config *libcontainer.Network, context libcontainer.Context) error + type NetNS struct + func (v *NetNS) Create(n *libcontainer.Network, nspid int, context libcontainer.Context) error + func (v *NetNS) Initialize(config *libcontainer.Network, context libcontainer.Context) error + type NetworkStrategy interface + Create func(*libcontainer.Network, int, libcontainer.Context) error + Initialize func(*libcontainer.Network, libcontainer.Context) error + func GetStrategy(tpe string) (NetworkStrategy, error) + type Veth struct + func (v *Veth) Create(n *libcontainer.Network, nspid int, context libcontainer.Context) error + func (v *Veth) Initialize(config *libcontainer.Network, context libcontainer.Context) error