orchid/renewal/account.go

19 lines
513 B
Go
Raw Permalink Normal View History

2023-06-26 11:56:21 +01:00
package renewal
import (
"crypto"
"github.com/go-acme/lego/v4/registration"
)
2023-07-03 16:27:24 +01:00
// Account stores the information required for the lego library to use the
// LetsEncrypt account details.
2023-06-26 11:56:21 +01:00
type Account struct {
email string
reg *registration.Resource
key crypto.PrivateKey
}
func (a *Account) GetEmail() string { return a.email }
func (a *Account) GetRegistration() *registration.Resource { return a.reg }
func (a *Account) GetPrivateKey() crypto.PrivateKey { return a.key }