package
0.0.0-20250306163500-5f3bb2705e1f
Repository: https://github.com/versoriumx/teleport.git
Documentation: pkg.go.dev
# Functions
ConvertCommandError translates some common errors to more user friendly messages.
No description provided by the author
WithExecer allows to provide a different Execer than the default SystemExecer.
WithLocalProxy makes CLICommandBuilder pass appropriate args to the CLI database clients that will let them connect to a database through a local proxy.
WithLogger is the connect command option that allows the caller to pass a logger that will be used by CLICommandBuilder.
WithNoTLS is the connect command option that makes the command connect without TLS.
WithPassword is the command option that allows to set the database password that will be used for database CLI.
WithPrintFormat is the connect command option that hints the command will be printed instead of being executed.
WithTolerateMissingCLIClient is the connect command option that makes CLICommandBuilder not return an error in case a specific binary couldn't be found in the system.
# Constants
PeakStderrSize is the recommended size for capturing stderr that is used for ConvertCommandError.
# Structs
CLICommandBuilder holds data needed to build a CLI command from args passed to NewCmdBuilder.
CommandAlternative represents alternative command along with description.
SystemExecer implements execer interface by using Go exec module.
# Interfaces
Execer is an abstraction of Go's exec module, as this one doesn't specify any interfaces.
# Type aliases
ConnectCommandFunc is a type for functions returned by the "With*" functions in this package.