Documentation ¶
Index ¶
- type ClientConfig
- func (cfg *ClientConfig) GetGRPCDialOptions(enabled bool) ([]grpc.DialOption, error)
- func (cfg *ClientConfig) GetTLSCipherSuitesLongDescription() string
- func (cfg *ClientConfig) GetTLSCipherSuitesShortDescription() string
- func (cfg *ClientConfig) GetTLSConfig() (*tls.Config, error)
- func (cfg *ClientConfig) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet)
- type SecretReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type ClientConfig struct { CertPath string `yaml:"tls_cert_path" category:"advanced"` KeyPath string `yaml:"tls_key_path" category:"advanced"` CAPath string `yaml:"tls_ca_path" category:"advanced"` ServerName string `yaml:"tls_server_name" category:"advanced"` InsecureSkipVerify bool `yaml:"tls_insecure_skip_verify" category:"advanced"` CipherSuites string `yaml:"tls_cipher_suites" category:"advanced" doc:"description_method=GetTLSCipherSuitesLongDescription"` MinVersion string `yaml:"tls_min_version" category:"advanced"` Reader SecretReader `yaml:"-"` }
ClientConfig is the config for client TLS.
func (*ClientConfig) GetGRPCDialOptions ¶
func (cfg *ClientConfig) GetGRPCDialOptions(enabled bool) ([]grpc.DialOption, error)
GetGRPCDialOptions creates GRPC DialOptions for TLS
func (*ClientConfig) GetTLSCipherSuitesLongDescription ¶
func (cfg *ClientConfig) GetTLSCipherSuitesLongDescription() string
func (*ClientConfig) GetTLSCipherSuitesShortDescription ¶
func (cfg *ClientConfig) GetTLSCipherSuitesShortDescription() string
func (*ClientConfig) GetTLSConfig ¶
func (cfg *ClientConfig) GetTLSConfig() (*tls.Config, error)
GetTLSConfig initialises tls.Config from config options
func (*ClientConfig) RegisterFlagsWithPrefix ¶
func (cfg *ClientConfig) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet)
RegisterFlagsWithPrefix registers flags with prefix.
type SecretReader ¶
Click to show internal directories.
Click to hide internal directories.