We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6ed7ec4 + 6a22a8f commit 640ca78Copy full SHA for 640ca78
image.go
@@ -58,6 +58,8 @@ type Image interface {
58
IsUnpacked(context.Context, string) (bool, error)
59
// ContentStore provides a content store which contains image blob data
60
ContentStore() content.Store
61
+ // Metadata returns the underlying image metadata
62
+ Metadata() images.Image
63
}
64
65
type usageOptions struct {
@@ -130,6 +132,10 @@ type image struct {
130
132
platform platforms.MatchComparer
131
133
134
135
+func (i *image) Metadata() images.Image {
136
+ return i.i
137
+}
138
+
139
func (i *image) Name() string {
140
return i.i.Name
141
0 commit comments