Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 408 Bytes
package vault
import (
var (
NamespaceByID func(context.Context, string, *Core) (*namespace.Namespace, error) = namespaceByID
func namespaceByID(ctx context.Context, nsID string, c *Core) (*namespace.Namespace, error) {
if nsID == namespace.RootNamespaceID {
return namespace.RootNamespace, nil
return nil, namespace.ErrNoNamespace
You can’t perform that action at this time.