Documentation ¶
Index ¶
- Constants
- func CheckTSHSupported(w *Wrapper) error
- func GetDestinationDirectory(botConfig *config.BotConfig) (*config.DestinationDirectory, error)
- func GetEnvForTSH(destPath string) (map[string]string, error)
- func GetTSHVersion(w *Wrapper) (*semver.Version, error)
- func LoadIdentity(identityPath string) (*tlsca.Identity, error)
- type Wrapper
Constants ¶
View Source
const ( // TSHVarName is the name of the environment variable that can override the // tsh path that would otherwise be located on the $PATH. TSHVarName = "TSH" // TSHMinVersion is the minimum version of tsh that supports Machine ID // proxies. TSHMinVersion = "9.3.0" )
Variables ¶
This section is empty.
Functions ¶
func CheckTSHSupported ¶
CheckTSHSupported checks if the current tsh supports Machine ID.
func GetDestinationDirectory ¶
func GetDestinationDirectory(botConfig *config.BotConfig) (*config.DestinationDirectory, error)
GetDestinationDirectory attempts to select an unambiguous destination, either from CLI or YAML config. It returns an error if the selected destination is invalid.
func GetEnvForTSH ¶
GetEnvForTSH returns a map of environment variables needed to properly wrap tsh so that it uses our Machine ID certificates where necessary.
func GetTSHVersion ¶
GetTSHVersion queries the system tsh for its version.
Types ¶
Click to show internal directories.
Click to hide internal directories.