...
Package config
Overview ▹
Index ▹
type TLSConfig ¶
TLSConfig configures the options for TLS connections.
type TLSConfig struct {
// The CA cert to use for the targets.
CAFile string `yaml:"ca_file,omitempty"`
// The client cert file for the targets.
CertFile string `yaml:"cert_file,omitempty"`
// The client key file for the targets.
KeyFile string `yaml:"key_file,omitempty"`
// Disable target certificate validation.
InsecureSkipVerify bool `yaml:"insecure_skip_verify"`
// Catches all undefined fields and must be empty after parsing.
XXX map[string]interface{} `yaml:",inline"`
}
func (*TLSConfig) GenerateConfig ¶
func (c *TLSConfig) GenerateConfig() (*tls.Config, error)
GenerateConfig produces a tls.Config based on TLS connection options. It loads certificate files from disk if they are defined.
func (*TLSConfig) UnmarshalYAML ¶
func (c *TLSConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the yaml.Unmarshaler interface.
ActiveGo 1.8