package
18.0.0-dev.vnet-windows.4+incompatible
Repository: https://github.com/gravitational/teleport.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
CheckTrustedClustersCanConnect check the cluster setup described in tcSetup can connect to each other.
No description provided by the author
CreateAgent creates a SSH agent with the passed in key ring that can be used in tests.
CreatePROXYEnabledListener creates net.Listener that can handle receiving signed PROXY headers.
CreateWebSession establishes a web session in the same manner that the web UI does.
No description provided by the author
No description provided by the author
No description provided by the author
ExternalSSHCommand runs an external SSH command (if an external ssh binary exists) with the passed in parameters.
No description provided by the author
GenerateUserCreds generates key to be used by client.
GetKubeClusters gets all kubernetes clusters accessible from a given auth server.
LoginMFAWebClient receives the host url and a passwordless device to carry out login and return a WebClientPack.
LoginWebClient receives the host url, the username and a password.
MakeAgentServer creates SSH agent Service It receives the Proxy Address, a Token (to join the cluster).
No description provided by the author
MakeTestDatabaseServer creates a Database Service It receives the Proxy Address, a Token (to join the cluster) and a list of Datbases.
MakeTestServers starts an Auth and a Proxy Service.
MustCreateListener creates a tcp listener at 127.0.0.1 with random port.
No description provided by the author
No description provided by the author
No description provided by the author
MustStartMockALBProxy creates and starts a MockAWSALBProxy.
No description provided by the author
NewDynamicServiceAddr creates an instance of DynamicServiceAddr.
No description provided by the author
NewInstance creates a new Teleport process instance.
NewListener creates a new TCP listener on 127.0.0.1:0, adds it to the FileDescriptor slice (with the specified type) and returns its actual local address as a string (for use in configuration).
NewListenerOn creates a new TCP listener on `hostAddr`:0, adds it to the FileDescriptor slice (with the specified type) and returns its actual local address as a string (for use in configuration).
No description provided by the author
ParseCookies parses a slice of application session cookies into an AppCookies struct.
Port extracts the port number from the supplied string, which is assumed to be a host:port pair.
PortStr extracts the port number from the supplied string, which is assumed to be a host:port pair.
SeparateMongoAndPostgresPortSetup generates a listener config with a defined port for Postgres and Mongo.
SeparateMongoPortSetup generates a listener config with a defined port for MongoDB.
SeparatePostgresPortSetup generates a listener config with a defined port for Postgres.
SetTestTimeouts affects global timeouts inside Teleport, making connections work faster but consuming more CPU (useful for integration testing).
SetupUser sets up user in the cluster.
SetupUserCreds sets up user credentials for client.
SingleProxyPortSetup generates an InstanceConfig that allows proxying of multiple protocols over a single port.
SingleProxyPortSetupOn creates a constructor function that will in turn generate an InstanceConfig that allows proxying of multiple protocols over a single port when invoked.
StandardListenerSetup creates an InstanceListeners configures with each service listening on its own port, all bound to the loopback address.
StandardListenerSetupOn returns a InstanceListenerSetupFunc that will create a new InstanceListeners configured with each service listening on its own port, all bound to the supplied address.
No description provided by the author
TestMainImplementation will re-execute Teleport to run a command if "exec" is passed to it as an argument.
TryCreateTrustedCluster performs several attempts to create a trusted cluster, retries on connection problems and access denied errors to let caches propagate and services to start
Duplicated in tool/tsh/tsh_test.go.
TryUpdateTrustedCluster performs several attempts to update a trusted cluster, retries on connection problems and access denied errors to let caches propagate and services to start.
TryUpdateTrustedCluster performs several attempts to upsert a trusted cluster, retries on connection problems and access denied errors to let caches propagate and services to start.
UpsertAuthPrefAndWaitForCache upserts the authentication preference and waits until the auth server's cache contains the new value.
WaitForActiveTunnelConnections waits for remote cluster to report a minimum number of active connections.
No description provided by the author
No description provided by the author
No description provided by the author
WaitForProxyCount waits a set time for the proxy count in clusterName to reach some value.
WaitForTunnelConnections waits for remote tunnels connections.
WebReverseTunnelMuxPortSetup generates a listener config using the same port for web and tunnel, and independent ports for all other services.
WithLegacyKubeProxy enables the legacy kube proxy.
# Structs
AppCookies is a helper struct containing application session cookies parsed from a slice of cookies.
ClientConfig is a client configuration.
CommandOptions controls how the SSH command is built.
DiscardServer is a SSH server that discards SSH exec requests and starts with the passed in host signer.
DynamicServiceAddr collects listeners addresses and sockets descriptors allowing to create and network listeners and pass the file descriptors to teleport service.
No description provided by the author
InstanceConfig is an instance configuration.
InstanceListeners represents the listener configuration for a test cluster.
No description provided by the author
MockAWSALBProxy is a mock proxy server that simulates an AWS application load balancer where ALPN is not supported.
No description provided by the author
ProxyConfig is a set of configuration parameters for Proxy TODO(tcsc): Add file descriptor slice to inject FDs into proxy process.
TeleInstance represents an in-memory instance of a teleport process for testing.
TrustedClusterSetup is a grouping of configuration options describing the current trusted clusters being tested used for passing info about the clusters to be tested to helper functions.
No description provided by the author
UserCreds holds user client credentials.
UserCredsRequest is a request to generate user creds.
WebClient allows web sessions to be created as if they were from the UI.
WebClientPack is an authenticated HTTP Client for Teleport.
# Type aliases
InstanceListenerSetupFunc defines a function type used for specifying the listener setup for a given test.
Option is a functional option for configuring a ProxyConfig.
ProxyHandler is a http.Handler that implements a simple HTTP proxy server.