Documentation ¶
Index ¶
- Variables
- func Assert(test bool)
- func CheckFatal(e error)
- func CheckWarn(e error)
- func ConfigureARPforVeths(processID int, prefix string) error
- func ConnectedToBridgePredicate(bridgeName string) (func(link netlink.Link) bool, error)
- func ErrorMessages(errors []error) string
- func LogLogger() *log.Logger
- func LoggingHTTPHandler(h http.Handler) http.Handler
- func SetLogLevel(levelname string)
- func SignalHandlerLoop(ss ...SignalReceiver)
- type NetDev
- type SignalReceiver
Constants ¶
This section is empty.
Variables ¶
var (
Log *logrus.Logger
)
Functions ¶
func CheckFatal ¶ added in v0.10.0
func CheckFatal(e error)
func ConfigureARPforVeths ¶ added in v1.6.0
Do post-attach configuration of all veths we have created
func ConnectedToBridgePredicate ¶ added in v1.6.1
ConnectedToBridgePredicate returns a function which is used to query whether a given link is a veth interface which one end is connected to a bridge. The returned function should be called from a container network namespace which the bridge does NOT belong to.
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 { Name string 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 Note that the predicate is called while the goroutine is inside the process' netns
func GetBridgeNetDev ¶ added in v1.5.0
Get the weave bridge interface. NB: Should be called from the root network namespace.
func GetNetDevsWithPredicate ¶ added in v1.6.1
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