Versions in this module Expand all Collapse all v11 v11.3.3 Dec 13, 2022 Changes in this version + type CLICommandProvider interface + GetCommand func(gateway *Gateway) (string, error) + type Config struct + CLICommandProvider CLICommandProvider + CertPath string + Clock clockwork.Clock + Insecure bool + KeyPath string + LocalAddress string + LocalPort string + Log *logrus.Entry + OnExpiredCert OnExpiredCertFunc + Protocol string + TCPPortAllocator TCPPortAllocator + TargetName string + TargetSubresourceName string + TargetURI string + TargetUser string + URI uri.ResourceURI + WebProxyAddr string + func (c *Config) CheckAndSetDefaults() error + func (c *Config) RouteToDatabase() tlsca.RouteToDatabase + type Gateway struct + func New(cfg Config) (*Gateway, error) + func NewWithLocalPort(gateway *Gateway, port string) (*Gateway, error) + func (g *Gateway) CLICommand() (string, error) + func (g *Gateway) Close() error + func (g *Gateway) LocalAddress() string + func (g *Gateway) LocalPort() string + func (g *Gateway) LocalPortInt() int + func (g *Gateway) Log() *logrus.Entry + func (g *Gateway) Protocol() string + func (g *Gateway) ReloadCert() error + func (g *Gateway) RouteToDatabase() tlsca.RouteToDatabase + func (g *Gateway) Serve() error + func (g *Gateway) SetTargetSubresourceName(value string) + func (g *Gateway) SetURI(newURI uri.ResourceURI) + func (g *Gateway) TargetName() string + func (g *Gateway) TargetSubresourceName() string + func (g *Gateway) TargetURI() string + func (g *Gateway) TargetUser() string + func (g *Gateway) URI() uri.ResourceURI + type NetTCPPortAllocator struct + func (n NetTCPPortAllocator) Listen(localAddress, port string) (net.Listener, error) + type OnExpiredCertFunc func(context.Context, *Gateway) error + type TCPPortAllocator interface + Listen func(localAddress, port string) (net.Listener, error)