flux: github.com/weaveworks/flux/pkg/gpg Index | Files | Directories

package gpg

import "github.com/weaveworks/flux/pkg/gpg"

Package gpg has procedures for dealing with GNU Privacy Guard (gpg), in service of signing commits.


Package Files


func ImportKeys Uses

func ImportKeys(src string, trustImportedKeys bool) ([]string, error)

ImportKeys looks for all keys in a directory, and imports them into the current user's keyring. A path to a directory or a file may be provided. If the path is a directory, regular files in the directory will be imported, but not subdirectories (i.e., no recursion). It returns the basenames of the successfully imported keys.



Package gpg imports 5 packages (graph). Updated 2020-10-19. Refresh now. Tools for package owners.