Documentation ¶
Index ¶
Constants ¶
View Source
const (
Privileged = true
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { WatcherConfig *watcher.Config EndpointNamespace string ClusterID string PingInterval uint MaxPacketLossCount uint NewPinger func(PingerConfig) PingerInterface }
type ConnectionStatus ¶
type ConnectionStatus string
const ( Connected ConnectionStatus = "connected" ConnectionUnknown ConnectionStatus = "unknown" ConnectionError ConnectionStatus = "error" )
type Interface ¶
type Interface interface { Start(stopCh <-chan struct{}) error GetLatencyInfo(endpoint *submarinerv1.EndpointSpec) *LatencyInfo Stop() }
type LatencyInfo ¶
type LatencyInfo struct { ConnectionError string ConnectionStatus ConnectionStatus IP string Spec *submarinerv1.LatencyRTTSpec }
type PingerConfig ¶ added in v0.12.0
type PingerInterface ¶
type PingerInterface interface { Start() Stop() GetLatencyInfo() *LatencyInfo GetIP() string }
func NewPinger ¶ added in v0.12.0
func NewPinger(config PingerConfig) PingerInterface
Click to show internal directories.
Click to hide internal directories.