(targets []notaryclient.TargetSignedStruct, tag string)
| 168 | } |
| 169 | |
| 170 | func getReleasedTargetHashAndSize(targets []notaryclient.TargetSignedStruct, tag string) (data.Hashes, int64, error) { |
| 171 | for _, tgt := range targets { |
| 172 | if isReleasedTarget(tgt.Role.Name) { |
| 173 | return tgt.Target.Hashes, tgt.Target.Length, nil |
| 174 | } |
| 175 | } |
| 176 | return nil, 0, notaryclient.ErrNoSuchTarget(tag) |
| 177 | } |
| 178 | |
| 179 | func getExistingSignatureInfoForReleasedTag(notaryRepo notaryclient.Repository, tag string) (trustTagRow, error) { |
| 180 | targets, err := notaryRepo.GetAllTargetMetadataByName(tag) |
searching dependent graphs…