mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
switch to new go-acme imports from xenolf. Fix api changes (#540)
* switch to new go-acme imports from xenolf. Fix api changes * update many vault related dependencies
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
package acme
|
||||
|
||||
import "github.com/xenolf/lego/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) (*acme.CertificateResource, error)
|
||||
StoreCertificate(name string, cert *acme.CertificateResource) error
|
||||
GetCertificate(name string) (*certificate.Resource, error)
|
||||
StoreCertificate(name string, cert *certificate.Resource) error
|
||||
|
||||
GetAccount(acmeHost string) (*Account, error)
|
||||
StoreAccount(acmeHost string, account *Account) error
|
||||
|
Reference in New Issue
Block a user