Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultConfigFileName = ".teleconsolerc" DefaultServerHost = "teleconsole.com" DefaultServerPort = "443" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // APIEndpointURL is the API of the Teleconsole server API APIEndpointURL *url.URL // Verbosity defines the level of debugging output (greater means // more output) Verbosity int // when set, it means that instead of launching shell, another // command is launched RunCommand string // command line arguments Args []string // if 'true', the client will trust unknown SSL certificates // can be set via -insecure flag InsecureHTTPS bool // Ports to forward ForwardPorts []client.ForwardedPort // Forward-by-invite: ForwardPort *client.ForwardedPort // IdentityFile contains a full file path of the SSH key file to use. // For "start session" it points to a public key, but for "join" it // points to a private key. IdentityFile string }
Config stores the configuration of Teleconsole process
func (*Config) GetEndpointHost ¶
GetEndpointHost returns the hostname of the Teleconsole server endpoint (without port)
func (*Config) SetEndpointHost ¶
SetEndpointHost sets the Teleconsole server host:port pair to the configuration
Click to show internal directories.
Click to hide internal directories.