gpgtest

package
v1.24.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GPGKey

func GPGKey(t *testing.T) (string, string, func())

GPGKey creates a new, temporary GPG home directory and a public/private key pair. It returns the GPG home directory, the ID of the created key, and a cleanup function to be called after the caller is finished with this key. Since GPG uses /dev/random, this may block while waiting for entropy to become available.

func ImportGPGKey added in v1.17.0

func ImportGPGKey(t *testing.T, key string) (string, func())

ImportGPGKey imports a gpg key into a temporary home directory. It returns the gpg home directory and a cleanup function to be called after the caller is finished with this key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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