mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-12 02:17:43 +08:00
2ee086d41c
* switch to new go-acme imports from xenolf. Fix api changes * update many vault related dependencies
13 lines
490 B
Go
13 lines
490 B
Go
package acme
|
|
|
|
import "github.com/go-acme/lego/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
|
|
}
|