keypaths

package
v7.0.0-...-185e5fd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package keypaths defines several keypaths used by multiple Teleport services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppCertDir

func AppCertDir(baseDir, proxy, username, cluster string) string

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

func AppCertPath(baseDir, proxy, username, cluster, appname string) string

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

func AppDir(baseDir, proxy, username string) string

AppDir returns the path to the user's app directory for the given proxy.

<baseDir>/keys/<proxy>/<username>-app

func DatabaseCertDir

func DatabaseCertDir(baseDir, proxy, username, cluster string) string

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

func DatabaseCertPath(baseDir, proxy, username, cluster, dbname string) string

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

func DatabaseDir(baseDir, proxy, username string) string

DatabaseDir returns the path to the user's kube directory for the given proxy.

<baseDir>/keys/<proxy>/<username>-db

func IdentitySSHCertPath

func IdentitySSHCertPath(path string) string

IdentitySSHCertPath returns the path to the identity file's SSH certificate.

<identity-file-dir>/<path>-cert.pub

func KeyDir

func KeyDir(baseDir string) string

KeyDir returns the path to the keys directory.

<baseDir>/keys

func KnownHostsPath

func KnownHostsPath(baseDir string) string

KnownHostsPath returns the path to the known hosts file.

<baseDir>/known_hosts

func KubeCertDir

func KubeCertDir(baseDir, proxy, username, cluster string) string

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

func KubeCertPath(baseDir, proxy, username, cluster, kubename string) string

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

func KubeDir(baseDir, proxy, username string) string

KubeDir returns the path to the user's kube directory for the given proxy.

<baseDir>/keys/<proxy>/<username>-kube

func OldSSHCertPath

func OldSSHCertPath(baseDir, proxy, username string) string

OldSSHCertPath returns the old (before v6.1) path to the profile's ssh certificate. DELETE IN 8.0.0

func ProxyKeyDir

func ProxyKeyDir(baseDir, proxy string) string

ProxyKeyDir returns the path to the proxy's keys directory.

<baseDir>/keys/<proxy>

func SSHCAsPath

func SSHCAsPath(baseDir, proxy, username string) string

SSHCAsPath returns the path to the users's SSH CA's certificates for the given proxy.

<baseDir>/keys/<proxy>/<username>.pub

func SSHCertPath

func SSHCertPath(baseDir, proxy, username, cluster string) string

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

func SSHDir(baseDir, proxy, username string) string

SSHDir returns the path to the user's SSH directory for the given proxy.

<baseDir>/keys/<proxy>/<username>-ssh

func TLSCAsPath

func TLSCAsPath(baseDir, proxy string) string

CACertPath returns the path to the users's TLS CA's certificates for the given proxy.

<baseDir>/keys/<proxy>/certs.pem

func TLSCertPath

func TLSCertPath(baseDir, proxy, username string) string

TLSCertPath returns the path to the users's TLS certificate for the given proxy.

<baseDir>/keys/<proxy>/<username>-x509.pem

func TrimCertPathSuffix

func TrimCertPathSuffix(path string) string

TrimPathSuffix trims the suffix/extension off of the given cert path.

func UserKeyPath

func UserKeyPath(baseDir, proxy, username string) string

KeyPath returns the path to the users's private key for the given proxy.

<baseDir>/keys/<proxy>/<username>.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL