stub namespaces now that i realize file trees arent namespaces
This commit is contained in:
8
map.go
8
map.go
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user