Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitProviders ¶
func InitProviders(tlsconfig *tls.Config, configChannel *chan int, configuration *configuration.Configuration)
InitProviders function allow to init certificates and be able to exploit data as needed
Types ¶
type AccountAcmeFile ¶
type AccountAcmeFile struct { Email string `json:"Email"` KeyType string `json:"KeyType"` PrivateKey string `json:"PrivateKey"` Registration RegistrationAcmeFile `json:"Registration"` }
AccountAcmeFile structure is composed of Email, KeyType, PrivateKey, Registration
type AcmeFile ¶
type AcmeFile struct { Account AccountAcmeFile `json:"Account"` Certificates []CertificateAcmeFile `json:"Certificates"` }
AcmeFile structure is Træfik acme.json hierarchy
type BodyAcmeFile ¶
BodyAcmeFile structure is composed of Contact, Status
type Certificate ¶
type Certificate struct {
// contains filtered or unexported fields
}
Certificate contains key:certificate combo
type CertificateAcmeFile ¶
type CertificateAcmeFile struct { Certificate string `json:"Certificate"` Domain DomainAcmeFile `json:"Domain"` Key string `json:"Key"` }
CertificateAcmeFile structure is composed of Certificate, DomainAcmeFile and Key
type CommonProvider ¶
type CommonProvider struct { Certificates map[string]Certificate // contains filtered or unexported fields }
CommonProvider contains a Certificate map
func (*CommonProvider) InitWatcher ¶
func (c *CommonProvider) InitWatcher(tlsconfig *tls.Config, configChannel *chan int)
InitWatcher will start watcher on one ssl aggregator file
func (*CommonProvider) LoadFromConfigFile ¶
func (c *CommonProvider) LoadFromConfigFile(tlsconfig *tls.Config, configChannel *chan int)
LoadFromConfigFile load SSL certs from one file by provider
type DomainAcmeFile ¶
DomainAcmeFile structure is composed of DNS Main and SANs
type RegistrationAcmeFile ¶
type RegistrationAcmeFile struct { Body BodyAcmeFile `json:"body"` URI string `json:"uri"` }
RegistrationAcmeFile structure is composed of Body, URI