Add internal provider
Co-authored-by: Julien Salleyron <julien.salleyron@gmail.com>
This commit is contained in:
parent
2ee2e29262
commit
424e2a9439
71 changed files with 2523 additions and 1469 deletions
|
@ -15,6 +15,9 @@ import (
|
|||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// DefaultTLSOptions the default TLS options.
|
||||
var DefaultTLSOptions = Options{}
|
||||
|
||||
// Manager is the TLS option/store/configuration factory
|
||||
type Manager struct {
|
||||
storesConfig map[string]Store
|
||||
|
@ -27,7 +30,12 @@ type Manager struct {
|
|||
|
||||
// NewManager creates a new Manager
|
||||
func NewManager() *Manager {
|
||||
return &Manager{}
|
||||
return &Manager{
|
||||
stores: map[string]*CertificateStore{},
|
||||
configs: map[string]Options{
|
||||
"default": DefaultTLSOptions,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
// UpdateConfigs updates the TLS* configuration options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue