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

8
map.go
View File

@@ -38,6 +38,14 @@ func (m *Map) Close() error {
return nil
}
func (m *Map) Namespaces() ([][]string, error) {
keys := [][]string{}
for key := range m.m {
keys = append(keys, resolve.UnNamespace(key))
}
return keys, nil
}
func (m *Map) List(ns []string, limits ...string) ([]string, error) {
m.lock.RLock()
defer m.lock.RUnlock()