mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Abstraction for Certificate Storage (+ vault storage) (#406)
* 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
This commit is contained in:
12
pkg/acme/storage.go
Normal file
12
pkg/acme/storage.go
Normal file
@ -0,0 +1,12 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user