Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { CertPath string `yaml:"cert_path" json:"cert_path"` KeyPath string `yaml:"key_path" json:"key_path"` CAPath string `yaml:"ca_path" json:"ca_path"` ServerName string `yaml:"server_name" json:"server_name"` InsecureSkipVerify bool `yaml:"insecure_skip_verify" json:"insecure_skip_verify"` }
Config is the config for client TLS.
func (*Config) GetGRPCDialOptions ¶
func (cfg *Config) GetGRPCDialOptions(enabled bool) ([]grpc.DialOption, error)
GetGRPCDialOptions creates GRPC DialOptions for TLS
func (*Config) GetTLSConfig ¶
GetTLSConfig initialises tls.Config from config options
func (*Config) ParseFlags ¶
ParseFlags parse flags with prefix.
Click to show internal directories.
Click to hide internal directories.