Skip to content

Commit cd2f2b0

Browse files
committed
client: expose (*image).platform
Expose (*image).platform as Image.Platform() . Signed-off-by: Akihiro Suda <[email protected]>
1 parent ac5790c commit cd2f2b0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

image.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ type Image interface {
6161
ContentStore() content.Store
6262
// Metadata returns the underlying image metadata
6363
Metadata() images.Image
64+
// Platform returns the platform match comparer. Can be nil.
65+
Platform() platforms.MatchComparer
6466
}
6567

6668
type usageOptions struct {
@@ -448,3 +450,7 @@ func (i *image) checkSnapshotterSupport(ctx context.Context, snapshotterName str
448450
func (i *image) ContentStore() content.Store {
449451
return i.client.ContentStore()
450452
}
453+
454+
func (i *image) Platform() platforms.MatchComparer {
455+
return i.platform
456+
}

0 commit comments

Comments
 (0)