keys

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 18 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePGPKeyPair

func GeneratePGPKeyPair(name, comment, email string) (sdk.Key, error)

GeneratePGPKeyPair generates a private / public PGP key

func GenerateSSHKey

func GenerateSSHKey(name string) (sdk.Key, error)

GenerateSSHKey Generate a new ssh key

func GetOpenPGPEntity

func GetOpenPGPEntity(r io.Reader) (*openpgp.Entity, error)

GetOpenPGPEntity returns a single entity from an armored entity list

func NewOpenPGPEntity

func NewOpenPGPEntity(keyname, comment, email string) (*openpgp.Entity, error)

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

type DecryptFunc func(context.Context, gorp.SqlExecutor, int64, string) (string, error)

type EmailFunc added in v0.53.1

type EmailFunc func(context.Context, string, string) (string, error)

Jump to

Keyboard shortcuts

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