Debian Codegraph @

lib/crypto/gpg/gpgbin/import-ownertrust.go

raw
1 package gpgbin
2
3 import (
4 "io"
5 )
6
7 // Import runs gpg --import-ownertrust and thus imports trusts for keys
8 func ImportOwnertrust(r io.Reader) error {
9 args := []string{"--import-ownertrust"}
10 g := newGpg(r, args)
11 err := g.cmd.Run()
12 if err != nil {
13 return err
14 }
15 return nil
16 }