2018-03-05 20:54:04 +01:00
|
|
|
package acme
|
|
|
|
|
2019-07-19 11:52:04 +02:00
|
|
|
// StoredData represents the data managed by Store.
|
2018-03-05 20:54:04 +01:00
|
|
|
type StoredData struct {
|
2019-07-19 11:52:04 +02:00
|
|
|
Account *Account
|
|
|
|
Certificates []*CertAndStore
|
|
|
|
}
|
|
|
|
|
|
|
|
// Store is a generic interface that represents a storage.
|
2018-03-05 20:54:04 +01:00
|
|
|
type Store interface {
|
2023-11-17 01:50:06 +01:00
|
|
|
GetAccount(resolverName string) (*Account, error)
|
|
|
|
SaveAccount(resolverName string, account *Account) error
|
|
|
|
GetCertificates(resolverName string) ([]*CertAndStore, error)
|
|
|
|
SaveCertificates(resolverName string, certificates []*CertAndStore) error
|
2019-07-19 11:52:04 +02:00
|
|
|
}
|