traefik/pkg/provider/acme/store.go

16 lines
405 B
Go
Raw Normal View History

2018-03-05 19:54:04 +00:00
package acme
// StoredData represents the data managed by Store.
2018-03-05 19:54:04 +00:00
type StoredData struct {
Account *Account
Certificates []*CertAndStore
}
// Store is a generic interface that represents a storage.
2018-03-05 19:54:04 +00:00
type Store interface {
GetAccount(string) (*Account, error)
SaveAccount(string, *Account) error
GetCertificates(string) ([]*CertAndStore, error)
SaveCertificates(string, []*CertAndStore) error
}