Vault SSH: Review Rework

This commit is contained in:
vishalnayak
2015-07-29 14:21:36 -04:00
parent 4eee1f50fa
commit 9aa02ad560
11 changed files with 282 additions and 247 deletions

View File

@@ -8,6 +8,11 @@ import (
"github.com/hashicorp/vault/logical/framework"
)
type backend struct {
*framework.Backend
salt *salt.Salt
}
func Factory(conf *logical.BackendConfig) (logical.Backend, error) {
b, err := Backend(conf)
if err != nil {
@@ -54,11 +59,6 @@ func Backend(conf *logical.BackendConfig) (*framework.Backend, error) {
return b.Backend, nil
}
type backend struct {
*framework.Backend
salt *salt.Salt
}
const backendHelp = `
The SSH backend generates keys to eatablish SSH connection
with remote hosts. There are two options to create the keys: