Documentation
¶
Overview ¶
Package keypaths defines several keypaths used by multiple Teleport services.
Index ¶
- func AppCertDir(baseDir, proxy, username, cluster string) string
- func AppCertPath(baseDir, proxy, username, cluster, appname string) string
- func AppDir(baseDir, proxy, username string) string
- func DatabaseCertDir(baseDir, proxy, username, cluster string) string
- func DatabaseCertPath(baseDir, proxy, username, cluster, dbname string) string
- func DatabaseDir(baseDir, proxy, username string) string
- func IdentitySSHCertPath(path string) string
- func KeyDir(baseDir string) string
- func KnownHostsPath(baseDir string) string
- func KubeCertDir(baseDir, proxy, username, cluster string) string
- func KubeCertPath(baseDir, proxy, username, cluster, kubename string) string
- func KubeDir(baseDir, proxy, username string) string
- func OldSSHCertPath(baseDir, proxy, username string) string
- func ProxyKeyDir(baseDir, proxy string) string
- func SSHCAsPath(baseDir, proxy, username string) string
- func SSHCertPath(baseDir, proxy, username, cluster string) string
- func SSHDir(baseDir, proxy, username string) string
- func TLSCAsPath(baseDir, proxy string) string
- func TLSCertPath(baseDir, proxy, username string) string
- func TrimCertPathSuffix(path string) string
- func UserKeyPath(baseDir, proxy, username string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppCertDir ¶
AppCertDir returns the path to the user's app cert directory for the given proxy and cluster.
<baseDir>/keys/<proxy>/<username>-app/<cluster>
func AppCertPath ¶
AppCertPath returns the path to the user's TLS certificate for the given proxy, cluster, and app.
<baseDir>/keys/<proxy>/<username>-app/<cluster>/<appname>-x509.pem
func AppDir ¶
AppDir returns the path to the user's app directory for the given proxy.
<baseDir>/keys/<proxy>/<username>-app
func DatabaseCertDir ¶
DatabaseCertDir returns the path to the user's kube cert directory for the given proxy and cluster.
<baseDir>/keys/<proxy>/<username>-db/<cluster>
func DatabaseCertPath ¶
DatabaseCertPath returns the path to the user's TLS certificate for the given proxy, cluster, and kube cluster.
<baseDir>/keys/<proxy>/<username>-db/<cluster>/<dbname>-x509.pem
func DatabaseDir ¶
DatabaseDir returns the path to the user's kube directory for the given proxy.
<baseDir>/keys/<proxy>/<username>-db
func IdentitySSHCertPath ¶
IdentitySSHCertPath returns the path to the identity file's SSH certificate.
<identity-file-dir>/<path>-cert.pub
func KnownHostsPath ¶
KnownHostsPath returns the path to the known hosts file.
<baseDir>/known_hosts
func KubeCertDir ¶
KubeCertDir returns the path to the user's kube cert directory for the given proxy and cluster.
<baseDir>/keys/<proxy>/<username>-kube/<cluster>
func KubeCertPath ¶
KubeCertPath returns the path to the user's TLS certificate for the given proxy, cluster, and kube cluster.
<baseDir>/keys/<proxy>/<username>-kube/<cluster>/<kubename>-x509.pem
func KubeDir ¶
KubeDir returns the path to the user's kube directory for the given proxy.
<baseDir>/keys/<proxy>/<username>-kube
func OldSSHCertPath ¶
OldSSHCertPath returns the old (before v6.1) path to the profile's ssh certificate. DELETE IN 8.0.0
func ProxyKeyDir ¶
ProxyKeyDir returns the path to the proxy's keys directory.
<baseDir>/keys/<proxy>
func SSHCAsPath ¶
SSHCAsPath returns the path to the users's SSH CA's certificates for the given proxy.
<baseDir>/keys/<proxy>/<username>.pub
func SSHCertPath ¶
SSHCertPath returns the path to the users's SSH certificate for the given proxy and cluster.
<baseDir>/keys/<proxy>/<username>-ssh/<cluster>-cert.pub
func SSHDir ¶
SSHDir returns the path to the user's SSH directory for the given proxy.
<baseDir>/keys/<proxy>/<username>-ssh
func TLSCAsPath ¶
CACertPath returns the path to the users's TLS CA's certificates for the given proxy.
<baseDir>/keys/<proxy>/certs.pem
func TLSCertPath ¶
TLSCertPath returns the path to the users's TLS certificate for the given proxy.
<baseDir>/keys/<proxy>/<username>-x509.pem
func TrimCertPathSuffix ¶
TrimPathSuffix trims the suffix/extension off of the given cert path.
func UserKeyPath ¶
KeyPath returns the path to the users's private key for the given proxy.
<baseDir>/keys/<proxy>/<username>.
Types ¶
This section is empty.