dnscontrol/pkg/acme/storage.go
Jauder Ho e0ef3cbde5
GET-CERTS: Bump github.com/go-acme/lego to v4 to resolve security issues with go-jose (#3169)
Signed-off-by: Jauder Ho <jauderho@users.noreply.github.com>
2024-10-28 11:38:12 -04:00

13 lines
493 B
Go

package acme
import "github.com/go-acme/lego/v4/certificate"
// Storage is an abstracrion around how certificates, keys, and account info are stored on disk or elsewhere.
type Storage interface {
// Get Existing certificate, or return nil if it does not exist
GetCertificate(name string) (*certificate.Resource, error)
StoreCertificate(name string, cert *certificate.Resource) error
GetAccount(acmeHost string) (*Account, error)
StoreAccount(acmeHost string, account *Account) error
}