(sources []*specs.Source)
| 22 | } |
| 23 | |
| 24 | func sourcesNeedToken(sources []*specs.Source) bool { |
| 25 | for _, source := range sources { |
| 26 | if tokenNeeded(source.Registry, source.Path) { |
| 27 | return true |
| 28 | } |
| 29 | } |
| 30 | return false |
| 31 | } |
| 32 | |
| 33 | func destinationsNeedToken(destinations []*specs.Destination) bool { |
| 34 | for _, destination := range destinations { |
no test coverage detected