(urls []string)
| 126 | } |
| 127 | |
| 128 | func groupUrls(urls []string) ([]string, []string) { |
| 129 | imgs := make([]string, 0, len(urls)) |
| 130 | gits := make([]string, 0, len(urls)) |
| 131 | for _, u := range urls { |
| 132 | if strings.HasPrefix(u, "git+") { |
| 133 | gits = append(gits, u) |
| 134 | } else { |
| 135 | imgs = append(imgs, u) |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | return imgs, gits |
| 140 | } |
| 141 | |
| 142 | func (t *Tracker) trackImageReferences(ctx context.Context, urls []string, freshen bool) error { |
| 143 | refs, err := image.ParseAndResolveAll(ctx, urls, name.StrictValidation) |
no outgoing calls