(rawDelegationRoles []data.Role)
| 126 | } |
| 127 | |
| 128 | func 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 |
searching dependent graphs…