File tree Expand file tree Collapse file tree 6 files changed +574
-228
lines changed Expand file tree Collapse file tree 6 files changed +574
-228
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " arangodb-instance-manager" ,
3
- "version" : " 0.1.3 " ,
3
+ "version" : " 1.0.0 " ,
4
4
"author" : " ArangoDB GmbH" ,
5
5
"license" : " Apache-2.0" ,
6
6
"description" : " Node server to manage ArangoDB instances" ,
15
15
" LICENSE"
16
16
],
17
17
"dependencies" : {
18
- "@types/request-promise" : " ^4.1.41 " ,
18
+ "@types/request-promise-native " : " ^1.0.15 " ,
19
19
"arangojs" : " ^6.2.4" ,
20
20
"dedent" : " ^0.7.0" ,
21
21
"express" : " ^4.16.3" ,
26
26
"path" : " ^0.12.7" ,
27
27
"portfinder" : " ^1.0.13" ,
28
28
"request" : " ^2.85.0" ,
29
- "request-promise" : " ^4.2.2 " ,
29
+ "request-promise-native " : " ^1.0.5 " ,
30
30
"rmfr" : " ^2.0.0" ,
31
31
"tmp" : " ^0.0.33" ,
32
32
"which" : " ^1.3.0"
45
45
"scripts" : {
46
46
"compile" : " tsc -p . --outDir ./lib/"
47
47
}
48
- }
48
+ }
Original file line number Diff line number Diff line change 1
1
import { ChildProcess } from "child_process" ;
2
+ import VersionResponse from "./VersionResponse" ;
3
+
4
+ export type Role = "agent" | "primary" | "coordinator" | "single" ;
5
+ export type Status = "NEW" | "RUNNING" | "STOPPED" | "EXITED" | "KILLED" ;
2
6
3
7
export default interface Instance {
4
8
name : string ;
@@ -7,9 +11,11 @@ export default interface Instance {
7
11
binary ?: string ;
8
12
args : string [ ] ;
9
13
port ?: string ;
10
- status : string ;
14
+ status : Status ;
11
15
exitcode : number | null ;
12
16
process : ChildProcess | null ;
13
17
logFn : ( line : string ) => void ;
14
- role : string ;
18
+ role : Role ;
19
+ id ?: string ;
20
+ version ?: VersionResponse ;
15
21
}
You can’t perform that action at this time.
0 commit comments