-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathruntime.go
33 lines (30 loc) · 1.12 KB
/
runtime.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package execute
const (
BLSDefaultRuntimeEntryPoint = "_start"
)
// RuntimeConfig represents the CLI flags supported by the runtime
type BLSRuntimeConfig struct {
Entry string `json:"entry,omitempty"`
ExecutionTime uint64 `json:"run_time,omitempty"`
DebugInfo bool `json:"debug_info,omitempty"`
Fuel uint64 `json:"limited_fuel,omitempty"`
Memory uint64 `json:"limited_memory,omitempty"`
Logger string `json:"runtime_logger,omitempty"`
DriversRootPath string `json:"drivers_root_path,omitempty"`
// Fields not allowed to be set in the request.
Input string `json:"-"`
FSRoot string `json:"-"`
}
const (
// Blockless Runtime flag names.
BLSRuntimeFlagEntry = "entry"
BLSRuntimeFlagExecutionTime = "run-time"
BLSRuntimeFlagDebug = "debug-info"
BLSRuntimeFlagFuel = "limited-fuel"
BLSRuntimeFlagMemory = "limited-memory"
BLSRuntimeFlagFSRoot = "fs-root-path"
BLSRuntimeFlagLogger = "runtime-logger"
BLSRuntimeFlagPermission = "permission"
BLSRuntimeFlagEnv = "env"
BLSRuntimeFlagDrivers = "drivers-root-path"
)