18 lines
358 B
Go
18 lines
358 B
Go
// +build !enterprise
|
|
|
|
package vault
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/hashicorp/vault/helper/namespace"
|
|
)
|
|
|
|
func (c *Core) NamespaceByID(ctx context.Context, nsID string) (*namespace.Namespace, error) {
|
|
return namespaceByID(ctx, nsID, c)
|
|
}
|
|
|
|
func (c *Core) ListNamespaces() []*namespace.Namespace {
|
|
return []*namespace.Namespace{namespace.RootNamespace}
|
|
}
|