Documentation ¶
Index ¶
- func GeneratePGPKeyPair(name, comment, email string) (sdk.Key, error)
- func GenerateSSHKey(name string) (sdk.Key, error)
- func GetOpenPGPEntity(r io.Reader) (*openpgp.Entity, error)
- func NewOpenPGPEntity(keyname, comment, email string) (*openpgp.Entity, error)
- func Parse(ctx context.Context, db gorp.SqlExecutor, projID int64, kname string, ...) (*sdk.Key, error)
- type DecryptFunc
- type EmailFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePGPKeyPair ¶
GeneratePGPKeyPair generates a private / public PGP key
func GenerateSSHKey ¶
GenerateSSHKey Generate a new ssh key
func GetOpenPGPEntity ¶
GetOpenPGPEntity returns a single entity from an armored entity list
func NewOpenPGPEntity ¶
NewOpenPGPEntity create an openpgp Entity
func Parse ¶
func Parse(ctx context.Context, db gorp.SqlExecutor, projID int64, kname string, kval exportentities.KeyValue, decryptFunc DecryptFunc, gpgEmail string) (*sdk.Key, error)
Parse and decrypts an exported key
Types ¶
type DecryptFunc ¶
Click to show internal directories.
Click to hide internal directories.