2022-04-20 00:37:27 +00:00
|
|
|
package store
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
"io"
|
|
|
|
)
|
|
|
|
|
|
|
|
var ErrNoSuchItem = errors.New("no such item")
|
|
|
|
|
|
|
|
type Store interface {
|
|
|
|
Add(r io.Reader) (string, error)
|
|
|
|
Delete(id string) error
|
|
|
|
Get(id string) (io.ReadCloser, error)
|
2022-04-20 20:51:06 +00:00
|
|
|
List() ([]string, error)
|
2022-04-20 00:37:27 +00:00
|
|
|
}
|