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

Function getDelegationRoleToKeyMap

cmd/docker-trust/trust/common.go:128–139  ·  view source on GitHub ↗
(rawDelegationRoles []data.Role)

Source from the content-addressed store, hash-verified

126}
127
128func getDelegationRoleToKeyMap(rawDelegationRoles []data.Role) map[string][]string {
129 signerRoleToKeyIDs := make(map[string][]string)
130 for _, delRole := range rawDelegationRoles {
131 switch delRole.Name {
132 case trust.ReleasesRole, data.CanonicalRootRole, data.CanonicalSnapshotRole, data.CanonicalTargetsRole, data.CanonicalTimestampRole:
133 continue
134 default:
135 signerRoleToKeyIDs[notaryRoleToSigner(delRole.Name)] = delRole.KeyIDs
136 }
137 }
138 return signerRoleToKeyIDs
139}
140
141// aggregate all signers for a "released" hash+tagname pair. To be "released," the tag must have been
142// signed into the "targets" or "targets/releases" role. Output is sorted by tag name

Callers 3

getRepoTrustInfoFunction · 0.85
prettyPrintTrustInfoFunction · 0.85

Calls 1

notaryRoleToSignerFunction · 0.85

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…