Skip to content

Commit 0262108

Browse files
committed
Better image query
1 parent 01487b8 commit 0262108

File tree

3 files changed

+124
-76
lines changed

3 files changed

+124
-76
lines changed

doc/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2807,6 +2807,20 @@ <h3 id="metalstack.api.v2.ImageQuery">ImageQuery</h3>
28072807
<td><p>ID of the image to get </p></td>
28082808
</tr>
28092809

2810+
<tr>
2811+
<td>os</td>
2812+
<td><a href="#string">string</a></td>
2813+
<td>optional</td>
2814+
<td><p>OS of the image </p></td>
2815+
</tr>
2816+
2817+
<tr>
2818+
<td>version</td>
2819+
<td><a href="#string">string</a></td>
2820+
<td>optional</td>
2821+
<td><p>Version of the Image </p></td>
2822+
</tr>
2823+
28102824
<tr>
28112825
<td>name</td>
28122826
<td><a href="#string">string</a></td>

go/metalstack/api/v2/image.pb.go

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

proto/metalstack/api/v2/image.proto

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,21 +112,31 @@ message ImageQuery {
112112
min_len: 2
113113
max_len: 128
114114
}];
115+
// OS of the image
116+
optional string os = 2 [(buf.validate.field).string = {
117+
min_len: 2
118+
max_len: 128
119+
}];
120+
// Version of the Image
121+
optional string version = 3 [(buf.validate.field).string = {
122+
min_len: 1
123+
max_len: 128
124+
}];
115125
// Name of the image to query
116-
optional string name = 2 [(buf.validate.field).string = {
126+
optional string name = 4 [(buf.validate.field).string = {
117127
min_len: 2
118128
max_len: 128
119129
}];
120130
// Description of the image to query
121-
optional string description = 3 [(buf.validate.field).string = {
131+
optional string description = 5 [(buf.validate.field).string = {
122132
min_len: 2
123133
max_len: 128
124134
}];
125135
// Feature of the image to query
126-
optional ImageFeature feature = 4 [(buf.validate.field).enum.defined_only = true];
136+
optional ImageFeature feature = 6 [(buf.validate.field).enum.defined_only = true];
127137

128138
// Classification of the image to query
129-
optional ImageClassification classification = 5 [(buf.validate.field).enum.defined_only = true];
139+
optional ImageClassification classification = 7 [(buf.validate.field).enum.defined_only = true];
130140
}
131141

132142
// ImageFeature

0 commit comments

Comments
 (0)