MCPcopy
hub / github.com/containerd/containerd / Resolve

Method Resolve

core/remotes/resolver.go:43–43  ·  view source on GitHub ↗

Resolve attempts to resolve the reference into a name and descriptor. The argument `ref` should be a scheme-less URI representing the remote. Structurally, it has a host and path. The "host" can be used to directly reference a specific host or be matched against a specific handler. The returned na

(ctx context.Context, ref string)

Source from the content-addressed store, hash-verified

41 //
42 // If the resolution fails, an error will be returned.
43 Resolve(ctx context.Context, ref string) (name string, desc ocispec.Descriptor, err error)
44
45 // Fetcher returns a new fetcher for the provided reference.
46 // All content fetched from the returned fetcher will be

Callers 15

TestBadTokenResolverFunction · 0.95
TestResolveProxyFunction · 0.95
TestResolveProxyFallbackFunction · 0.95
runBasicTestFunction · 0.95
runNotFoundTestFunction · 0.95
runReferrersTestFunction · 0.95
runBasicTestFunction · 0.95

Implementers 2

dockerResolvercore/remotes/docker/resolver.go
OCIRegistrycore/transfer/registry/registry.go

Calls

no outgoing calls

Tested by 13

TestBadTokenResolverFunction · 0.76
TestResolveProxyFunction · 0.76
TestResolveProxyFallbackFunction · 0.76
runBasicTestFunction · 0.76
runNotFoundTestFunction · 0.76
runReferrersTestFunction · 0.76
runBasicTestFunction · 0.76