Help us shape the future of Go! Take the 2026 Go Developer Survey

keys

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: BSD-3-Clause Imports: 18 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKey

func GenerateKey(name string, t sdk.KeyType) (sdk.Key, error)

func GeneratePGPKeyPair

func GeneratePGPKeyPair(name 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 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) (*sdk.Key, error)

Parse and decrypts an exported key

Types

type DecryptFunc

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

Jump to

Keyboard shortcuts

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