We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b1d56e + 3d5a408 commit f88d3e5Copy full SHA for f88d3e5
1 file changed
image.go
@@ -37,6 +37,8 @@ type Image interface {
37
Name() string
38
// Target descriptor for the image content
39
Target() ocispec.Descriptor
40
+ // Labels of the image
41
+ Labels() map[string]string
42
// Unpack unpacks the image's content into a snapshot
43
Unpack(context.Context, string) error
44
// RootFS returns the unpacked diffids that make up images rootfs.
@@ -86,6 +88,10 @@ func (i *image) Target() ocispec.Descriptor {
86
88
return i.i.Target
87
89
}
90
91
+func (i *image) Labels() map[string]string {
92
+ return i.i.Labels
93
+}
94
+
95
func (i *image) RootFS(ctx context.Context) ([]digest.Digest, error) {
96
provider := i.client.ContentStore()
97
return i.i.RootFS(ctx, provider, i.platform)
0 commit comments