-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathendpoint.js
152 lines (139 loc) · 3.13 KB
/
endpoint.js
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
const urls = {
/**
* Make Directory.
*/
mkdir: "operations/mkdir",
/**
* Purge a directory.
*/
purge: "operations/purge",
/**
* Delete a file.
*/
deleteFile: "operations/deletefile",
/**
* Create public link.
*/
createPublicLink: "operations/publiclink",
/**
* Stats for rclone backend.
*/
stats: "core/stats",
/**
* Check and set bwlimit.
*/
bwlimit: "core/bwlimit",
/**
* Move a directory.
*/
moveDir: "sync/move",
/**
* Move a file.
*/
moveFile: "operations/movefile",
/**
* Copy Directory
*/
copyDir: "sync/copy",
/**
* Copy Files.
*/
copyFile: "operations/copyfile",
/**
* Cleanup the remote recycle bin(trash).
*/
cleanUpRemote: "operations/cleanup",
/**
* Try to connect without any authentication headers.
*/
noopAuth: "rc/noopauth",
/**
* Check the version of the rclone.
*/
getRcloneVersion: "core/version",
/**
* Memstats for the rclone backend.
*/
getRcloneMemStats: "core/memstats",
/**
* Get options available in the backend.
*/
getOptions: "options/get",
/**
* Get providers configuration in the rclone backend.
*/
getProviders: "config/providers",
/**
* Get entire remote configuration dump from backend.
*/
getConfigDump: "config/dump",
/**
* List the currently running jobs.
*/
getRunningJobs: "job/list",
/**
* Get the status for a job.
*/
getStatusForJob: "job/status",
/**
* Get config for a specific remote.
*/
getConfigForRemote: "config/get",
/**
* Create a new config with parameters.
*/
createConfig: "config/create",
/**
* Update an existing config with parameters.
*/
updateConfig: "config/update",
/**
* Get File system information and supported features for a given remote time.
*/
getFsInfo: "operations/fsinfo",
/**
* List the remote names of created remotes.
*/
listRemotes: "config/listremotes",
/**
* Get the files for given remoteName and path.
*/
getFilesList: "operations/list",
/**
* Get information about the rclone backend.
*/
getAbout: "operations/about",
/**
* Delete a config with config name.
*/
deleteConfig: "config/delete",
/**
* Stop a running job by job id
*/
stopJob: "job/stop",
/**
* Send a command to backend through rc
*/
backendCommand: "backend/command",
/**
* Executes rclone in a seperate process for output
*/
coreCommand: "core/command",
/**
* Transferred jobs for rclone.
*/
transferred: 'core/transferred',
/**
* getSize of a fs
*/
getSize: 'operations/size',
/**
* This deletes entire stats group.
*/
statsDelete: 'core/stats-delete',
/**
* This clears counters, errors and finished transfers for all stats or specific stats group if group is provided.
*/
statsReset: 'core/stats-reset',
};
export default urls;