Documentation ¶
Overview ¶
Package externalips provides to the context on Request or Close possible to resolve external IP to internal or vise versa
Index ¶
Constants ¶
View Source
const DefaultFilePath = "/var/lib/networkservicemesh/config/ipmap.yaml"
DefaultFilePath is path to the default file for monitoring IPs
Variables ¶
This section is empty.
Functions ¶
func FromInternal ¶
FromInternal resolves a internal IP to external
func NewServer ¶
func NewServer(chainCtx context.Context, options ...Option) networkservice.NetworkServiceServer
NewServer creates networkservice.NetworkServiceServer which provides to context possible to resolve internal IP to external or vise versa. By default watches file by DefaultFilePath.
Types ¶
type Option ¶
type Option func(*externalIPsServer)
Option option for externalips server
func WithFilePath ¶
WithFilePath means listen file by passed path
func WithUpdateChannel ¶
WithUpdateChannel passed to server specific channel for listening updates
Click to show internal directories.
Click to hide internal directories.