Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultMonitorInterval = 60 * time.Second
Variables ¶
View Source
var IPv4RE = regexp.MustCompile(`(?:\d{1,3}\.){3}\d{1,3}`)
Functions ¶
func GetLocalIP ¶ added in v0.14.0
func GetLocalIP() string
func GetLocalIPForDestination ¶ added in v0.14.0
func GetLocalSpec ¶ added in v0.17.0
func GetLocalSpec(submSpec *types.SubmarinerSpecification, k8sClient kubernetes.Interface, airGappedDeployment bool, ) (*submv1.EndpointSpec, error)
Types ¶
type Local ¶ added in v0.17.0
type Local struct {
// contains filtered or unexported fields
}
func (*Local) Spec ¶ added in v0.17.0
func (l *Local) Spec() *submv1.EndpointSpec
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 LocalEndpoint *Local }
Click to show internal directories.
Click to hide internal directories.