Versions in this module Expand all Collapse all v1 v1.1.0 Jun 26, 2014 Changes in this version + type Network struct + Address string + Bridge string + Gateway string + Mtu int + NsPath string + Type string + VethPrefix string + type NetworkState struct + NsPath string + VethChild string + VethHost string + type NetworkStats struct + RxBytes uint64 + RxDropped uint64 + RxErrors uint64 + RxPackets uint64 + TxBytes uint64 + TxDropped uint64 + TxErrors uint64 + TxPackets uint64 + func GetStats(networkState *NetworkState) (NetworkStats, error) 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