Skip to content

Commit 9844ce4

Browse files
stefanbergerJared Cordasco
authored andcommitted
Add missing annotations map to Descriptor for gRPC transfer
Add the annotations map to the gRPC Descriptor message. Signed-off-by: Stefan Berger <[email protected]> Signed-off-by: Brandon Lum <[email protected]> Signed-off-by: Harshal Patil <[email protected]> (cherry picked from commit c6703d4) Signed-off-by: Jared Cordasco <[email protected]>
1 parent 502ed64 commit 9844ce4

3 files changed

Lines changed: 204 additions & 14 deletions

File tree

api/next.pb.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,6 +1764,34 @@ file {
17641764
type: TYPE_INT64
17651765
json_name: "size"
17661766
}
1767+
field {
1768+
name: "annotations"
1769+
number: 5
1770+
label: LABEL_REPEATED
1771+
type: TYPE_MESSAGE
1772+
type_name: ".containerd.types.Descriptor.AnnotationsEntry"
1773+
json_name: "annotations"
1774+
}
1775+
nested_type {
1776+
name: "AnnotationsEntry"
1777+
field {
1778+
name: "key"
1779+
number: 1
1780+
label: LABEL_OPTIONAL
1781+
type: TYPE_STRING
1782+
json_name: "key"
1783+
}
1784+
field {
1785+
name: "value"
1786+
number: 2
1787+
label: LABEL_OPTIONAL
1788+
type: TYPE_STRING
1789+
json_name: "value"
1790+
}
1791+
options {
1792+
map_entry: true
1793+
}
1794+
}
17671795
}
17681796
options {
17691797
go_package: "github.com/containerd/containerd/api/types;types"

api/types/descriptor.pb.go

Lines changed: 175 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/types/descriptor.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ message Descriptor {
1515
string media_type = 1;
1616
string digest = 2 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false];
1717
int64 size = 3;
18+
map<string, string> annotations = 5;
1819
}

0 commit comments

Comments
 (0)