Versions in this module Expand all Collapse all v0 v0.5.5 Nov 9, 2024 Changes in this version + const BondSuffix + const BridgeSuffix + const MaxDeviceNameLen + const TypeBond + const TypeDevice + const TypeLoopback + func DeleteRouteViaGateway(cidr string) error + func DisableBridgeNF() error + func EnsureRouteViaGateway(cidr string) error + func GenerateName(prefix, suffix string) string + func Route2String(route netlink.Route) (string, error) + func String2Route(route string) (*netlink.Route, error) + type Bond struct + func NewBond(bond *netlink.Bond, slaves []string) *Bond + func (b *Bond) EnsureBond() error + type Bridge struct + func NewBridge(name string) *Bridge + func (br *Bridge) Ensure() error + func (br *Bridge) Fetch() error + type Link struct + func ListLinks(typeSelector map[string]bool) ([]*Link, error) + func NewLink(l netlink.Link) *Link + func (l *Link) AddBridgeVlan(vid uint16) error + func (l *Link) DelBridgeVlan(vid uint16) error + func (l *Link) DeleteIptForward() error + func (l *Link) EnsureIptForward() error + func (l *Link) Fetch() error + func (l *Link) ListBridgeVlan() ([]uint16, error) + func (l *Link) Remove() error + func (l *Link) SetMaster(br *Bridge) error + func (l *Link) SetNoMaster() error v0.3.2-rc1 Nov 10, 2024