2018-03-05 19:54:04 +00:00
|
|
|
package acme
|
|
|
|
|
|
|
|
// StoredData represents the data managed by the Store
|
|
|
|
type StoredData struct {
|
|
|
|
Account *Account
|
|
|
|
Certificates []*Certificate
|
|
|
|
HTTPChallenges map[string]map[string][]byte
|
|
|
|
}
|
|
|
|
|
|
|
|
// Store is a generic interface to represents a storage
|
|
|
|
type Store interface {
|
|
|
|
GetAccount() (*Account, error)
|
|
|
|
SaveAccount(*Account) error
|
|
|
|
GetCertificates() ([]*Certificate, error)
|
|
|
|
SaveCertificates([]*Certificate) error
|
2018-07-09 21:28:03 +00:00
|
|
|
GetHTTPChallengeToken(token, domain string) ([]byte, error)
|
|
|
|
SetHTTPChallengeToken(token, domain string, keyAuth []byte) error
|
|
|
|
RemoveHTTPChallengeToken(token, domain string) error
|
2018-03-05 19:54:04 +00:00
|
|
|
}
|