Versions in this module Expand all Collapse all v0 v0.8.2 Apr 15, 2024 v0.8.1 Apr 12, 2024 v0.8.1-alpha.1 Apr 10, 2024 v0.8.0 Apr 2, 2024 Changes in this version + var DefaultPrefix = netip.MustParsePrefix("0.0.0.0/0") + func CreateNamedNamespace(name string) (string, error) + func DeleteNamedNamespace(name string) error + type Bridge struct + type Device interface + type Link interface + AddAddr func(prefix netip.Prefix) error + Delete func() error + GetAddr func() ([]netip.Prefix, error) + GetHardwareAddr func() (string, error) + GetMTU func() (int, error) + Name func() string + Namespace func() Namespace + SetHardwareAddr func(hwAddr string) error + SetMTU func(mtu int) error + SetMaster func(master Link) error + SetName func(name string) error + SetNamespace func(target Namespace) error + SetUp func() error + Type func() string + type Namespace interface + Close func() error + LinkAdd func(name string, device Device) (Link, error) + LinkFind func(name string) (Link, error) + LinkList func() ([]Link, error) + Path func() string + RedirectAdd func(src, dst string) error + RedirectDel func(src string) error + RouteAdd func(route *Route) error + RouteDel func(route *Route) error + RouteList func(filters ...*Route) ([]*Route, error) + RuleAdd func(rule *Rule) error + RuleDel func(rule *Rule) error + RuleList func(rule *Rule) ([]*Rule, error) + Run func(fn func() error) error + func OpenCurrentNamespace() (Namespace, error) + func OpenNamespace(nsPath string) (Namespace, error) + type Route struct + Destination netip.Prefix + Device string + Gateway netip.Addr + Onlink bool + Priority int + Protocol int + Source netip.Addr + Table int + Type int + type Rule struct + IifName string + Priority int + Src netip.Prefix + Table int + type VEth struct + PeerName string + PeerNamespace Namespace + type VRF struct + Table uint32 + type VXLAN struct + Group netip.Addr + ID int + Port int