Versions in this module Expand all Collapse all v0 v0.1.0 Oct 20, 2019 Changes in this version + type CertPoolConfig struct + type CertPoolConstructor struct + Certificates *CertificateConstructor + func NewCertPoolConstructor() *CertPoolConstructor + func (c *CertPoolConstructor) New(ctx context.Context, conf *CertPoolConfig) (*x509.CertPool, error) + func (c *CertPoolConstructor) Settings() *CertPoolConfig + type CertificateByteConfig struct + Cert string + Key string + type CertificateByteConstructor struct + func NewCertificateByteConstructor() *CertificateByteConstructor + func (c *CertificateByteConstructor) New(ctx context.Context, conf *CertificateByteConfig) (tls.Certificate, error) + func (c *CertificateByteConstructor) Settings() *CertificateByteConfig + type CertificateConfig struct + Bytes []CertificateByteConfig + Files []CertificateFileConfig + type CertificateConstructor struct + Bytes *CertificateByteConstructor + Files *CertificateFileConstructor + func NewCertificateConstructor() *CertificateConstructor + func (c *CertificateConstructor) New(ctx context.Context, conf *CertificateConfig) ([]tls.Certificate, error) + func (c *CertificateConstructor) Settings() *CertificateConfig + type CertificateFileConfig struct + Cert string + Key string + type CertificateFileConstructor struct + func NewCertificateFileConstructor() *CertificateFileConstructor + func (c *CertificateFileConstructor) New(ctx context.Context, conf *CertificateFileConfig) (tls.Certificate, error) + func (c *CertificateFileConstructor) Settings() *CertificateFileConfig + type Config struct + Certificates *CertificateConfig + ClientAuth *string + ClientCAs *CertPoolConfig + InsecureSkipVerify *bool + Rand *RandConfig + RootCAs *CertPoolConfig + ServerName *string + type Constructor struct + Certificates *CertificateConstructor + ClientCAs *CertPoolConstructor + Rand *RandConstructor + RootCAs *CertPoolConstructor + func NewConstructor() *Constructor + func (c *Constructor) New(ctx context.Context, conf *Config) (*tls.Config, error) + func (c *Constructor) Settings() *Config + type RandConfig struct + Choice string + Crypto *RandCryptoConfig + Zero *RandZeroConfig + type RandConstructor struct + Crypto *RandCryptoConstructor + Zero *RandZeroConstructor + func NewRandConstructor() *RandConstructor + func (c *RandConstructor) New(ctx context.Context, conf *RandConfig) (io.Reader, error) + func (c *RandConstructor) Settings() *RandConfig + type RandCryptoConfig struct + type RandCryptoConstructor struct + func NewRandCryptoConstructor() *RandCryptoConstructor + func (c *RandCryptoConstructor) New(ctx context.Context, conf *RandCryptoConfig) (io.Reader, error) + func (c *RandCryptoConstructor) Settings() *RandCryptoConfig + type RandZeroConfig struct + type RandZeroConstructor struct + func NewRandZeroConstructor() *RandZeroConstructor + func (c *RandZeroConstructor) New(ctx context.Context, conf *RandZeroConfig) (io.Reader, error) + func (c *RandZeroConstructor) Settings() *RandZeroConfig