stub namespaces now that i realize file trees arent namespaces

This commit is contained in:
bel
2021-08-05 21:51:50 -06:00
parent 9cda5ad071
commit f647664b54
6 changed files with 63 additions and 15 deletions

View File

@@ -2,6 +2,7 @@ package storage
import (
"bytes"
"errors"
"io"
"io/ioutil"
"local/storage/resolve"
@@ -34,6 +35,10 @@ func NewFiles(root string) (*Files, error) {
}, os.MkdirAll(root, os.ModePerm)
}
func (b *Files) Namespaces() ([][]string, error) {
return nil, errors.New("not impl")
}
func (b *Files) List(ns []string, limits ...string) ([]string, error) {
namespace := resolve.Namespace(ns)
limits = resolve.Limits(limits)