github.com/teknogeek/dnscontrol/v2@v2.10.1-0.20200227202244-ae299b55ba42/pkg/acme/storage.go (about)

     1  package acme
     2  
     3  import "github.com/go-acme/lego/certificate"
     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) (*certificate.Resource, error)
     9  	StoreCertificate(name string, cert *certificate.Resource) error
    10  
    11  	GetAccount(acmeHost string) (*Account, error)
    12  	StoreAccount(acmeHost string, account *Account) error
    13  }