open-vault/vault/namespaces_oss.go
Hamid Ghaf 27bb03bbc0
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

21 lines
445 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
//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(includePath bool) []*namespace.Namespace {
return []*namespace.Namespace{namespace.RootNamespace}
}