Versions in this module Expand all Collapse all v1 v1.3.2 Jan 4, 2017 Changes in this version + const CertExtensionAuthority + const CertExtensionRole + const CertTeleportUser + const DefaultCertTTL + const DefaultLRUCapacity + const HostUUIDFile + const WebSocketBinaryMode + const WebSocketTextMode + func Consolef(w io.Writer, msg string, params ...interface{}) + func CreateTLSConfiguration(certFile, keyFile string) (*tls.Config, error) + func CryptoRandomHex(len int) (string, error) + func FatalError(err error) + func GetLoginShell(username string) (string, error) + func GuessHostIP() (ip net.IP, err error) + func InitCLIParser(appName, appHelp string) (app *kingpin.Application) + func InitDebugLogger(level log.Level) + func InitLoggerCLI() + func InitLoggerDebug() + func InitLoggerForTests() + func InitLoggerVerbose() + func IsDir(dirPath string) bool + func IsFile(fp string) bool + func IsHandshakeFailedError(err error) bool + func IsLocalhost(host string) bool + func IsLoopback(host string) bool + func IsShellFailedError(err error) bool + func ListenTLS(address string, certFile, keyFile string) (net.Listener, error) + func MultiCloser(closers ...io.Closer) *multiCloser + func NewChConn(conn ssh.Conn, ch ssh.Channel) *chConn + func ObeyTimeouts(conn net.Conn, timeout time.Duration, name string) net.Conn + func ObjectToStruct(in interface{}, out interface{}) error + func PrintVersion() + func RandomDuration(max time.Duration) time.Duration + func ReadAll(r io.Reader, bufsize int) (out []byte, err error) + func ReadHostUUID(dataDir string) (string, error) + func ReadOrMakeHostUUID(dataDir string) (string, error) + func ReadPath(path string) ([]byte, error) + func ReplaceLocalhost(addr, replaceWith string) string + func SplitReaders(r1 io.Reader, r2 io.Reader) io.Reader + func StartHTTPServer(addr NetAddr, h http.Handler) error + func UserMessageFromError(err error) string + func WriteHostUUID(dataDir string, id string) error + type AddrStorage interface + GetAddresses func() ([]NetAddr, error) + SetAddresses func([]NetAddr) error + type CloseBroadcaster struct + C chan struct{} + func NewCloseBroadcaster() *CloseBroadcaster + func (b *CloseBroadcaster) Close() error + type FileAddrStorage struct + func NewFileAddrStorage(filePath string) *FileAddrStorage + func (fs *FileAddrStorage) GetAddresses() ([]NetAddr, error) + func (fs *FileAddrStorage) SetAddresses(addrs []NetAddr) error + type FileNode struct + Dir bool + Mode int64 + Name string + Parent string + Size int64 + type HostKeyCallback func(hostID string, remote net.Addr, key ssh.PublicKey) error + type NetAddr struct + Addr string + AddrNetwork string + Path string + func MustParseAddr(a string) *NetAddr + func ParseAddr(a string) (*NetAddr, error) + func ParseHostPortAddr(hostport string, defaultPort int) (*NetAddr, error) + func (a *NetAddr) FullAddress() string + func (a *NetAddr) IsEmpty() bool + func (a *NetAddr) IsLocal() bool + func (a *NetAddr) IsLoopback() bool + func (a *NetAddr) MarshalYAML() (interface{}, error) + func (a *NetAddr) Network() string + func (a *NetAddr) Set(s string) error + func (a *NetAddr) String() string + func (a *NetAddr) UnmarshalYAML(unmarshal func(interface{}) error) error + type NetAddrList []NetAddr + func (nl *NetAddrList) Addresses() []string + func (nl *NetAddrList) Set(s string) error + func (nl *NetAddrList) String() string + type NetAddrVal NetAddr + func NewNetAddrVal(defaultVal NetAddr, val *NetAddr) *NetAddrVal + func (a *NetAddrVal) Get() interface{} + func (a *NetAddrVal) Set(s string) error + func (a *NetAddrVal) String() string + type PipeNetConn struct + func NewPipeNetConn(reader io.Reader, writer io.Writer, closer io.Closer, fakelocalAddr net.Addr, ...) *PipeNetConn + func (nc *PipeNetConn) Close() error + func (nc *PipeNetConn) LocalAddr() net.Addr + func (nc *PipeNetConn) Read(buf []byte) (n int, e error) + func (nc *PipeNetConn) RemoteAddr() net.Addr + func (nc *PipeNetConn) SetDeadline(t time.Time) error + func (nc *PipeNetConn) SetReadDeadline(t time.Time) error + func (nc *PipeNetConn) SetWriteDeadline(t time.Time) error + func (nc *PipeNetConn) Write(buf []byte) (n int, e error) + type PortList []string + func GetFreeTCPPorts(n int) (PortList, error) + func (p *PortList) Pop() string + type TLSCredentials struct + Cert []byte + PrivateKey []byte + PublicKey []byte + func GenerateSelfSignedCert(hostNames []string) (*TLSCredentials, error) + type TimeoutConn struct + Name string + TimeoutDuration time.Duration + func (tc *TimeoutConn) Read(p []byte) (n int, err error) + func (tc *TimeoutConn) Write(p []byte) (n int, err error) + type WebSockWrapper struct + func NewWebSockWrapper(ws *websocket.Conn, m WebSocketMode) *WebSockWrapper + func (w *WebSockWrapper) Close() error + func (w *WebSockWrapper) Read(out []byte) (n int, err error) + func (w *WebSockWrapper) Write(data []byte) (n int, err error) + type WebSocketMode int Incompatible versions in this module v4.3.10+incompatible Feb 19, 2021 v3.2.17+incompatible Feb 4, 2021 v3.1.6+incompatible Feb 12, 2019