package
3.2.17+incompatible
Repository: https://github.com/geoinstinct-web/teleport.git
Documentation: pkg.go.dev
# Packages
Package extensions provides the Teleport client with additional functionality such as the means for configuring access to extra services that may be supported by a teleport cluster.
# Functions
No description provided by the author
CurrentProfile returns the currently active client profile.
FullProfilePath returns the full path to the user profile directory.
GetTokenFromHOTPMockFile opens HOTPMock from file, gets token value, increases hotp and saves it to the file.
InsecureSkipHostKeyChecking is used when the user passes in "StrictHostKeyChecking yes".
No description provided by the author
No description provided by the author
MakeIdentityFile takes a username + their credentials and saves them to disk in a specified format.
No description provided by the author
NewClient creates a TeleportClient object and fully configures it.
NewFSLocalKeyStore creates a new filesystem-based local keystore object and initializes it.
No description provided by the author
NewKey generates a new unsigned key.
NewLocalAgent reads all Teleport certificates from disk (using FSLocalKeyStore), creates a LocalKeyAgent, loads all certificates into it, and returns the agent.
No description provided by the author
ParseDynamicPortForwardSpec parses the dynamic port forwarding spec passed in the -D flag.
ParseLabelSpec parses a string like 'name=value,"long name"="quoted value"` into a map like { "name" -> "value", "long name" -> "quoted value" }.
ParsePortForwardSpec parses parameter to -L flag, i.e.
Ping serves two purposes.
ProfileFromDir reads the user (yaml) profile from a given directory.
ProfileFromFile loads the profile from a YAML file.
ProxyHost returns the hostname of the proxy server (without any port numbers).
SSHAgentLogin issues call to web proxy and receives temp certificate if credentials are valid
proxyAddr must be specified as host:port.
SSHAgentSSOLogin is used by SSH Agent (tsh) to login using OpenID connect.
SSHAgentU2FLogin requests a U2F sign request (authentication challenge) via the proxy.
Status returns the active profile as well as a list of available profiles.
If there's a current profile symlink, remove it.
Username returns the current user's username.
# Constants
CurrentProfileSymlink is a filename which is a symlink to the current profile, usually something like this:
~/.tsh/profile -> ~/.tsh/staging.yaml
.
DefaultIdentityFormat is what Teleport uses by default.
FeatureDocker indicates that server provides Docker registry.
FeatureHelm indicates that server provides Helm repository.
HTTPS is https prefix.
IdentityFormatFile is when a key + cert are stored concatenated into a single file.
IdentityFormatOpenSSH is OpenSSH-compatible format, when a key and a cert are stored in two different files (in the same directory).
ProfileCreateNew creates new profile, but does not update current profile.
ProfileDir is a directory location where tsh profiles (and session keys) are stored.
ProfileMakeCurrent creates a new profile and makes it current.
WSS is secure web sockets prefix.
# Structs
PingResponse contains the form of authentication the auth server supports.
Benchmark specifies benchmark requests to run.
BenchmarkResult is a result of the benchmark.
CachePolicy defines cache policy for local clients.
CertAuthMethod is a wrapper around ssh.Signer (certificate signer) object.
ClientProfile is a collection of most frequently used CLI flags for "tsh".
Config is a client config.
CreateSSHCertReq are passed by web client to authenticate against teleport server and receive a temporary cert signed by auth server authority.
CreateSSHCertWithU2FReq are passed by web client to authenticate against teleport server and receive a temporary cert signed by auth server authority.
DynamicForwardedPort local port for dynamic application-level port forwarding.
ForwardedPort specifies local tunnel to remote destination managed by the client, is equivalent of ssh -L src:host:dst command.
FSLocalKeyStore implements LocalKeyStore interface using the filesystem.
GithubSettings contains the Name and Display string for Github connector.
HOTPMock is a HOTP that can be saved or load from file Using HOTPMock disables the hotp security level, don't use it in production.
Key describes a complete (signed) client key.
KubeProxySettings is kubernetes proxy settings.
LocalKeyAgent holds Teleport certificates for a user connected to a cluster.
NodeClient implements ssh client to a ssh node (teleport or any regular ssh node) NodeClient can run shell and commands or upload and download files.
No description provided by the author
OIDCSettings contains the Name and Display string for OIDC.
PingResponse contains data about the Teleport server like supported authentication types, server version, etc.
ProfileStatus combines metadata from the logged in profile and associated SSH certificate.
ProxyClient implements ssh client to a teleport proxy It can provide list of nodes or connect to nodes.
ProxySettings contains basic information about proxy settings.
SAMLSettings contains the Name and Display string for SAML.
SSHLogin contains SSH login parameters.
SSHProxySettings is SSH specific proxy settings.
SSOLoginConsoleReq is used to SSO for tsh.
SSOLoginConsoleResponse is a response to SSO console request.
TeleportClient is a wrapper around SSH client with teleport specific workflow built in.
U2FSettings contains the AppID for Universal Second Factor.
A request from the client for a U2F sign request from the server.
WebClient is a package local lightweight client used in tests and some functions to handle errors properly.
# Interfaces
LocalKeyStore interface allows for different storage backends for tsh to load/save its keys.
# Type aliases
DynamicForwardedPorts is a slice of locally forwarded dynamic ports (SOCKS5).
No description provided by the author
HostKeyCallback is called by SSH client when it needs to check remote host key or certificate validity.
IdentityFileFormat describes possible file formats how a user identity can be sotred.
No description provided by the author
ShellCreatedCallback can be supplied for every teleport client.