blob: 47a77bd6edb16f9797a77788a1210bb032fdb239 (
plain)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
// -------------------------------------------------------------------------------------
//
// Project
pub const PATH_TEMP: &str = "./.temp/";
// Default Port
pub const PORT: u16 = 25331;
// Vault Host Name
pub const VAULT_HOST_NAME: &str = "host";
// Server
// Server - Vault (Main)
pub const SERVER_FILE_VAULT: &str = "./vault.toml";
// Server - Sheets
pub const REF_SHEET_NAME: &str = "ref";
pub const SERVER_PATH_SHEETS: &str = "./sheets/";
pub const SERVER_FILE_SHEET: &str = "./sheets/{sheet_name}.yaml";
// Server - Members
pub const SERVER_PATH_MEMBERS: &str = "./members/";
pub const SERVER_PATH_MEMBER_PUB: &str = "./key/";
pub const SERVER_FILE_MEMBER_INFO: &str = "./members/{member_id}.toml";
pub const SERVER_FILE_MEMBER_PUB: &str = "./key/{member_id}.pem";
// Server - Virtual File Storage
pub const SERVER_PATH_VF_TEMP: &str = "./.temp/{temp_name}";
pub const SERVER_PATH_VF_ROOT: &str = "./storage/";
pub const SERVER_PATH_VF_STORAGE: &str = "./storage/{vf_index}/{vf_id}/";
pub const SERVER_FILE_VF_VERSION_INSTANCE: &str = "./storage/{vf_index}/{vf_id}/{vf_version}.rf";
pub const SERVER_FILE_VF_META: &str = "./storage/{vf_index}/{vf_id}/meta.yaml";
// Server - Service
pub const SERVER_FILE_LOCKFILE: &str = "./.lock";
// Server - Documents
pub const SERVER_FILE_README: &str = "./README.md";
// -------------------------------------------------------------------------------------
// Client
pub const CLIENT_PATH_WORKSPACE_ROOT: &str = "./.jv/";
pub const CLIENT_FOLDER_WORKSPACE_ROOT_NAME: &str = ".jv";
// Client - Workspace (Main)
pub const CLIENT_FILE_WORKSPACE: &str = "./.jv/workspace.toml";
// Client - Latest Information
pub const CLIENT_FILE_LATEST_INFO: &str = "./.jv/.{account}_latest.json";
// Client - Local
pub const CLIENT_SUFFIX_LOCAL_SHEET_FILE: &str = ".json";
pub const CLIENT_SUFFIX_CACHED_SHEET_FILE: &str = ".json";
pub const CLIENT_PATH_LOCAL_DRAFT: &str = "./.jv/drafts/{account}/{sheet_name}/";
pub const CLIENT_PATH_LOCAL_SHEET: &str = "./.jv/local/";
pub const CLIENT_PATH_CACHED_SHEET: &str = "./.jv/cached/";
pub const CLIENT_FILE_LOCAL_SHEET: &str = "./.jv/local/{account}/{sheet_name}.json";
pub const CLIENT_FILE_CACHED_SHEET: &str = "./.jv/cached/{sheet_name}.json";
pub const CLIENT_FILE_MEMBER_HELD: &str = "./.jv/helds/{account}.json";
pub const CLIENT_FILE_LOCAL_SHEET_NOSET: &str = "./.jv/.temp/wrong_local_sheet.toml";
pub const CLIENT_FILE_MEMBER_HELD_NOSET: &str = "./.jv/.temp/wrong_member_held.toml";
// Client - Other
pub const CLIENT_FILE_IGNOREFILES: &str = "IGNORE_RULES.toml";
pub const CLIENT_FILE_TODOLIST: &str = "./SETUP.md";
// -------------------------------------------------------------------------------------
// User - Verify (Documents path)
pub const USER_FILE_ACCOUNTS: &str = "./accounts/";
pub const USER_FILE_KEY: &str = "./accounts/{self_id}_private.pem";
pub const USER_FILE_MEMBER: &str = "./accounts/{self_id}.toml";
|