Documentation
¶
Index ¶
- func CleanUp(defaultInterface string, gwAddr *net.IPNet) error
- func HasGatewayChanged() bool
- func RemoveDefaultGW(gwAddress *net.IPNet) error
- func RemovePeerRoutes(defaultInterface string) error
- func RemoveServerRoutes(defaultInterface string) error
- func SetDefaultGateway(gwAddress *net.IPNet) error
- func SetNetmakerPeerEndpointRoutes(defaultInterface string) error
- func SetNetmakerServerRoutes(defaultInterface string, server *config.Server) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasGatewayChanged ¶
func HasGatewayChanged() bool
HasGatewayChanged - informs called if the gateway address has changed
func RemoveDefaultGW ¶
RemoveDefaultGW - removes the default gateway
func RemovePeerRoutes ¶
RemovePeerRoutes - removes the peer routes set by a client
func RemoveServerRoutes ¶
RemoveServerRoutes - removes the server routes set by a client
func SetDefaultGateway ¶
SetDefaultGateway - sets netmaker as the default gateway
func SetNetmakerPeerEndpointRoutes ¶
SetNetmakerPeerEndpointRoutes - set peer endpoint routes through original default interface
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.