2018-08-15 23:36:48 -04:00
|
|
|
union Any {
|
2019-03-11 23:25:18 -04:00
|
|
|
Accept,
|
2019-07-29 05:11:08 -04:00
|
|
|
ApplySourceMap,
|
2019-05-20 12:06:57 -04:00
|
|
|
Cache,
|
2019-03-11 23:25:18 -04:00
|
|
|
Chdir,
|
|
|
|
Chmod,
|
2019-05-07 21:58:58 -04:00
|
|
|
Chown,
|
2019-03-11 23:25:18 -04:00
|
|
|
Close,
|
|
|
|
CopyFile,
|
2019-05-20 12:06:57 -04:00
|
|
|
CreateWorker,
|
|
|
|
CreateWorkerRes,
|
2019-03-11 23:25:18 -04:00
|
|
|
Cwd,
|
|
|
|
CwdRes,
|
|
|
|
Dial,
|
2018-08-31 07:51:12 -04:00
|
|
|
Environ,
|
|
|
|
EnvironRes,
|
2019-03-11 23:25:18 -04:00
|
|
|
Exit,
|
2018-10-30 15:02:18 -04:00
|
|
|
Fetch,
|
2019-07-17 18:15:30 -04:00
|
|
|
FetchSourceFile,
|
|
|
|
FetchSourceFileRes,
|
2018-07-06 11:27:36 -04:00
|
|
|
FetchRes,
|
2019-03-11 23:25:18 -04:00
|
|
|
FormatError,
|
|
|
|
FormatErrorRes,
|
2019-05-17 14:03:01 -04:00
|
|
|
GetRandomValues,
|
2019-03-10 15:37:05 -04:00
|
|
|
GlobalTimer,
|
|
|
|
GlobalTimerRes,
|
|
|
|
GlobalTimerStop,
|
2019-05-20 12:06:57 -04:00
|
|
|
HostGetMessage,
|
|
|
|
HostGetMessageRes,
|
|
|
|
HostGetWorkerClosed,
|
|
|
|
HostPostMessage,
|
2019-03-11 23:25:18 -04:00
|
|
|
IsTTY,
|
|
|
|
IsTTYRes,
|
2019-04-21 21:26:56 -04:00
|
|
|
Kill,
|
2019-04-08 09:11:32 -04:00
|
|
|
Link,
|
2019-03-11 23:25:18 -04:00
|
|
|
Listen,
|
|
|
|
ListenRes,
|
2018-08-23 18:36:45 -04:00
|
|
|
MakeTempDir,
|
|
|
|
MakeTempDirRes,
|
2019-03-11 23:25:18 -04:00
|
|
|
Metrics,
|
|
|
|
MetricsRes,
|
2018-09-10 05:48:36 -04:00
|
|
|
Mkdir,
|
2019-03-11 23:25:18 -04:00
|
|
|
NewConn,
|
|
|
|
Now,
|
|
|
|
NowRes,
|
|
|
|
Open,
|
|
|
|
OpenRes,
|
|
|
|
PermissionRevoke,
|
|
|
|
Permissions,
|
|
|
|
PermissionsRes,
|
2018-10-03 17:56:56 -04:00
|
|
|
ReadDir,
|
|
|
|
ReadDirRes,
|
2018-09-25 00:20:49 -04:00
|
|
|
Readlink,
|
|
|
|
ReadlinkRes,
|
2019-03-11 23:25:18 -04:00
|
|
|
Remove,
|
|
|
|
Rename,
|
2018-11-05 12:55:59 -05:00
|
|
|
ReplReadline,
|
|
|
|
ReplReadlineRes,
|
2019-03-11 23:25:18 -04:00
|
|
|
ReplStart,
|
|
|
|
ReplStartRes,
|
2018-10-30 15:58:55 -04:00
|
|
|
Resources,
|
|
|
|
ResourcesRes,
|
2018-11-15 23:07:40 -05:00
|
|
|
Run,
|
|
|
|
RunRes,
|
|
|
|
RunStatus,
|
2019-02-02 01:27:42 -05:00
|
|
|
RunStatusRes,
|
2019-02-18 18:26:41 -05:00
|
|
|
Seek,
|
2019-03-11 23:25:18 -04:00
|
|
|
SetEnv,
|
|
|
|
Shutdown,
|
|
|
|
Start,
|
|
|
|
StartRes,
|
|
|
|
Stat,
|
|
|
|
StatRes,
|
|
|
|
Symlink,
|
|
|
|
Truncate,
|
2019-06-25 12:05:41 -04:00
|
|
|
HomeDir,
|
|
|
|
HomeDirRes,
|
2019-08-06 17:05:47 -04:00
|
|
|
ExecPath,
|
|
|
|
ExecPathRes,
|
2019-05-01 05:08:12 -04:00
|
|
|
Utime,
|
2019-03-11 23:25:18 -04:00
|
|
|
WorkerGetMessage,
|
|
|
|
WorkerGetMessageRes,
|
|
|
|
WorkerPostMessage,
|
2018-07-04 14:50:28 -04:00
|
|
|
}
|
|
|
|
|
2018-08-15 23:36:48 -04:00
|
|
|
enum ErrorKind: byte {
|
|
|
|
NoError = 0,
|
|
|
|
|
|
|
|
// io errors
|
|
|
|
|
|
|
|
NotFound,
|
|
|
|
PermissionDenied,
|
|
|
|
ConnectionRefused,
|
|
|
|
ConnectionReset,
|
|
|
|
ConnectionAborted,
|
|
|
|
NotConnected,
|
|
|
|
AddrInUse,
|
|
|
|
AddrNotAvailable,
|
|
|
|
BrokenPipe,
|
|
|
|
AlreadyExists,
|
|
|
|
WouldBlock,
|
|
|
|
InvalidInput,
|
|
|
|
InvalidData,
|
|
|
|
TimedOut,
|
|
|
|
Interrupted,
|
|
|
|
WriteZero,
|
|
|
|
Other,
|
|
|
|
UnexpectedEof,
|
2018-10-10 11:15:47 -04:00
|
|
|
BadResource,
|
2018-11-15 23:07:40 -05:00
|
|
|
CommandFailed,
|
2018-09-27 00:56:39 -04:00
|
|
|
|
2018-08-15 23:36:48 -04:00
|
|
|
// url errors
|
|
|
|
|
|
|
|
EmptyHost,
|
|
|
|
IdnaError,
|
|
|
|
InvalidPort,
|
|
|
|
InvalidIpv4Address,
|
|
|
|
InvalidIpv6Address,
|
|
|
|
InvalidDomainCharacter,
|
|
|
|
RelativeUrlWithoutBase,
|
|
|
|
RelativeUrlWithCannotBeABaseBase,
|
|
|
|
SetHostOnCannotBeABaseUrl,
|
|
|
|
Overflow,
|
2018-08-14 16:50:53 -04:00
|
|
|
|
|
|
|
// hyper errors
|
|
|
|
|
|
|
|
HttpUser,
|
|
|
|
HttpClosed,
|
|
|
|
HttpCanceled,
|
|
|
|
HttpParse,
|
|
|
|
HttpOther,
|
2018-12-09 15:38:30 -05:00
|
|
|
TooLarge,
|
2018-12-21 04:47:09 -05:00
|
|
|
|
|
|
|
// custom errors
|
|
|
|
InvalidUri,
|
2019-02-18 18:26:41 -05:00
|
|
|
InvalidSeekMode,
|
2019-06-19 22:07:01 -04:00
|
|
|
OpNotAvailable,
|
2019-04-21 21:26:56 -04:00
|
|
|
WorkerInitFailed,
|
|
|
|
UnixError,
|
2019-06-17 21:02:08 -04:00
|
|
|
NoAsyncSupport,
|
|
|
|
NoSyncSupport,
|
2019-06-09 09:08:20 -04:00
|
|
|
ImportMapError,
|
2019-07-10 18:53:48 -04:00
|
|
|
InvalidPath,
|
core: clearly define when module lookup is path-based vs URL-based
The rules are now as follows:
* In `import` statements, as mandated by the WHATWG specification,
the import specifier is always treated as a URL.
If it is a relative URL, it must start with either / or ./ or ../
* A script name passed to deno as a command line argument may be either
an absolute URL or a local path.
- If the name starts with a valid URI scheme followed by a colon, e.g.
'http:', 'https:', 'file:', 'foo+bar:', it always interpreted as a
URL (even if Deno doesn't support the indicated protocol).
- Otherwise, the script name is interpreted as a local path. The local
path may be relative, and operating system semantics determine how
it is resolved. Prefixing a relative path with ./ is not required.
2019-07-08 03:55:24 -04:00
|
|
|
ImportPrefixMissing,
|
2019-07-10 18:53:48 -04:00
|
|
|
UnsupportedFetchScheme,
|
2019-07-22 18:52:40 -04:00
|
|
|
TooManyRedirects,
|
2019-06-19 22:07:01 -04:00
|
|
|
|
|
|
|
// other kinds
|
|
|
|
Diagnostic,
|
|
|
|
JSError,
|
2018-08-15 23:36:48 -04:00
|
|
|
}
|
|
|
|
|
2018-10-13 16:03:27 -04:00
|
|
|
table Cwd {}
|
|
|
|
|
|
|
|
table CwdRes {
|
|
|
|
cwd: string;
|
|
|
|
}
|
|
|
|
|
2018-10-21 22:14:27 -04:00
|
|
|
enum MediaType: byte {
|
|
|
|
JavaScript = 0,
|
|
|
|
TypeScript,
|
|
|
|
Json,
|
|
|
|
Unknown
|
|
|
|
}
|
|
|
|
|
2018-07-06 11:27:36 -04:00
|
|
|
table Base {
|
2019-06-14 13:58:20 -04:00
|
|
|
cmd_id: uint32;
|
2018-12-12 08:24:36 -05:00
|
|
|
sync: bool = false;
|
2018-08-15 23:36:48 -04:00
|
|
|
error_kind: ErrorKind = NoError;
|
2018-07-06 11:27:36 -04:00
|
|
|
error: string;
|
2018-10-03 21:12:23 -04:00
|
|
|
inner: Any;
|
2018-07-04 14:50:28 -04:00
|
|
|
}
|
|
|
|
|
2018-07-23 14:13:12 -04:00
|
|
|
table Start {
|
2018-07-06 11:27:36 -04:00
|
|
|
unused: int8;
|
|
|
|
}
|
|
|
|
|
|
|
|
table StartRes {
|
|
|
|
cwd: string;
|
2019-01-06 14:16:42 -05:00
|
|
|
pid: uint32;
|
2018-07-06 11:27:36 -04:00
|
|
|
argv: [string];
|
2019-02-12 21:14:02 -05:00
|
|
|
main_module: string; // Absolute URL.
|
2018-07-06 11:27:36 -04:00
|
|
|
debug_flag: bool;
|
2018-09-02 18:50:46 -04:00
|
|
|
deps_flag: bool;
|
2018-10-11 17:23:22 -04:00
|
|
|
types_flag: bool;
|
2018-10-15 20:52:33 -04:00
|
|
|
version_flag: bool;
|
|
|
|
deno_version: string;
|
|
|
|
v8_version: string;
|
2019-02-08 22:13:04 -05:00
|
|
|
no_color: bool;
|
2019-05-03 16:24:09 -04:00
|
|
|
xeval_delim: string;
|
2018-07-06 11:27:36 -04:00
|
|
|
}
|
|
|
|
|
2019-02-09 16:55:40 -05:00
|
|
|
table FormatError {
|
|
|
|
error: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
table FormatErrorRes {
|
|
|
|
error: string;
|
|
|
|
}
|
|
|
|
|
2019-04-01 15:09:59 -04:00
|
|
|
// Create worker as host
|
|
|
|
table CreateWorker {
|
|
|
|
specifier: string;
|
2019-08-05 07:23:41 -04:00
|
|
|
include_deno_namespace: bool;
|
2019-08-06 09:22:11 -04:00
|
|
|
has_source_code: bool;
|
|
|
|
source_code: string;
|
2019-04-01 15:09:59 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
table CreateWorkerRes {
|
|
|
|
rid: uint32;
|
|
|
|
}
|
|
|
|
|
|
|
|
table HostGetWorkerClosed {
|
|
|
|
rid: uint32;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get message from guest worker as host
|
|
|
|
table HostGetMessage {
|
|
|
|
rid: uint32;
|
|
|
|
}
|
|
|
|
|
|
|
|
table HostGetMessageRes {
|
|
|
|
data: [ubyte];
|
|
|
|
}
|
|
|
|
|
|
|
|
// Post message to guest worker as host
|
|
|
|
table HostPostMessage {
|
|
|
|
rid: uint32;
|
|
|
|
// data passed thru the zero-copy data parameter.
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get message from host as guest worker
|
2019-01-08 14:44:06 -05:00
|
|
|
table WorkerGetMessage {
|
|
|
|
unused: int8;
|
|
|
|
}
|
|
|
|
|
|
|
|
table WorkerGetMessageRes {
|
|
|
|
data: [ubyte];
|
|
|
|
}
|
|
|
|
|
2019-04-01 15:09:59 -04:00
|
|
|
// Post message to host as guest worker
|
2019-01-08 14:44:06 -05:00
|
|
|
table WorkerPostMessage {
|
|
|
|
// data passed thru the zero-copy data parameter.
|
|
|
|
}
|
|
|
|
|
2019-07-17 18:15:30 -04:00
|
|
|
table FetchSourceFile {
|
2018-12-11 11:23:59 -05:00
|
|
|
specifier: string;
|
|
|
|
referrer: string;
|
2018-07-06 11:27:36 -04:00
|
|
|
}
|
|
|
|
|
2019-07-17 18:15:30 -04:00
|
|
|
table FetchSourceFileRes {
|
2018-07-06 11:27:36 -04:00
|
|
|
// If it's a non-http module, moduleName and filename will be the same.
|
2019-05-20 12:06:57 -04:00
|
|
|
// For http modules, module_name is its resolved http URL, and filename
|
2018-07-06 11:27:36 -04:00
|
|
|
// is the location of the locally downloaded source code.
|
|
|
|
module_name: string;
|
|
|
|
filename: string;
|
2018-10-21 22:14:27 -04:00
|
|
|
media_type: MediaType;
|
2019-02-18 10:42:15 -05:00
|
|
|
data: [ubyte];
|
2018-07-06 11:27:36 -04:00
|
|
|
}
|
|
|
|
|
2019-07-29 05:11:08 -04:00
|
|
|
table ApplySourceMap {
|
|
|
|
filename: string;
|
|
|
|
line: int;
|
|
|
|
column: int;
|
|
|
|
}
|
|
|
|
|
2019-05-20 12:06:57 -04:00
|
|
|
table Cache {
|
|
|
|
extension: string;
|
|
|
|
module_id: string;
|
|
|
|
contents: string;
|
|
|
|
}
|
|
|
|
|
2018-10-13 16:03:27 -04:00
|
|
|
table Chdir {
|
|
|
|
directory: string;
|
|
|
|
}
|
|
|
|
|
2019-03-10 15:37:05 -04:00
|
|
|
table GlobalTimer {
|
2019-01-26 16:10:38 -05:00
|
|
|
timeout: int;
|
2018-09-24 22:46:36 -04:00
|
|
|
}
|
|
|
|
|
2019-03-10 15:37:05 -04:00
|
|
|
table GlobalTimerRes { }
|
|
|
|
|
|
|
|
table GlobalTimerStop { }
|
|
|
|
|
2018-07-23 14:13:12 -04:00
|
|
|
table Exit {
|
2018-07-06 11:27:36 -04:00
|
|
|
code: int;
|
|
|
|
}
|
|
|
|
|
2018-08-31 07:51:12 -04:00
|
|
|
table Environ {}
|
|
|
|
|
|
|
|
table SetEnv {
|
2018-09-07 18:59:02 -04:00
|
|
|
key: string;
|
|
|
|
value: string;
|
2018-08-31 07:51:12 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
table EnvironRes {
|
2018-11-02 20:09:10 -04:00
|
|
|
map: [KeyValue];
|
2018-08-31 07:51:12 -04:00
|
|
|
}
|
|
|
|
|
2018-11-02 20:09:10 -04:00
|
|
|
table KeyValue {
|
2018-09-07 18:59:02 -04:00
|
|
|
key: string;
|
|
|
|
value: string;
|
2018-08-31 07:51:12 -04:00
|
|
|
}
|
|
|
|
|
2019-03-04 11:04:19 -05:00
|
|
|
table Permissions {}
|
|
|
|
|
|
|
|
table PermissionRevoke {
|
|
|
|
permission: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
table PermissionsRes {
|
|
|
|
run: bool;
|
|
|
|
read: bool;
|
|
|
|
write: bool;
|
|
|
|
net: bool;
|
|
|
|
env: bool;
|
2019-05-23 12:28:29 -04:00
|
|
|
hrtime: bool;
|
2019-03-04 11:04:19 -05:00
|
|
|
}
|
|
|
|
|
2018-11-14 20:36:34 -05:00
|
|
|
// Note this represents The WHOLE header of an http message, not just the key
|
|
|
|
// value pairs. That means it includes method and url for Requests and status
|
|
|
|
// for responses. This is why it is singular "Header" instead of "Headers".
|
|
|
|
table HttpHeader {
|
|
|
|
is_request: bool;
|
|
|
|
// Request only:
|
|
|
|
method: string;
|
2018-07-06 11:27:36 -04:00
|
|
|
url: string;
|
2018-11-14 20:36:34 -05:00
|
|
|
// Response only:
|
|
|
|
status: uint16;
|
|
|
|
// Both:
|
|
|
|
fields: [KeyValue];
|
|
|
|
}
|
|
|
|
|
|
|
|
table Fetch {
|
|
|
|
header: HttpHeader;
|
2018-07-06 11:27:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
table FetchRes {
|
2018-11-14 20:36:34 -05:00
|
|
|
header: HttpHeader;
|
2018-10-26 12:14:06 -04:00
|
|
|
body_rid: uint32;
|
2018-07-06 11:27:36 -04:00
|
|
|
}
|
|
|
|
|
2018-08-23 18:36:45 -04:00
|
|
|
table MakeTempDir {
|
|
|
|
dir: string;
|
|
|
|
prefix: string;
|
|
|
|
suffix: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
table MakeTempDirRes {
|
|
|
|
path: string;
|
|
|
|
}
|
|
|
|
|
2018-09-10 05:48:36 -04:00
|
|
|
table Mkdir {
|
2018-08-26 02:26:30 -04:00
|
|
|
path: string;
|
2019-01-17 23:39:06 -05:00
|
|
|
recursive: bool;
|
|
|
|
mode: uint; // Specified by https://godoc.org/os#FileMode
|
2018-08-26 02:26:30 -04:00
|
|
|
}
|
|
|
|
|
2018-10-26 16:01:45 -04:00
|
|
|
table Chmod {
|
|
|
|
path: string;
|
2019-01-17 23:39:06 -05:00
|
|
|
mode: uint; // Specified by https://godoc.org/os#FileMode
|
2018-10-26 16:01:45 -04:00
|
|
|
}
|
|
|
|
|
2019-05-07 21:58:58 -04:00
|
|
|
table Chown {
|
|
|
|
path: string;
|
|
|
|
uid: uint;
|
|
|
|
gid: uint; // Specified by https://godoc.org/os#Chown
|
|
|
|
}
|
|
|
|
|
2018-09-10 23:40:03 -04:00
|
|
|
table Remove {
|
|
|
|
path: string;
|
|
|
|
recursive: bool;
|
|
|
|
}
|
|
|
|
|
2018-10-03 17:56:56 -04:00
|
|
|
table ReadDir {
|
|
|
|
path: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
table ReadDirRes {
|
|
|
|
entries: [StatRes];
|
|
|
|
}
|
|
|
|
|
2018-09-30 18:06:41 -04:00
|
|
|
table CopyFile {
|
|
|
|
from: string;
|
|
|
|
to: string;
|
|
|
|
}
|
|
|
|
|
2018-09-12 11:44:58 -04:00
|
|
|
table Rename {
|
2018-09-03 20:22:30 -04:00
|
|
|
oldpath: string;
|
|
|
|
newpath: string;
|
|
|
|
}
|
|
|
|
|
2018-09-25 00:20:49 -04:00
|
|
|
table Readlink {
|
|
|
|
name: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
table ReadlinkRes {
|
|
|
|
path: string;
|
|
|
|
}
|
|
|
|
|
2018-11-05 12:55:59 -05:00
|
|
|
table ReplStart {
|
|
|
|
history_file: string;
|
|
|
|
// TODO add config
|
|
|
|
}
|
|
|
|
|
|
|
|
table ReplStartRes {
|
2018-11-05 01:21:21 -05:00
|
|
|
rid: uint32;
|
2018-11-05 12:55:59 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
table ReplReadline {
|
2018-11-05 01:21:21 -05:00
|
|
|
rid: uint32;
|
2018-11-05 12:55:59 -05:00
|
|
|
prompt: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
table ReplReadlineRes {
|
|
|
|
line: string;
|
|
|
|
}
|
|
|
|
|
2018-10-30 15:58:55 -04:00
|
|
|
table Resources {}
|
|
|
|
|
|
|
|
table Resource {
|
2018-11-05 01:21:21 -05:00
|
|
|
rid: uint32;
|
2018-10-30 15:58:55 -04:00
|
|
|
repr: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
table ResourcesRes {
|
|
|
|
resources: [Resource];
|
|
|
|
}
|
|
|
|
|
2018-09-19 00:38:24 -04:00
|
|
|
table Symlink {
|
|
|
|
oldname: string;
|
|
|
|
newname: string;
|
|
|
|
}
|
|
|
|
|
2019-04-08 09:11:32 -04:00
|
|
|
table Link {
|
|
|
|
oldname: string;
|
|
|
|
newname: string;
|
|
|
|
}
|
|
|
|
|
2018-09-11 15:38:53 -04:00
|
|
|
table Stat {
|
2018-08-29 09:22:25 -04:00
|
|
|
filename: string;
|
|
|
|
lstat: bool;
|
|
|
|
}
|
|
|
|
|
2018-09-11 15:38:53 -04:00
|
|
|
table StatRes {
|
2018-08-29 09:22:25 -04:00
|
|
|
is_file: bool;
|
|
|
|
is_symlink: bool;
|
|
|
|
len: ulong;
|
|
|
|
modified:ulong;
|
|
|
|
accessed:ulong;
|
|
|
|
created:ulong;
|
2018-09-17 19:53:55 -04:00
|
|
|
mode: uint;
|
|
|
|
has_mode: bool; // false on windows
|
2018-10-03 17:56:56 -04:00
|
|
|
name: string;
|
2018-08-29 09:22:25 -04:00
|
|
|
}
|
|
|
|
|
2018-09-30 15:06:20 -04:00
|
|
|
table Truncate {
|
|
|
|
name: string;
|
|
|
|
len: uint;
|
|
|
|
}
|
|
|
|
|
2019-06-25 12:05:41 -04:00
|
|
|
table HomeDir {}
|
|
|
|
|
|
|
|
table HomeDirRes {
|
|
|
|
path: string;
|
|
|
|
}
|
|
|
|
|
2019-08-06 17:05:47 -04:00
|
|
|
table ExecPath {}
|
|
|
|
|
|
|
|
table ExecPathRes {
|
|
|
|
path: string;
|
|
|
|
}
|
|
|
|
|
2019-05-01 05:08:12 -04:00
|
|
|
table Utime {
|
|
|
|
filename: string;
|
|
|
|
atime: uint64;
|
|
|
|
mtime: uint64;
|
|
|
|
}
|
|
|
|
|
2018-09-27 00:56:39 -04:00
|
|
|
table Open {
|
|
|
|
filename: string;
|
|
|
|
perm: uint;
|
2018-12-12 12:05:58 -05:00
|
|
|
mode: string;
|
2018-09-27 00:56:39 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
table OpenRes {
|
2018-11-05 01:21:21 -05:00
|
|
|
rid: uint32;
|
2018-09-27 00:56:39 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
table Close {
|
2018-11-05 01:21:21 -05:00
|
|
|
rid: uint32;
|
2018-09-27 00:56:39 -04:00
|
|
|
}
|
|
|
|
|
2019-04-21 21:26:56 -04:00
|
|
|
table Kill {
|
|
|
|
pid: int32;
|
|
|
|
signo: int32;
|
|
|
|
}
|
|
|
|
|
2018-10-05 12:16:24 -04:00
|
|
|
table Shutdown {
|
2018-11-05 01:21:21 -05:00
|
|
|
rid: uint32;
|
2018-10-05 12:16:24 -04:00
|
|
|
how: uint;
|
|
|
|
}
|
|
|
|
|
2018-10-03 23:58:29 -04:00
|
|
|
table Listen {
|
|
|
|
network: string;
|
|
|
|
address: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
table ListenRes {
|
2018-11-05 01:21:21 -05:00
|
|
|
rid: uint32;
|
2018-10-03 23:58:29 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
table Accept {
|
2018-11-05 01:21:21 -05:00
|
|
|
rid: uint32;
|
2018-10-03 23:58:29 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
table Dial {
|
|
|
|
network: string;
|
|
|
|
address: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Response to Accept and Dial.
|
|
|
|
table NewConn {
|
2018-11-05 01:21:21 -05:00
|
|
|
rid: uint32;
|
2018-10-03 23:58:29 -04:00
|
|
|
remote_addr: string;
|
|
|
|
local_addr: string;
|
|
|
|
}
|
|
|
|
|
2018-10-05 13:21:15 -04:00
|
|
|
table Metrics {}
|
|
|
|
|
|
|
|
table MetricsRes {
|
|
|
|
ops_dispatched: uint64;
|
|
|
|
ops_completed: uint64;
|
|
|
|
bytes_sent_control: uint64;
|
|
|
|
bytes_sent_data: uint64;
|
|
|
|
bytes_received: uint64;
|
|
|
|
}
|
|
|
|
|
2018-11-15 23:07:40 -05:00
|
|
|
enum ProcessStdio: byte { Inherit, Piped, Null }
|
|
|
|
|
|
|
|
table Run {
|
|
|
|
args: [string];
|
|
|
|
cwd: string;
|
2019-02-15 10:37:04 -05:00
|
|
|
env: [KeyValue];
|
2018-11-15 23:07:40 -05:00
|
|
|
stdin: ProcessStdio;
|
|
|
|
stdout: ProcessStdio;
|
|
|
|
stderr: ProcessStdio;
|
2019-06-21 19:00:14 -04:00
|
|
|
stdin_rid: uint32;
|
|
|
|
stdout_rid: uint32;
|
|
|
|
stderr_rid: uint32;
|
2018-11-15 23:07:40 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
table RunRes {
|
|
|
|
rid: uint32;
|
|
|
|
pid: uint32;
|
|
|
|
// The following stdio rids are only valid if "Piped" was specified for the
|
|
|
|
// corresponding stdio stream. The caller MUST issue a close op for all valid
|
|
|
|
// stdio streams.
|
|
|
|
stdin_rid: uint32;
|
|
|
|
stdout_rid: uint32;
|
|
|
|
stderr_rid: uint32;
|
|
|
|
}
|
|
|
|
|
|
|
|
table RunStatus {
|
|
|
|
rid: uint32;
|
|
|
|
}
|
|
|
|
|
|
|
|
table RunStatusRes {
|
|
|
|
got_signal: bool;
|
|
|
|
exit_code: int;
|
|
|
|
exit_signal: int;
|
|
|
|
}
|
|
|
|
|
2019-02-02 01:27:42 -05:00
|
|
|
table Now {}
|
|
|
|
|
|
|
|
table NowRes {
|
2019-04-08 16:22:40 -04:00
|
|
|
seconds: uint64;
|
|
|
|
subsec_nanos: uint32;
|
2019-02-02 01:27:42 -05:00
|
|
|
}
|
|
|
|
|
2019-02-02 22:05:30 -05:00
|
|
|
table IsTTY {}
|
|
|
|
|
|
|
|
table IsTTYRes {
|
|
|
|
stdin: bool;
|
|
|
|
stdout: bool;
|
|
|
|
stderr: bool;
|
|
|
|
}
|
|
|
|
|
2019-02-18 18:26:41 -05:00
|
|
|
table Seek {
|
|
|
|
rid: uint32;
|
|
|
|
offset: int;
|
|
|
|
whence: uint;
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:03:01 -04:00
|
|
|
table GetRandomValues {}
|
|
|
|
|
2018-08-13 19:55:10 -04:00
|
|
|
root_type Base;
|