MCPcopy Create free account
hub / github.com/dagger/dagger / imageConfigPlatformMatcher

Function imageConfigPlatformMatcher

engine/server/resolver/metadata.go:35–40  ·  view source on GitHub ↗
(platform *ocispecs.Platform)

Source from the content-addressed store, hash-verified

33}
34
35func imageConfigPlatformMatcher(platform *ocispecs.Platform) platforms.MatchComparer {
36 if platform == nil {
37 return platforms.Default()
38 }
39 return platforms.Only(platforms.Normalize(*platform))
40}
41
42func (r *Resolver) tryLocalCanonicalConfigMetadata(
43 ctx context.Context,

Callers 2

ResolveImageConfigMethod · 0.85

Calls 1

DefaultMethod · 0.80

Tested by

no test coverage detected