mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-24 16:17:11 +08:00
28 lines
815 B
Go
28 lines
815 B
Go
package teleport
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const (
|
|
// Component indicates a component of teleport, used for logging
|
|
Component = "component"
|
|
// ComponentFields stores component-specific fields
|
|
ComponentFields = "fields"
|
|
// ComponentReverseTunnel is reverse tunnel agent and server
|
|
// that together establish a bi-directional SSH revers tunnel
|
|
// to bypass firewall restrictions
|
|
ComponentReverseTunnel = "reversetunnel"
|
|
// ComponentNode is SSH node (SSH server serving requests)
|
|
ComponentNode = "node"
|
|
// ComponentProxy is SSH proxy (SSH server forwarding connections)
|
|
ComponentProxy = "proxy"
|
|
// ComponentTunClient is a tunnel client
|
|
ComponentTunClient = "tunclient"
|
|
)
|
|
|
|
const (
|
|
// DefaultServerTimeout sets read and wrie timeouts for SSH server ops
|
|
DefaultServerTimeout time.Duration = 30 * time.Second
|
|
)
|