Documentation ¶
Index ¶
- func AddArpEntry(name string, arpEntry *netlink.Neigh, log logging.Logger, ...) error
- func AddStaticRoute(name string, route *netlink.Route, log logging.Logger, ...) error
- func DeleteArpEntry(name string, arpEntry *netlink.Neigh, log logging.Logger, ...) error
- func DeleteStaticRoute(name string, route *netlink.Route, log logging.Logger, ...) error
- func ModifyArpEntry(name string, arpEntry *netlink.Neigh, log logging.Logger, ...) error
- func ModifyStaticRoute(name string, route *netlink.Route, log logging.Logger, ...) error
- func ReadArpEntries(interfaceIdx int, family int, log logging.Logger, ...) ([]netlink.Neigh, error)
- func ReadStaticRoutes(link netlink.Link, family int, log logging.Logger, ...) ([]netlink.Route, error)
- func ToArpNs(ns *linuxcalls.Namespace) (*l3.LinuxStaticArpEntries_ArpEntry_Namespace, error)
- func ToGenericArpNs(ns *l3.LinuxStaticArpEntries_ArpEntry_Namespace) *linuxcalls.Namespace
- func ToGenericRouteNs(ns *l3.LinuxStaticRoutes_Route_Namespace) *linuxcalls.Namespace
- func ToRouteNs(ns *linuxcalls.Namespace) (*l3.LinuxStaticRoutes_Route_Namespace, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddArpEntry ¶
func AddArpEntry(name string, arpEntry *netlink.Neigh, log logging.Logger, timeLog measure.StopWatchEntry) error
AddArpEntry creates a new static ARP entry
func AddStaticRoute ¶
func AddStaticRoute(name string, route *netlink.Route, log logging.Logger, timeLog measure.StopWatchEntry) error
AddStaticRoute creates the new static route
func DeleteArpEntry ¶
func DeleteArpEntry(name string, arpEntry *netlink.Neigh, log logging.Logger, timeLog measure.StopWatchEntry) error
DeleteArpEntry removes an static ARP entry
func DeleteStaticRoute ¶
func DeleteStaticRoute(name string, route *netlink.Route, log logging.Logger, timeLog measure.StopWatchEntry) error
DeleteStaticRoute removes the static route
func ModifyArpEntry ¶
func ModifyArpEntry(name string, arpEntry *netlink.Neigh, log logging.Logger, timeLog measure.StopWatchEntry) error
ModifyArpEntry updates existing arp entry
func ModifyStaticRoute ¶
func ModifyStaticRoute(name string, route *netlink.Route, log logging.Logger, timeLog measure.StopWatchEntry) error
ModifyStaticRoute removes the static route
func ReadArpEntries ¶
func ReadArpEntries(interfaceIdx int, family int, log logging.Logger, timeLog measure.StopWatchEntry) ([]netlink.Neigh, error)
ReadArpEntries reads all configured static ARP entries for given interface <interfaceIdx> and <family> parameters works as filters, if they are set to zero, all arp entries are returned
func ReadStaticRoutes ¶
func ReadStaticRoutes(link netlink.Link, family int, log logging.Logger, timeLog measure.StopWatchEntry) ([]netlink.Route, error)
ReadStaticRoutes reads static routes // <link> and <family> parameters works as filters, if they are set to nil/zero values, all routes are returned
func ToArpNs ¶
func ToArpNs(ns *linuxcalls.Namespace) (*l3.LinuxStaticArpEntries_ArpEntry_Namespace, error)
ToArpNs converts generic namespace to arp-type namespace
func ToGenericArpNs ¶
func ToGenericArpNs(ns *l3.LinuxStaticArpEntries_ArpEntry_Namespace) *linuxcalls.Namespace
ToGenericArpNs converts arp-type namespace to generic type namespace. Such an object can be used to call common namespace-related methods
func ToGenericRouteNs ¶
func ToGenericRouteNs(ns *l3.LinuxStaticRoutes_Route_Namespace) *linuxcalls.Namespace
ToGenericRouteNs converts route-type namespace to generic type namespace. Such an object can be used to call common namespace-related methods
func ToRouteNs ¶
func ToRouteNs(ns *linuxcalls.Namespace) (*l3.LinuxStaticRoutes_Route_Namespace, error)
ToRouteNs converts generic namespace to arp-type namespace
Types ¶
This section is empty.