logical/framework: support root help

This commit is contained in:
Mitchell Hashimoto
2015-04-03 20:36:47 -07:00
parent 1c6ed3494b
commit e56b16b6d7
4 changed files with 100 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
package aws
import (
"strings"
"time"
"github.com/hashicorp/vault/logical"
@@ -14,6 +15,8 @@ func Factory(map[string]string) (logical.Backend, error) {
func Backend() *framework.Backend {
var b backend
b.Backend = &framework.Backend{
Help: strings.TrimSpace(backendHelp),
PathsSpecial: &logical.Paths{
Root: []string{
"root",
@@ -41,3 +44,9 @@ func Backend() *framework.Backend {
type backend struct {
*framework.Backend
}
const backendHelp = `
The AWS backend dynamically generates AWS access keys for a set of
IAM policies. The AWS access keys have a configurable lease set and
are automatically revoked at the end of the lease.
`