Documentation
¶
Index ¶
- Variables
- func WriteTo(s Storage, cb func(w io.Writer) error) (err error)
- type Config
- type 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
- type SafeFileStorage
- type Storage
Constants ¶
This section is empty.
Variables ¶
View Source
var ReadFrom = tlsloader.ReadFrom
Functions ¶
Types ¶
type Config ¶
type Config struct {
CommonName string `mapstructure:"common_name"`
Organization []string `mapstructure:"organization"`
Hosts []string `mapstructure:"hosts"`
CertFile string `mapstructure:"cert_file"`
KeyFile string `mapstructure:"key_file"`
FileMode os.FileMode `mapstructure:"file_mode"`
Duration time.Duration `mapstructure:"duration"`
Bits uint16 `mapstructure:"bits"`
Storage *PairStorage
}
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (*Generator) Generate ¶
func (this *Generator) Generate(storage *PairStorage) (err error)
func (*Generator) UpdateIfNecessary ¶
type PairStorage ¶
type PairStorage struct {
Cert, Key Storage
}
func NewSafeFilePairStorage ¶
func NewSafeFilePairStorage(certPath, keyPath string, mode ...os.FileMode) *PairStorage
type SafeFileStorage ¶
type SafeFileStorage struct {
tlsloader.FileStorage
Mode os.FileMode
}
func NewSafeFileStorage ¶
func NewSafeFileStorage(path string, mode ...os.FileMode) *SafeFileStorage
func (*SafeFileStorage) Writer ¶
func (this *SafeFileStorage) Writer() (io.WriteCloser, error)
Click to show internal directories.
Click to hide internal directories.