Documentation ¶
Index ¶
Constants ¶
View Source
const RetryConnectTime = 3
Variables ¶
This section is empty.
Functions ¶
func InfoFromHostAndRelay ¶
func Register ¶
func Register(c *config.TunnelAgentConfig, ifm *informers.Manager, mode TunnelMode) error
Register register tunnelagent to beehive modules
Types ¶
type TunnelAgent ¶
type TunnelAgent struct { Config *config.TunnelAgentConfig Host host.Host ProxySvc *proxy.ProxyService Mode TunnelMode }
TunnelAgent is used for solving cross subset communication
var Agent *TunnelAgent
func (*TunnelAgent) Enable ¶
func (t *TunnelAgent) Enable() bool
Enable indicates whether enable this module
func (*TunnelAgent) Run ¶
func (t *TunnelAgent) Run()
type TunnelMode ¶
type TunnelMode string
const ( ClientMode TunnelMode = "ClientOnly" ServerClientMode TunnelMode = "ServerAndClient" UnknownMode TunnelMode = "Unknown" )
Click to show internal directories.
Click to hide internal directories.