Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertManager ¶
type CertManager interface {
ObtainCertificate(ctx context.Context, domain string) (cert *storage.Certificate, cached bool, err error)
RenewCertificate(ctx context.Context, domain string) (*storage.Certificate, error)
RenewExpiringCertificates(ctx context.Context) error
}
CertManager handles certificate acquisition and renewal
func NewCertManager ¶
func NewCertManager(store *storage.Storage, appMetrics *metrics.AppMetrics) CertManager
NewCertManager creates a new certificate manager
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler handles periodic certificate renewal checks
func NewScheduler ¶
func NewScheduler(manager CertManager, checkInterval time.Duration) *Scheduler
NewScheduler creates a new renewal scheduler
type User ¶
type User struct {
Email string
Registration *registration.Resource
// contains filtered or unexported fields
}
User implements the lego registration.User interface
func (*User) GetPrivateKey ¶
func (u *User) GetPrivateKey() crypto.PrivateKey
func (*User) GetRegistration ¶
func (u *User) GetRegistration() *registration.Resource
Click to show internal directories.
Click to hide internal directories.