Versions in this module Expand all Collapse all v0 v0.0.1 Apr 27, 2021 Changes in this version + var ReadFrom = tlsloader.ReadFrom + func WriteTo(s Storage, cb func(w io.Writer) error) (err error) + type Config struct + Bits uint16 + CertFile string + CommonName string + Duration time.Duration + FileMode os.FileMode + Hosts []string + KeyFile string + Organization []string + Storage *PairStorage + type Generator struct + func New(cfg Config, Log ...logging.Logger) *Generator + func (this *Generator) Generate(storage *PairStorage) (err error) + func (this *Generator) IsRunning() bool + func (this *Generator) LeftTime() time.Duration + func (this *Generator) Start(done func()) (stop task.Stoper, err error) + func (this *Generator) Stop() + func (this *Generator) UpdateIfNecessary() (err error) + type PairStorage struct + Cert Storage + Key Storage + func NewSafeFilePairStorage(certPath, keyPath string, mode ...os.FileMode) *PairStorage + type SafeFileStorage struct + Mode os.FileMode + func NewSafeFileStorage(path string, mode ...os.FileMode) *SafeFileStorage + func (this *SafeFileStorage) Writer() (io.WriteCloser, error) + type Storage interface + Writer func() (w io.WriteCloser, err error)