Closed shadeofblue closed 1 year ago
@approxit
the defaults to be used:
{
"version": "",
"createdAt": [ CURRENT DATE TIME ],
"expiresAt": "2100-01-01T00:01:00.000000Z",
"payload": [
{
"platform": {
"arch": "x86_64",
"os": "linux"
},
"urls": [ BASED ON THE RESOLVED VALUE FROM THE HASH - or through a directly provided value],
"hash": [ (for now) MUST BE PROVIDED BY THE USER, may change when we switch to using tags ]
}
],
"compManifest": {
"version": "",
[ only "run" allowed by default, user may, of course override this ]
"script": {
"commands": [
"run .*",
],
"match": "regex"
},
[ "net" section not included by default - must be constructed when a user passes a list of URLs]
}
}
Add helper API for manifests,
Based on the schema described in GAP-4: https://github.com/golemfactory/golem-architecture/blob/master/gaps/gap-4_comp_manifest/gap-4_comp_manifest.md and GAP-5 https://github.com/golemfactory/golem-architecture/blob/master/gaps/gap-5_payload_manifest/gap-5_payload_manifest.md
implement a
Manifest
class that: