2022-01-05 18:02:03 +00:00
|
|
|
//go:build !enterprise
|
2021-08-30 19:31:11 +00:00
|
|
|
|
|
|
|
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}
|
|
|
|
}
|