sshprivatekey

package
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2022 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package sshprivatekey provides access to the username and ssh private key stored in a Vault secret.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(d data, usernameAttr, privateKeyAttr, passphraseAttr string) (string, credential.PrivateKey, []byte)

Extract attempts to extract the values of the username, private key and optional passphrase stored within the provided data using the given attribute names.

Extract does not return partial results, i.e. if one of the attributes were extracted but not the other ("", nil) will be returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL