MCPcopy Index your code
hub / github.com/getsops/sops / getPubRing

Method getPubRing

pgp/keysource.go:516–522  ·  view source on GitHub ↗

getPubRing loads the public keyring from the configured path, or falls back to defaultPubRing relative to the GnuPG home. It returns an openpgp.EntityList read from the keyring, or an error.

()

Source from the content-addressed store, hash-verified

514// to defaultPubRing relative to the GnuPG home. It returns an openpgp.EntityList
515// read from the keyring, or an error.
516func (key *MasterKey) getPubRing() (openpgp.EntityList, error) {
517 path := key.pubRing
518 if path == "" {
519 path = filepath.Join(gnuPGHome(key.gnuPGHomeDir), defaultPubRing)
520 }
521 return loadRing(path)
522}
523
524// getSecRing loads the sec keyring from the configured path, or falls back
525// to defaultSecRing relative to the GnuPG home. It returns an openpgp.EntityList

Callers 3

retrievePubKeyMethod · 0.95
getSecRingMethod · 0.95
TestMasterKey_getPubRingFunction · 0.80

Calls 2

gnuPGHomeFunction · 0.85
loadRingFunction · 0.85

Tested by 1

TestMasterKey_getPubRingFunction · 0.64