mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
merge 036, everything broken
This commit is contained in:
59
container-runtime/RPCSpec.md
Normal file
59
container-runtime/RPCSpec.md
Normal file
@@ -0,0 +1,59 @@
|
||||
# Container RPC SERVER Specification
|
||||
|
||||
## Methods
|
||||
|
||||
### init
|
||||
initialize runtime (mount `/proc`, `/sys`, `/dev`, and `/run` to each image in `/media/images`)
|
||||
|
||||
called after os has mounted js and images to the container
|
||||
#### args
|
||||
`[]`
|
||||
#### response
|
||||
`null`
|
||||
|
||||
### exit
|
||||
shutdown runtime
|
||||
#### args
|
||||
`[]`
|
||||
#### response
|
||||
`null`
|
||||
|
||||
### start
|
||||
run main method if not already running
|
||||
#### args
|
||||
`[]`
|
||||
#### response
|
||||
`null`
|
||||
|
||||
### stop
|
||||
stop main method by sending SIGTERM to child processes, and SIGKILL after timeout
|
||||
#### args
|
||||
`{ timeout: millis }`
|
||||
#### response
|
||||
`null`
|
||||
|
||||
### execute
|
||||
run a specific package procedure
|
||||
#### args
|
||||
```ts
|
||||
{
|
||||
procedure: JsonPath,
|
||||
input: any,
|
||||
timeout: millis,
|
||||
}
|
||||
```
|
||||
#### response
|
||||
`any`
|
||||
|
||||
### sandbox
|
||||
run a specific package procedure in sandbox mode
|
||||
#### args
|
||||
```ts
|
||||
{
|
||||
procedure: JsonPath,
|
||||
input: any,
|
||||
timeout: millis,
|
||||
}
|
||||
```
|
||||
#### response
|
||||
`any`
|
||||
Reference in New Issue
Block a user