Versions in this module Expand all Collapse all v1 v1.2.1 Aug 25, 2016 Changes in this version + const DefaultCertPath + const DefaultClientCAPath + const MaxSize + func TLSConfig(src Source) (*tls.Config, error) + type ConsulSource struct + CAUpgradeCN string + CertURL string + ClientCAURL string + func (s ConsulSource) Certificates() chan []tls.Certificate + func (s ConsulSource) LoadClientCAs() (*x509.CertPool, error) + type FileSource struct + CAUpgradeCN string + CertFile string + ClientAuthFile string + KeyFile string + func (s FileSource) Certificates() chan []tls.Certificate + func (s FileSource) LoadClientCAs() (*x509.CertPool, error) + type HTTPSource struct + CAUpgradeCN string + CertURL string + ClientCAURL string + Refresh time.Duration + func (s HTTPSource) Certificates() chan []tls.Certificate + func (s HTTPSource) LoadClientCAs() (*x509.CertPool, error) + type PathSource struct + CAUpgradeCN string + CertPath string + ClientCAPath string + Path string + Refresh time.Duration + func (s PathSource) Certificates() chan []tls.Certificate + func (s PathSource) LoadClientCAs() (*x509.CertPool, error) + type Source interface + Certificates func() chan []tls.Certificate + LoadClientCAs func() (*x509.CertPool, error) + func NewSource(cfg config.CertSource) (Source, error) + type Store struct + func NewStore() *Store + func (s *Store) GetCertificate(clientHello *tls.ClientHelloInfo) (cert *tls.Certificate, err error) + func (s *Store) SetCertificates(certs []tls.Certificate) + type VaultSource struct + Addr string + CAUpgradeCN string + CertPath string + ClientCAPath string + Refresh time.Duration + func (s VaultSource) Certificates() chan []tls.Certificate + func (s VaultSource) LoadClientCAs() (*x509.CertPool, error)