Documentation ¶
Index ¶
Constants ¶
View Source
const ( NSE = iota // Interface linked to a NSC (e.g. target) NSC // Interface linked to a NSE (e.g. Load balancer) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FWMarkRoute ¶
type Iface ¶
type Iface interface { GetIndex() int GetName() string GetLocalPrefixes() []string SetLocalPrefixes(localPrefixes []string) AddLocalPrefix(prefix string) error RemoveLocalPrefix(prefix string) error GetNeighborPrefixes() []string SetNeighborPrefixes(neighborPrefixes []string) GetGatewayPrefixes() []string SetGatewayPrefixes(gateways []string) GetInterfaceType() InterfaceType SetInterfaceType(ifaceType InterfaceType) Equals(Iface) bool }
type InterfaceMonitor ¶
type InterfaceMonitor interface { Subscribe(subscriber InterfaceMonitorSubscriber) UnSubscribe(subscriber InterfaceMonitorSubscriber) Close() }
type InterfaceType ¶
type InterfaceType int
type SourceBasedRoute ¶
type Utils ¶
type Utils interface { NewInterface(index int) Iface NewBridge(name string) (Bridge, error) NewFWMarkRoute(ip string, fwmark int, tableID int) (FWMarkRoute, error) NewSourceBasedRoute(tableID int, prefix string) (SourceBasedRoute, error) NewInterfaceMonitor() (InterfaceMonitor, error) WithInterfaceMonitor(parent context.Context, monitor InterfaceMonitor) context.Context GetInterfaceMonitor(ctx context.Context) InterfaceMonitor GetIndexFromName(name string) (int, error) AddVIP(vip string) error DeleteVIP(vip string) error }
Click to show internal directories.
Click to hide internal directories.