MCPcopy Create free account
hub / github.com/conforma/cli / groupUrls

Function groupUrls

internal/tracker/tracker.go:128–140  ·  view source on GitHub ↗
(urls []string)

Source from the content-addressed store, hash-verified

126}
127
128func 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
142func (t *Tracker) trackImageReferences(ctx context.Context, urls []string, freshen bool) error {
143 refs, err := image.ParseAndResolveAll(ctx, urls, name.StrictValidation)

Callers 2

TestGroupUrlsFunction · 0.85
TrackFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestGroupUrlsFunction · 0.68