Versions in this module Expand all Collapse all v0 v0.10.0 Nov 4, 2022 Changes in this version + func AddVIP(vip string) error + func DeleteVIP(vip string) error + func GetIndexFromName(name string) (int, error) + type Bridge struct + func NewBridge(name string) (*Bridge, error) + func (b *Bridge) Delete() error + func (b *Bridge) LinkInterface(intf networking.Iface) error + func (b *Bridge) UnLinkInterface(intf networking.Iface) error + type FWMarkRoute struct + func NewFWMarkRoute(ip string, fwmark int, tableID int) (*FWMarkRoute, error) + func (fwmr *FWMarkRoute) Delete() error + func (fwmr *FWMarkRoute) Verify() bool + type Interface struct + Gateways []string + InterfaceType networking.InterfaceType + LocalIPs []string + NeighborIPs []string + func NewInterface(index int, options ...InterfaceOption) *Interface + func (intf *Interface) AddLocalPrefix(prefix string) error + func (intf *Interface) Equals(iface networking.Iface) bool + func (intf *Interface) GetGatewayPrefixes() []string + func (intf *Interface) GetIndex() int + func (intf *Interface) GetInterfaceType() networking.InterfaceType + func (intf *Interface) GetLocalPrefixes() []string + func (intf *Interface) GetName() string + func (intf *Interface) GetNeighborPrefixes() []string + func (intf *Interface) RemoveLocalPrefix(prefix string) error + func (intf *Interface) SetGatewayPrefixes(gateways []string) + func (intf *Interface) SetInterfaceType(ifaceType networking.InterfaceType) + func (intf *Interface) SetLocalPrefixes(localPrefixes []string) + func (intf *Interface) SetNeighborPrefixes(neighborPrefixes []string) + type InterfaceMonitor struct + func NewInterfaceMonitor() (*InterfaceMonitor, error) + func (im *InterfaceMonitor) Close() + func (im *InterfaceMonitor) Subscribe(subscriber networking.InterfaceMonitorSubscriber) + func (im *InterfaceMonitor) UnSubscribe(subscriber networking.InterfaceMonitorSubscriber) + type InterfaceOption func(o *interfaceOptions) + func WithInterfaceName(name string) InterfaceOption + type KernelUtils struct + func (ku *KernelUtils) AddVIP(vip string) error + func (ku *KernelUtils) DeleteVIP(vip string) error + func (ku *KernelUtils) GetIndexFromName(name string) (int, error) + func (ku *KernelUtils) GetInterfaceMonitor(ctx context.Context) networking.InterfaceMonitor + func (ku *KernelUtils) NewBridge(name string) (networking.Bridge, error) + func (ku *KernelUtils) NewFWMarkRoute(ip string, fwmark int, tableID int) (networking.FWMarkRoute, error) + func (ku *KernelUtils) NewInterface(index int) networking.Iface + func (ku *KernelUtils) NewInterfaceMonitor() (networking.InterfaceMonitor, error) + func (ku *KernelUtils) NewSourceBasedRoute(tableID int, prefix string) (networking.SourceBasedRoute, error) + func (ku *KernelUtils) WithInterfaceMonitor(parent context.Context, monitor networking.InterfaceMonitor) context.Context + type NFSetIP struct + func NewNFSetIP(name string, family int, table *nftables.Table) (*NFSetIP, error) + func (nfs *NFSetIP) Delete() error + func (nfs *NFSetIP) Update(ips []string) error + type SourceBasedRoute struct + func NewSourceBasedRoute(tableID int, vip string) (*SourceBasedRoute, error) + func (sbr *SourceBasedRoute) AddNexthop(nexthop string) error + func (sbr *SourceBasedRoute) Delete() error + func (sbr *SourceBasedRoute) RemoveNexthop(nexthop string) error