-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypes.ts
59 lines (52 loc) · 852 Bytes
/
types.ts
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
50
51
52
53
54
55
56
57
58
59
//#region interfaces
export interface IVersion {
Commit: string;
Golang: string;
Repo: string;
System: string;
Version: string;
}
export interface IAddResult {
Hash: string;
Size: number;
}
export interface IObject {
Hash: string;
Links: IEntry[];
}
export interface IClientError {
status: number;
statusText: string;
message: string;
error?: any;
}
export interface IStat {
Hash: string;
Size: number;
CumulativeSize: number;
/**
* file, directory
*/
Type: string;
}
export interface IEntry {
Name: string;
/**
* 0 = file, 1 = directory
*/
Type: number;
Hash: string;
/**
* 0 if directory, greater otherwise
*/
Size: number;
}
export interface IKeyGenResult {
Id: string;
Name: string;
}
export interface INamePublishResult {
Name: string;
Value: string;
}
//#endregion