Documentation ¶
Index ¶
- Variables
- func Assert(test bool)
- func CheckFatal(e error)
- func CheckWarn(e error)
- func ConfigureARPCache(name string) error
- func ErrorMessages(errors []error) string
- func LogLogger() *log.Logger
- func SetLogLevel(levelname string)
- func SignalHandlerLoop(ss ...SignalReceiver)
- func WithNetNS(ns netns.NsHandle, work func() error) error
- type NetDev
- type SignalReceiver
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Log *logrus.Logger
)
Functions ¶
func CheckFatal ¶ added in v0.10.0
func CheckFatal(e error)
func ConfigureARPCache ¶ added in v1.5.0
Configure the ARP cache parameters for the given interface. This makes containers react more quickly to a change in the MAC address associated with an IP address.
func ErrorMessages ¶ added in v1.1.0
func SetLogLevel ¶ added in v1.1.0
func SetLogLevel(levelname string)
func SignalHandlerLoop ¶ added in v0.11.0
func SignalHandlerLoop(ss ...SignalReceiver)
Types ¶
type NetDev ¶ added in v1.5.0
type NetDev struct { MAC net.HardwareAddr CIDRs []*net.IPNet }
func FindNetDevs ¶ added in v1.5.0
Search the network namespace of a process for interfaces matching a predicate
func GetBridgeNetDev ¶ added in v1.5.0
Get the weave bridge interface
func GetWeaveNetDevs ¶ added in v1.5.0
Lookup the weave interface of a container
type SignalReceiver ¶ added in v0.11.0
type SignalReceiver interface {
Stop() error
}
A subsystem/server/... that can be stopped or queried about the status with a signal
Click to show internal directories.
Click to hide internal directories.