Documentation ¶
Index ¶
- Variables
- type Certs
- func (c *Certs) Delete(cert *tls.Certificate) error
- func (c *Certs) Get(domain string) (cert *tls.Certificate, err error)
- func (c *Certs) GetCertificate(hello *tls.ClientHelloInfo) (*tls.Certificate, error)
- func (c *Certs) HTTPChallengeHandler(h http.Handler) http.Handler
- func (c *Certs) LoadCertsFromConfig(pems []PEMCert)
- func (c *Certs) Reload(cfg *Config)
- func (c *Certs) Store(cert tls.Certificate) error
- func (c *Certs) TLSConfig() *tls.Config
- type Config
- type PEMCert
- type Storage
- func (s *Storage) Delete(key string) (err error)
- func (s *Storage) Exists(key string) bool
- func (s *Storage) List(prefix string, recursive bool) ([]string, error)
- func (s *Storage) Load(key string) ([]byte, error)
- func (s *Storage) Lock(key string) (err error)
- func (s *Storage) Stat(key string) (certmagic.KeyInfo, error)
- func (s *Storage) Store(key string, value []byte) (err error)
- func (s *Storage) Unlock(key string) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCertExpired = errors.New("Certificate expired") ErrCertNotFound = errors.New("Certificate not found") )
View Source
var (
ErrCacheKeyNotFound = errors.New("Key not found")
)
Functions ¶
This section is empty.
Types ¶
type Certs ¶
func (*Certs) Get ¶
func (c *Certs) Get(domain string) (cert *tls.Certificate, err error)
Get gets a valid Certificate struct from a domain name
func (*Certs) GetCertificate ¶
func (c *Certs) GetCertificate(hello *tls.ClientHelloInfo) (*tls.Certificate, error)
func (*Certs) HTTPChallengeHandler ¶
func (*Certs) LoadCertsFromConfig ¶
Click to show internal directories.
Click to hide internal directories.