Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultMonitorInterval = 20 * time.Second
Variables ¶
View Source
var IPv4RE = regexp.MustCompile(`(?:\d{1,3}\.){3}\d{1,3}`)
Functions ¶
func GetLocal ¶
func GetLocal(submSpec *types.SubmarinerSpecification, k8sClient kubernetes.Interface, airGappedDeployment bool, ) (*types.SubmarinerEndpoint, error)
func GetLocalIP ¶ added in v0.14.0
func GetLocalIP() string
func GetLocalIPForDestination ¶ added in v0.14.0
Types ¶
type PublicIPWatcher ¶ added in v0.13.0
type PublicIPWatcher struct {
// contains filtered or unexported fields
}
func NewPublicIPWatcher ¶ added in v0.13.0
func NewPublicIPWatcher(config *PublicIPWatcherConfig) *PublicIPWatcher
func (*PublicIPWatcher) Run ¶ added in v0.13.0
func (p *PublicIPWatcher) Run(stopCh <-chan struct{})
type PublicIPWatcherConfig ¶ added in v0.13.0
type PublicIPWatcherConfig struct { SubmSpec *types.SubmarinerSpecification Interval time.Duration K8sClient kubernetes.Interface Endpoints v1.EndpointInterface LocalEndpoint types.SubmarinerEndpoint }
Click to show internal directories.
Click to hide internal directories.