Add deprecation notices for policymap/pathmap

External plugin authors keep using it :-(
This commit is contained in:
Jeff Mitchell
2019-06-27 10:17:05 -04:00
parent 47d0e56fa4
commit a46b596347
2 changed files with 6 additions and 0 deletions

View File

@@ -10,6 +10,9 @@ import (
"github.com/hashicorp/vault/sdk/logical"
)
// DEPRECATED: Don't use this. It's too inflexible, nearly impossible to use
// with some modern Vault features, and imposes specific API designs.
//
// PathMap can be used to generate a path that stores mappings in the
// storage. It is a structure that also exports functions for querying the
// mappings.

View File

@@ -8,6 +8,9 @@ import (
"github.com/hashicorp/vault/sdk/logical"
)
// DEPRECATED: Don't use this. It's too inflexible, nearly impossible to use
// with some modern Vault features, and imposes specific API designs.
//
// PolicyMap is a specialization of PathMap that expects the values to
// be lists of policies. This assists in querying and loading policies
// from the PathMap.