# Functions
ApplyDefaults applies default values to the existing config structure.
MakeDefaultConfig creates a new Config structure and populates it with defaults.
NewSupervisor returns new instance of initialized supervisor.
NewTeleport takes the daemon configuration, instantiates all required services and starts them under a supervisor, returning the supervisor object.
Run starts teleport processes, waits for signals and handles internal process reloads.
# Constants
AuthIdentityEvent is generated when the Auth Servers identity has been initialized in the backend.
AuthTLSReady is generated when the Auth Server has initialized the TLS Mutual Auth endpoint and is ready to start accepting connections.
NodeReady is generated when the Teleport node has initialized a SSH server and is ready to start accepting SSH connections.
ProxyAgentPoolReady is generated when the proxy has initialized the agent pool (pool of connections from a remote cluster to a main cluster) and is ready to start accepting connections.
ProxyIdentityEvent is generated by the supervisor when the proxy's identity has been registered with the Auth Server.
ProxyReverseTunnelReady is generated when the proxy has initialized the reverse tunnel server and is ready to start accepting connections.
ProxySSHReady is generated when the proxy has initialized a SSH server and is ready to start accepting connections.
ProxyWebServerReady is generated when the proxy has initialized the web server and is ready to start accepting connections.
ServiceExitedWithErrorEvent is emitted whenever a service has exited with an error, the payload includes the error.
SSHIdentityEvent is generated when node's identity has been registered with the Auth Server.
TeleportDegradedEvent is emitted whenever a service is operating in a degraded manner.
TeleportExitEvent is generated when the Teleport process begins closing all listening sockets and exiting.
TeleportOKEvent is emitted whenever a service is operating normally.
TeleportPhaseChangeEvent is generated to indidate that teleport CA rotation phase has been updated, used in tests.
TeleportReadyEvent is generated to signal that all teleport internal components have started successfully.
TeleportReloadEvent is generated to trigger in-process teleport service reload - all servers and clients will be re-created in a graceful way.
# Variables
ErrTeleportExited means that teleport has exited.
ErrTeleportReloading is returned when signal waiter exits because the teleport process has initiaded shutdown.
# Structs
AuthConfig is a configuration of the auth server.
CachePolicy sets caching policy for proxies and nodes.
Config structure is used to initialize _all_ services Teleporot can run.
Connector has all resources process needs to connect to other parts of the cluster: client and identity.
Event is a special service event that can be generated by various goroutines in the supervisor.
EventMapping maps a sequence of incoming events and if triggered, generates an out event.
FileDescriptor is a file descriptor associated with a listener.
KeyPair is a private/public key pair.
KubeProxyConfig specifies configuration for proxy service.
LocalService is a locally defined service.
LocalSupervisor is a Teleport's implementation of the Supervisor interface.
ProxyConfig specifies configuration for proxy service.
RegisteredListener is a listener registered within teleport process, can be passed to child process.
RoleConfig is a configuration for a server role (either proxy or node).
ServiceExit contains information about service name, and service error if it exited with error.
SSHConfig configures SSH server node role.
TeleportProcess structure holds the state of the Teleport daemon, controlling execution and configuration of the teleport services: ssh, auth and proxy.
# Interfaces
Process is a interface for processes.
Service is a running teleport service function.
Supervisor implements the simple service logic - registering service functions and de-registering the service goroutines.
# Type aliases
NewProcess is a function that creates new teleport from config.
ServiceFunc is a service function.