Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecurityType ¶
type SecurityType string
SecurityType is the enum type of available security modes
const ( // TypeInsecure is the insecure security mode and it is the default value TypeInsecure SecurityType = "insecure" // TypeTLS is the TLS security mode, which requires caller to provide // credentials to connect to peer TypeTLS = "tls" )
type ServerConfig ¶
type ServerConfig struct { RealAddress string `yaml:"real_address"` Security SecurityType `yaml:"security"` CredentialFile string `yaml:"credential_file"` ServerNameOverride string `yaml:"server_name_override"` }
ServerConfig is the configuration for how to connect to a target
func GetServerConfig ¶
func GetServerConfig(target string) ServerConfig
GetServerConfig returns a connect configuration for the given target
Click to show internal directories.
Click to hide internal directories.