github.com/StackExchange/DNSControl@v0.2.8/pkg/acme/storage.go (about) 1 package acme 2 3 import "github.com/xenolf/lego/acme" 4 5 // Storage is an abstracrion around how certificates, keys, and account info are stored on disk or elsewhere. 6 type Storage interface { 7 // Get Existing certificate, or return nil if it does not exist 8 GetCertificate(name string) (*acme.CertificateResource, error) 9 StoreCertificate(name string, cert *acme.CertificateResource) error 10 11 GetAccount(acmeHost string) (*Account, error) 12 StoreAccount(acmeHost string, account *Account) error 13 }