2023-03-15 16:00:52 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
2022-09-06 18:11:04 +00:00
|
|
|
func (c *Core) ListNamespaces(includePath bool) []*namespace.Namespace {
|
2021-08-30 19:31:11 +00:00
|
|
|
return []*namespace.Namespace{namespace.RootNamespace}
|
|
|
|
}
|