mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
867 B
867 B
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
{
procedure: JsonPath,
input: any,
timeout: millis,
}
response
any
sandbox
run a specific package procedure in sandbox mode
args
{
procedure: JsonPath,
input: any,
timeout: millis,
}
response
any