Versions in this module Expand all Collapse all v0 v0.9.3 Mar 31, 2024 Changes in this version + type Account struct + Email string + Registration *registration.Resource + func (a *Account) GetEmail() string + func (a *Account) GetPrivateKey() crypto.PrivateKey + func (a *Account) GetRegistration() *registration.Resource + type AccountsStorage struct + func NewAccountsStorage(l *LegoCMD) *AccountsStorage + func (s *AccountsStorage) ExistsAccountFilePath() bool + func (s *AccountsStorage) GetPrivateKey(keyType certcrypto.KeyType) crypto.PrivateKey + func (s *AccountsStorage) GetRootPath() string + func (s *AccountsStorage) GetRootUserPath() string + func (s *AccountsStorage) GetUserID() string + func (s *AccountsStorage) LoadAccount(privateKey crypto.PrivateKey) *Account + func (s *AccountsStorage) Save(account *Account) error + type CertConfig struct + CertDomain string + CertFile string + CertMode string + DNSEnv map[string]string + Email string + KeyFile string + Provider string + RejectUnknownSni bool + type CertificatesStorage struct + func NewCertificatesStorage(path string) *CertificatesStorage + func (s *CertificatesStorage) CreateRootFolder() + func (s *CertificatesStorage) ExistsFile(domain, extension string) bool + func (s *CertificatesStorage) GetFileName(domain, extension string) string + func (s *CertificatesStorage) GetRootPath() string + func (s *CertificatesStorage) ReadCertificate(domain, extension string) ([]*x509.Certificate, error) + func (s *CertificatesStorage) ReadFile(domain, extension string) ([]byte, error) + func (s *CertificatesStorage) ReadResource(domain string) certificate.Resource + func (s *CertificatesStorage) SaveResource(certRes *certificate.Resource) + func (s *CertificatesStorage) WriteFile(domain, extension string, data []byte) error + type LegoCMD struct + C *CertConfig + func New(certConf *CertConfig) (*LegoCMD, error) + func (l *LegoCMD) DNSCert() (CertPath string, KeyPath string, err error) + func (l *LegoCMD) HTTPCert() (CertPath string, KeyPath string, err error) + func (l *LegoCMD) Renew() (bool, error) + func (l *LegoCMD) RenewCert() (CertPath string, KeyPath string, ok bool, err error) + func (l *LegoCMD) Run() error