Documentation ¶ Index ¶ func NewConfig(t Type, data *userdata.OSSecurity) (config *tls.Config, err error) type Type Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewConfig ¶ func NewConfig(t Type, data *userdata.OSSecurity) (config *tls.Config, err error) NewConfig initializes a TLS config for the specified type. Types ¶ type Type ¶ type Type int Type represents the TLS authentication type. const ( // Mutual configures the server's policy for TLS Client Authentication to // mutual TLS. Mutual Type = 1 << iota // ServerOnly configures the server's policy for TLS Client Authentication // to server only. ServerOnly ) Source Files ¶ View all Source files tls.go Click to show internal directories. Click to hide internal directories.