Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyRoutes ¶
func ApplyRoutes(logger *zap.Logger, args ApplyRoutesArgs) (changed bool, err error)
ApplyRoutes takes a declarative speficiation of what the routes should be like, and interact with the system routing table to achieve that state.
Types ¶
type ApplyRoutesArgs ¶
type ApplyRoutesArgs struct { // Interface specifies the primary and VPN interfaces. Set to nil to auto // detect. Interfaces *InterfaceNames // VPNIPs is a list of IPs that should go through the VPN interface. VPNIPs []net.IP }
ApplyRoutesArgs includes args needed to call ApplyRoutes. These arges specifies the desired final state that ApplyRoutes should achieve.
type InterfaceNames ¶
InterfaceNames contains two interface names.
Click to show internal directories.
Click to hide internal directories.