MCPcopy
hub / github.com/perkeep/perkeep / KeyId

Method KeyId

pkg/index/index.go:994–999  ·  view source on GitHub ↗
(ctx context.Context, signer blob.Ref)

Source from the content-addressed store, hash-verified

992}
993
994func (x *Index) KeyId(ctx context.Context, signer blob.Ref) (string, error) {
995 if x.corpus != nil {
996 return x.corpus.KeyId(ctx, signer)
997 }
998 return x.s.Get("signerkeyid:" + signer.String())
999}
1000
1001// signerRefs returns the set of signer blobRefs matching the signer keyID. It
1002// does not return an error if none is found.

Callers 5

GetRecentPermanodesMethod · 0.95
PathsOfSignerTargetMethod · 0.95
PathsLookupMethod · 0.95

Calls 3

KeyIdMethod · 0.65
GetMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected