MCPcopy Create free account
hub / github.com/docker/cli / notaryRoleToSigner

Function notaryRoleToSigner

cmd/docker-trust/trust/helpers.go:23–29  ·  view source on GitHub ↗

notaryRoleToSigner converts TUF role name to a human-understandable signer name

(tufRole data.RoleName)

Source from the content-addressed store, hash-verified

21
22// notaryRoleToSigner converts TUF role name to a human-understandable signer name
23func notaryRoleToSigner(tufRole data.RoleName) string {
24 // don't show a signer for "targets" or "targets/releases"
25 if isReleasedTarget(data.RoleName(tufRole.String())) {
26 return releasedRoleName
27 }
28 return strings.TrimPrefix(tufRole.String(), "targets/")
29}
30
31// clearChangeList clears the notary staging changelist.
32func clearChangeList(notaryRepo client.Repository) error {

Callers 4

getOrGenerateNotaryKeyFunction · 0.85
matchReleasedSignaturesFunction · 0.85
TestNotaryRoleToSignerFunction · 0.85

Calls 2

isReleasedTargetFunction · 0.85
StringMethod · 0.65

Tested by 1

TestNotaryRoleToSignerFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…