MCPcopy
hub / github.com/moby/moby / ReadPlatformFromImage

Method ReadPlatformFromImage

daemon/migration.go:37–37  ·  view source on GitHub ↗
(ctx context.Context, id image.ID)

Source from the content-addressed store, hash-verified

35type platformReader interface {
36 ReadPlatformFromConfigByImageManifest(ctx context.Context, desc ocispec.Descriptor) (ocispec.Platform, error)
37 ReadPlatformFromImage(ctx context.Context, id image.ID) (ocispec.Platform, error)
38}
39
40// deduceContainerPlatform tries to deduce `ctr`'s platform.

Callers 1

deduceContainerPlatformFunction · 0.65

Implementers 2

daemonPlatformReaderdaemon/migration.go
mockPlatformReaderdaemon/migration_test.go

Calls

no outgoing calls

Tested by

no test coverage detected