-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathtypes.w
More file actions
49 lines (41 loc) · 1001 Bytes
/
types.w
File metadata and controls
49 lines (41 loc) · 1001 Bytes
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
bring cloud;
pub struct BuildOptions {
nodePath: str;
path: str;
handler: str;
homeEnv: str;
pathEnv: str;
}
/// Props to construct a new python inflight handler.
/// `path` should be an absolute path to source of the code.
pub struct InflightProps {
path: str;
handler: str;
lift: Map<Lift>?;
}
pub struct Lift {
obj: std.Resource;
allow: Array<str>;
}
pub struct LiftOptions {
id: str;
allow: Array<str>;
}
pub interface IInflight extends cloud.IFunctionHandler {
lift(obj: std.Resource, options: LiftOptions): cloud.IFunctionHandler;
}
pub interface IBucketEventInflight extends cloud.IBucketEventHandler {
lift(obj: std.Resource, options: LiftOptions): cloud.IBucketEventHandler;
}
pub interface IApiOnRequest extends cloud.IApiEndpointHandler {
lift(obj: std.Resource, options: LiftOptions): cloud.IApiEndpointHandler;
}
pub struct LiftedSim {
id: str;
path: str;
type: str;
target: str;
handle: str;
props: Json?;
children: Map<LiftedSim>?;
}