mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
* new abstraction around storage * re-work completely to fit new acme package pre-solving paradigm * vault storage plugin * add some vendor * delete old vendor pinning mechanism
13 lines
380 B
Go
13 lines
380 B
Go
package acme
|
|
|
|
import "github.com/xenolf/lego/acme"
|
|
|
|
type Storage interface {
|
|
// Get Existing certificate, or return nil if it does not exist
|
|
GetCertificate(name string) (*acme.CertificateResource, error)
|
|
StoreCertificate(name string, cert *acme.CertificateResource) error
|
|
|
|
GetAccount(acmeHost string) (*Account, error)
|
|
StoreAccount(acmeHost string, account *Account) error
|
|
}
|