MCPcopy
hub / github.com/kubernetes/test-infra / registryResolver

Struct registryResolver

releng/config-forker/pkg/resolve.go:37–41  ·  view source on GitHub ↗

registryResolver implements ImageResolver by querying OCI Distribution tag list endpoints. It caches tag lists per repository.

Source from the content-addressed store, hash-verified

35// registryResolver implements ImageResolver by querying OCI Distribution
36// tag list endpoints. It caches tag lists per repository.
37type registryResolver struct {
38 client *http.Client
39 mu sync.Mutex
40 cache map[string][]string
41}
42
43// NewRegistryResolver creates an ImageResolver that checks tags against
44// the OCI Distribution API. Pass nil to use http.DefaultClient.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected