MCPcopy
hub / github.com/containerd/containerd / WithPlatformMatcher

Function WithPlatformMatcher

client/client_opts.go:154–159  ·  view source on GitHub ↗

WithPlatformMatcher specifies the matcher to use for determining which platforms to pull content for. This value supersedes anything set with `WithPlatform`.

(m platforms.MatchComparer)

Source from the content-addressed store, hash-verified

152// determining which platforms to pull content for.
153// This value supersedes anything set with `WithPlatform`.
154func WithPlatformMatcher(m platforms.MatchComparer) RemoteOpt {
155 return func(_ *Client, c *RemoteContext) error {
156 c.PlatformMatcher = m
157 return nil
158 }
159}
160
161// WithPullUnpack is used to unpack an image after pull. This
162// uses the snapshotter, content store, and diff service

Callers 11

testExportImportFunction · 0.85
TestImageIsUnpackedFunction · 0.85
TestImageUsageFunction · 0.85
TestShimSockLengthFunction · 0.85
TestImagePullFunction · 0.85
TestImagePullWithTracingFunction · 0.85
TestIssue13030Function · 0.85

Calls

no outgoing calls

Tested by 11

testExportImportFunction · 0.68
TestImageIsUnpackedFunction · 0.68
TestImageUsageFunction · 0.68
TestShimSockLengthFunction · 0.68
TestImagePullFunction · 0.68
TestImagePullWithTracingFunction · 0.68
TestIssue13030Function · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…