mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
VAULT-7256 - Add CustomMetadata to Namespace type (#16491)
* remove CustomMetadata type * add custom metadata to namespace struct
This commit is contained in:
@@ -12,8 +12,9 @@ import (
|
||||
type contextValues struct{}
|
||||
|
||||
type Namespace struct {
|
||||
ID string `json:"id"`
|
||||
Path string `json:"path"`
|
||||
ID string `json:"id"`
|
||||
Path string `json:"path"`
|
||||
CustomMetadata map[string]string `json:"custom_metadata"`
|
||||
}
|
||||
|
||||
func (n *Namespace) String() string {
|
||||
@@ -28,8 +29,9 @@ var (
|
||||
contextNamespace contextValues = struct{}{}
|
||||
ErrNoNamespace error = errors.New("no namespace")
|
||||
RootNamespace *Namespace = &Namespace{
|
||||
ID: RootNamespaceID,
|
||||
Path: "",
|
||||
ID: RootNamespaceID,
|
||||
Path: "",
|
||||
CustomMetadata: make(map[string]string),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user