2023-03-15 19:00:52 +03:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2024-01-02 21:36:20 +03:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
2023-03-15 19:00:52 +03:00
|
|
|
|
2022-01-05 21:02:03 +03:00
|
|
|
//go:build !enterprise
|
2021-08-30 22:31:11 +03: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 21:11:04 +03:00
|
|
|
func (c *Core) ListNamespaces(includePath bool) []*namespace.Namespace {
|
2021-08-30 22:31:11 +03:00
|
|
|
return []*namespace.Namespace{namespace.RootNamespace}
|
|
|
|
}
|