Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeResponse ¶
DecodeResponse decodes a shell response string to a JSON response.
func ResponseToJSONString ¶
ResponseToJSONString converts a shell response string to a JSON string.
Types ¶
type Client ¶
type Client struct {
*Config
}
type Config ¶
type Config struct { Host string Port int TLSEnabled bool TLSCertificateKeyFile string TLSCAFile string }
Config stores server configuration parammeters.
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
NewDefaultConfig returns a default configuration instance.
func (*Config) SetTLSCAFile ¶ added in v1.1.2
SetTLSCAFile sets a TLS CA file.
func (*Config) SetTLSCertificateKeyFile ¶ added in v1.1.2
SetTLSCertificateKeyFile sets a TLS certificate key file.
func (*Config) SetTLSEnabled ¶ added in v1.1.2
SetTLSEnabled sets a TLS enabled flag.
Click to show internal directories.
Click to hide internal directories.