mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Vault SSH: Review Rework
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user