Skip to content

Commit 72655dc

Browse files
committed
Add S3 struct in schema
- Add S3 metadata in meta.json Signed-off-by: Renata Ravanelli <[email protected]>
1 parent a6d7bbb commit 72655dc

File tree

4 files changed

+70
-0
lines changed

4 files changed

+70
-0
lines changed

schema/cosa/cosa_v1.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ type Build struct {
7373
PkgdiffBetweenBuilds PackageSetDifferences `json:"pkgdiff,omitempty"`
7474
PowerVirtualServer []Cloudartifact `json:"powervs,omitempty"`
7575
ReleasePayload *Image `json:"release-payload,omitempty"`
76+
S3 *S3 `json:"s3,omitempty"`
7677
}
7778

7879
type BuildArtifacts struct {
@@ -147,3 +148,9 @@ type Koji struct {
147148
type PackageSetDifferences []PackageSetDifferencesItems
148149

149150
type PackageSetDifferencesItems interface{}
151+
152+
type S3 struct {
153+
Bucket string `json:"bucket,omitempty"`
154+
Path string `json:"path,omitempty"`
155+
URL string `json:"url,omitempty"`
156+
}

schema/cosa/schema_doc.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ var generatedSchemaJSON = `{
225225
"parent-advisories-diff",
226226
"advisories-diff",
227227
"release-payload",
228+
"s3",
228229
229230
"coreos-assembler.basearch",
230231
"coreos-assembler.build-timestamp",
@@ -266,6 +267,26 @@ var generatedSchemaJSON = `{
266267
"default":"",
267268
"minLength": 1
268269
},
270+
"s3": {
271+
"type": "object",
272+
"properties": {
273+
"bucket": {
274+
"$id":"#/properties/bucket",
275+
"type":"string",
276+
"title":"Bucket"
277+
},
278+
"path": {
279+
"$id": "#/properties/path",
280+
"type":"string",
281+
"title":"Path"
282+
},
283+
"url": {
284+
"$id":"#/properties/url",
285+
"type":"string",
286+
"title":"URL"
287+
}
288+
}
289+
},
269290
"koji": {
270291
"type": "object",
271292
"properties": {

schema/v1.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@
220220
"parent-advisories-diff",
221221
"advisories-diff",
222222
"release-payload",
223+
"s3",
223224

224225
"coreos-assembler.basearch",
225226
"coreos-assembler.build-timestamp",
@@ -261,6 +262,26 @@
261262
"default":"",
262263
"minLength": 1
263264
},
265+
"s3": {
266+
"type": "object",
267+
"properties": {
268+
"bucket": {
269+
"$id":"#/properties/bucket",
270+
"type":"string",
271+
"title":"Bucket"
272+
},
273+
"path": {
274+
"$id": "#/properties/path",
275+
"type":"string",
276+
"title":"Path"
277+
},
278+
"url": {
279+
"$id":"#/properties/url",
280+
"type":"string",
281+
"title":"URL"
282+
}
283+
}
284+
},
264285
"koji": {
265286
"type": "object",
266287
"properties": {

src/v1.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@
220220
"parent-advisories-diff",
221221
"advisories-diff",
222222
"release-payload",
223+
"s3",
223224

224225
"coreos-assembler.basearch",
225226
"coreos-assembler.build-timestamp",
@@ -261,6 +262,26 @@
261262
"default":"",
262263
"minLength": 1
263264
},
265+
"s3": {
266+
"type": "object",
267+
"properties": {
268+
"bucket": {
269+
"$id":"#/properties/bucket",
270+
"type":"string",
271+
"title":"Bucket"
272+
},
273+
"path": {
274+
"$id": "#/properties/path",
275+
"type":"string",
276+
"title":"Path"
277+
},
278+
"url": {
279+
"$id":"#/properties/url",
280+
"type":"string",
281+
"title":"URL"
282+
}
283+
}
284+
},
264285
"koji": {
265286
"type": "object",
266287
"properties": {

0 commit comments

Comments
 (0)