certmanager

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 24 Imported by: 0

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

func (*Scheduler) Run

func (s *Scheduler) Run(ctx context.Context) error

Run the periodic renewal checks

type User

type User struct {
	Email        string
	Registration *registration.Resource
	// contains filtered or unexported fields
}

User implements the lego registration.User interface

func (*User) GetEmail

func (u *User) GetEmail() string

func (*User) GetPrivateKey

func (u *User) GetPrivateKey() crypto.PrivateKey

func (*User) GetRegistration

func (u *User) GetRegistration() *registration.Resource

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL