open-vault/vault/namespaces_oss.go
2022-01-05 12:02:03 -06:00

18 lines
359 B
Go

//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}
}