Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientFlagsConfig ¶
type ClientFlagsConfig struct {
Prefix string
}
ClientFlagsConfig describes which CLI flags for TLS client should be generated.
func (ClientFlagsConfig) AddFlags ¶
func (c ClientFlagsConfig) AddFlags(flags *flag.FlagSet)
AddFlags adds flags for TLS to the FlagSet.
func (ClientFlagsConfig) InitFromViper ¶
func (c ClientFlagsConfig) InitFromViper(v *viper.Viper) Options
InitFromViper creates tls.Config populated with values retrieved from Viper.
type Options ¶
type Options struct { Enabled bool `mapstructure:"enabled"` CAPath string `mapstructure:"ca"` CertPath string `mapstructure:"cert"` KeyPath string `mapstructure:"key"` ServerName string `mapstructure:"server_name"` // only for client-side TLS config ClientCAPath string `mapstructure:"client_ca"` // only for server-side TLS config for client auth SkipHostVerify bool `mapstructure:"skip_host_verify"` // contains filtered or unexported fields }
Options describes the configuration properties for TLS Connections.
type ServerFlagsConfig ¶
type ServerFlagsConfig struct {
Prefix string
}
ServerFlagsConfig describes which CLI flags for TLS server should be generated.
func (ServerFlagsConfig) AddFlags ¶
func (c ServerFlagsConfig) AddFlags(flags *flag.FlagSet)
AddFlags adds flags for TLS to the FlagSet.
func (ServerFlagsConfig) InitFromViper ¶
func (c ServerFlagsConfig) InitFromViper(v *viper.Viper) Options
InitFromViper creates tls.Config populated with values retrieved from Viper.
Click to show internal directories.
Click to hide internal directories.