Documentation ¶
Index ¶
- type LetsEncryptError
- type Module
- func (m *Module) CleanUp(domain, token, keyAuth string) error
- func (m *Module) GetAllRegisteredDomains() ([]string, error)
- func (m *Module) GetRegistration(domain string, withPrivateKey bool) (*Registration, error)
- func (m *Module) Init(c *service.Config)
- func (m *Module) LoadCertResource(domain string) (*acme.CertificateResource, error)
- func (m *Module) ObtainCert(email, domain string) error
- func (m *Module) Present(domain, token, keyAuth string) error
- func (m *Module) SaveRegistration(r *Registration) error
- func (m *Module) ServeHTTP(rw http.ResponseWriter, req *http.Request)
- type Registration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LetsEncryptError ¶
type LetsEncryptError struct {
// contains filtered or unexported fields
}
type Module ¶
type Module struct { Config *config.Module Router *router.Module Logger *logger.Module // contains filtered or unexported fields }
func (*Module) GetAllRegisteredDomains ¶
func (*Module) GetRegistration ¶
func (m *Module) GetRegistration(domain string, withPrivateKey bool) (*Registration, error)
GetRegistration from the tls dir.
func (*Module) LoadCertResource ¶
func (m *Module) LoadCertResource(domain string) (*acme.CertificateResource, error)
LoadCertResource will return the CertificateResource if it exists on the disk, else nil.
func (*Module) ObtainCert ¶
func (*Module) SaveRegistration ¶
func (m *Module) SaveRegistration(r *Registration) error
type Registration ¶
type Registration struct { Email string `json:"email"` AgreedOn string `json:"agreed_on"` Domain string `json:"domain"` Registration *acme.RegistrationResource `json:"registration"` // contains filtered or unexported fields }
func (*Registration) GetEmail ¶
func (r *Registration) GetEmail() string
func (*Registration) GetPrivateKey ¶
func (r *Registration) GetPrivateKey() crypto.PrivateKey
func (*Registration) GetRegistration ¶
func (r *Registration) GetRegistration() *acme.RegistrationResource
Click to show internal directories.
Click to hide internal directories.