vault: Expose MountPoint to secret backend. Fixes #248

This commit is contained in:
Armon Dadgar
2015-05-27 11:46:42 -07:00
parent aa867120b3
commit f366cf2f51
3 changed files with 46 additions and 0 deletions

View File

@@ -47,6 +47,11 @@ type Request struct {
// dynamic secrets with the source entity. This is not a sensitive
// name, but is useful for operators.
DisplayName string
// MountPoint is provided so that a logical backend can generate
// paths relative to itself. The `Path` is effectively the client
// request path with the MountPoint trimmed off.
MountPoint string
}
// Get returns a data field and guards for nil Data