mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-18 10:29:43 +00:00
15 lines
345 B
Go
15 lines
345 B
Go
package database
|
|
|
|
import (
|
|
"github.com/akrylysov/pogreb"
|
|
"github.com/go-acme/lego/v4/certificate"
|
|
)
|
|
|
|
type CertDB interface {
|
|
Close() error
|
|
Put(name string, cert *certificate.Resource) error
|
|
Get(name []byte) (*certificate.Resource, error)
|
|
Delete(key []byte) error
|
|
Compact() (pogreb.CompactionResult, error)
|
|
Items() *pogreb.ItemIterator
|
|
}
|