Compare commits
674
Commits
docs
..
v1.0.0-rc1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
199267c13e | ||
|
|
90e4df62d4 | ||
|
|
ae3d9574b6 | ||
|
|
27e25f8943 | ||
|
|
ba3eb488e3 | ||
|
|
c09157861a | ||
|
|
027d5defd7 | ||
|
|
d13b8079c6 | ||
|
|
3bcb893ab9 | ||
|
|
1840e805bd | ||
|
|
163c5f6e84 | ||
|
|
cbc3ac5995 | ||
|
|
1afd3bb253 | ||
|
|
cbd90839c0 | ||
|
|
642a4c1f60 | ||
|
|
c8f9d7862e | ||
|
|
b5264b549e | ||
|
|
8a711e2d4c | ||
|
|
fc364cfe11 | ||
|
|
fa42ffaaf5 | ||
|
|
b9df1b4459 | ||
|
|
7cfbfcc69c | ||
|
|
8fff4dedf7 | ||
|
|
64ae76f1dc | ||
|
|
454a6dc745 | ||
|
|
8f764063c2 | ||
|
|
0c6478c935 | ||
|
|
8c79736d8a | ||
|
|
a102f8d192 | ||
|
|
8df98a0015 | ||
|
|
1bb8881f92 | ||
|
|
098e87d1e0 | ||
|
|
82bfca7a1f | ||
|
|
fdf519acde | ||
|
|
2c8e74eef7 | ||
|
|
5e38b944a3 | ||
|
|
5d3eb1d93c | ||
|
|
3dc32412b5 | ||
|
|
fe73c6a2aa | ||
|
|
7b9c01f37e | ||
|
|
e8ccd9f884 | ||
|
|
bfaa7a597a | ||
|
|
40584f19dc | ||
|
|
95e2b9f563 | ||
|
|
e1cc04c604 | ||
|
|
0a8f935e4b | ||
|
|
8d448a5229 | ||
|
|
7842037c4f | ||
|
|
796c94fb54 | ||
|
|
96015652a5 | ||
|
|
c2d59c07d2 | ||
|
|
828781cb10 | ||
|
|
558ec76aa1 | ||
|
|
d801724e13 | ||
|
|
6555142d36 | ||
|
|
0a579360e3 | ||
|
|
476aad0955 | ||
|
|
d7ceb28f90 | ||
|
|
1e3dbafbf1 | ||
|
|
e55cfd7379 | ||
|
|
c973a67450 | ||
|
|
25d196332a | ||
|
|
574e660311 | ||
|
|
cdbb001a53 | ||
|
|
a1379e380f | ||
|
|
0e11c36fe8 | ||
|
|
09d8166591 | ||
|
|
2408c286eb | ||
|
|
5d23475a47 | ||
|
|
0eba9a04b1 | ||
|
|
8dcc5f1a57 | ||
|
|
0154d6a4af | ||
|
|
8e454ef9af | ||
|
|
94f43d3e70 | ||
|
|
b443fd48ce | ||
|
|
d80c3faa5f | ||
|
|
9daef8c66c | ||
|
|
7eb24bc131 | ||
|
|
656197e69f | ||
|
|
c37787bdbf | ||
|
|
982ebdcbb4 | ||
|
|
5b8438dacc | ||
|
|
f00b60d129 | ||
|
|
ef928234bf | ||
|
|
51112d6918 | ||
|
|
245a06e79a | ||
|
|
cc4fb39e67 | ||
|
|
ad4c0e9c53 | ||
|
|
66981de2ca | ||
|
|
f0a06efc82 | ||
|
|
b46bccb307 | ||
|
|
2e61377d78 | ||
|
|
f71a00114e | ||
|
|
fb923078ae | ||
|
|
4d7df06b96 | ||
|
|
50e4c2cf6c | ||
|
|
2a7165020e | ||
|
|
e1b9dba1f7 | ||
|
|
b9c407e876 | ||
|
|
7245bf345d | ||
|
|
e12e2da8e0 | ||
|
|
a7ce0c8172 | ||
|
|
17bdf23102 | ||
|
|
242e6ba12e | ||
|
|
db6a3846ca | ||
|
|
933a5be874 | ||
|
|
201be45953 | ||
|
|
ceb5ede98b | ||
|
|
0f809b99fd | ||
|
|
2399501a88 | ||
|
|
3d1417959c | ||
|
|
9e5e4232e0 | ||
|
|
ca13c11bb6 | ||
|
|
9f1c2e4808 | ||
|
|
b2dce191f0 | ||
|
|
0a8c913699 | ||
|
|
bce5e6310c | ||
|
|
829657e8bb | ||
|
|
ddf51d226a | ||
|
|
ebcc8c6842 | ||
|
|
29efcbbe8d | ||
|
|
4b2a670e13 | ||
|
|
5a271d426b | ||
|
|
a467820a30 | ||
|
|
413d7761f5 | ||
|
|
1b508d41a4 | ||
|
|
aa4c13f04d | ||
|
|
dbc4550539 | ||
|
|
a1e6a152fd | ||
|
|
2bf8b02536 | ||
|
|
e1fbcf631b | ||
|
|
8455f8489d | ||
|
|
57f4953a48 | ||
|
|
577de3c0db | ||
|
|
dd0fec860f | ||
|
|
5785da6292 | ||
|
|
db8f9ae565 | ||
|
|
0a4f0d7ea4 | ||
|
|
79f8e7e65d | ||
|
|
a9bf1b32c5 | ||
|
|
9d40d05538 | ||
|
|
12c6358005 | ||
|
|
03a6b07424 | ||
|
|
a3460c7782 | ||
|
|
1ed15cd097 | ||
|
|
014ee934ee | ||
|
|
f880730bd0 | ||
|
|
7dbad9e05b | ||
|
|
876a6790fa | ||
|
|
e7777a504f | ||
|
|
80a4916b97 | ||
|
|
1c5e1ce36b | ||
|
|
6ea6c8f9f9 | ||
|
|
817994177e | ||
|
|
6bd3feb5f3 | ||
|
|
7c35044aed | ||
|
|
6509fd7d20 | ||
|
|
95a1046378 | ||
|
|
4a79f385c4 | ||
|
|
a26c8194ea | ||
|
|
340f92f687 | ||
|
|
4ae20f8c7f | ||
|
|
59179f4d73 | ||
|
|
549c0b212e | ||
|
|
8fb21df5e8 | ||
|
|
c32d348926 | ||
|
|
62ada72b42 | ||
|
|
de43c2b8d2 | ||
|
|
66e79332ae | ||
|
|
99c320e9f4 | ||
|
|
55b72af77d | ||
|
|
4a1a8110df | ||
|
|
8ff2c4d943 | ||
|
|
be18a661a6 | ||
|
|
42d0598920 | ||
|
|
2649661fbc | ||
|
|
8ab8790da1 | ||
|
|
17809a9276 | ||
|
|
0070b190e1 | ||
|
|
9c919a56eb | ||
|
|
fdfb14303e | ||
|
|
27f8225dde | ||
|
|
7785073115 | ||
|
|
fdf786fa51 | ||
|
|
b8a7e890bf | ||
|
|
049f178544 | ||
|
|
08a5198e3c | ||
|
|
4b3646ff4d | ||
|
|
13ef57e0b6 | ||
|
|
ff57cba5f7 | ||
|
|
2957194167 | ||
|
|
6a4726261b | ||
|
|
e8bc1358dd | ||
|
|
995a9d19bf | ||
|
|
7708335d55 | ||
|
|
da4ba6cb7e | ||
|
|
c88138239a | ||
|
|
d9f4f943d8 | ||
|
|
b0513e6a38 | ||
|
|
8f3962de88 | ||
|
|
60f43af3a9 | ||
|
|
484b1b94d5 | ||
|
|
ccd8b89d72 | ||
|
|
861e69d751 | ||
|
|
5a10cbc84d | ||
|
|
1b048da76a | ||
|
|
ded9a0186e | ||
|
|
353cd3c5df | ||
|
|
13227efd05 | ||
|
|
86e344c92c | ||
|
|
75e9506254 | ||
|
|
f10a948b54 | ||
|
|
aef9716dd0 | ||
|
|
8722bb6b42 | ||
|
|
96990291a3 | ||
|
|
09d466a1b4 | ||
|
|
83d5370a1c | ||
|
|
2c4727d79e | ||
|
|
70e8d4fe18 | ||
|
|
c1f9a99ac9 | ||
|
|
4aaafa8e38 | ||
|
|
b061e3ca9d | ||
|
|
75995aa50b | ||
|
|
0b75e25d74 | ||
|
|
b36390e017 | ||
|
|
67861acd73 | ||
|
|
6defe1bc0e | ||
|
|
d6ed9f3e60 | ||
|
|
d058d3579e | ||
|
|
ea11f701aa | ||
|
|
cef578008a | ||
|
|
872161b86f | ||
|
|
72d1915dd5 | ||
|
|
b864a22a99 | ||
|
|
65baac45d0 | ||
|
|
8fc1f44305 | ||
|
|
3bb27825ac | ||
|
|
4471778363 | ||
|
|
42340296c1 | ||
|
|
56dc31d166 | ||
|
|
9789772d19 | ||
|
|
5b915734b1 | ||
|
|
462f218456 | ||
|
|
7d468c0541 | ||
|
|
743bfc5a4d | ||
|
|
fb74cd49b5 | ||
|
|
cb719cf892 | ||
|
|
a5d4e7299b | ||
|
|
f448ad5554 | ||
|
|
27b7fec1ed | ||
|
|
93c4b3e8a2 | ||
|
|
76f879e857 | ||
|
|
7f853d6174 | ||
|
|
89f187c6fc | ||
|
|
56112b4893 | ||
|
|
56ef8499f1 | ||
|
|
d09a101d2c | ||
|
|
db3e7639ff | ||
|
|
0222eef07a | ||
|
|
1c1c5763b6 | ||
|
|
9553abff31 | ||
|
|
6588ec0e03 | ||
|
|
593de8e6be | ||
|
|
f791b03b68 | ||
|
|
e2647e6ecb | ||
|
|
787c2443dd | ||
|
|
e8308450c2 | ||
|
|
3659c8e5bf | ||
|
|
8a06a852fd | ||
|
|
46ef9bb496 | ||
|
|
2f9902abcb | ||
|
|
2933b52a59 | ||
|
|
f51aa12d4c | ||
|
|
576c4a70cd | ||
|
|
fe470629f3 | ||
|
|
caebff9d0f | ||
|
|
259a72a112 | ||
|
|
980956273e | ||
|
|
b16a713eb6 | ||
|
|
73bf6114e9 | ||
|
|
6be3f130e2 | ||
|
|
0e6087b785 | ||
|
|
74ff11e24e | ||
|
|
a2fe692423 | ||
|
|
9755d47bad | ||
|
|
19b63f1862 | ||
|
|
e67186696d | ||
|
|
933197376f | ||
|
|
a0a5515f3d | ||
|
|
22ae4bbda5 | ||
|
|
aa0de8704e | ||
|
|
2d27ce8a11 | ||
|
|
6ac99a35fb | ||
|
|
28b30f0617 | ||
|
|
f406553009 | ||
|
|
2e9d0973a7 | ||
|
|
2e61176365 | ||
|
|
bd47f19560 | ||
|
|
b4cb488597 | ||
|
|
90f30f88d8 | ||
|
|
bf1c342a1a | ||
|
|
d1892c9b3e | ||
|
|
284a9996df | ||
|
|
ea982deb24 | ||
|
|
f135c55acc | ||
|
|
65c2618628 | ||
|
|
85939e7ebb | ||
|
|
dbe9cbf318 | ||
|
|
18b6abf36c | ||
|
|
a849f1790b | ||
|
|
e26d2feae3 | ||
|
|
dd80ef62c9 | ||
|
|
475a0a11f1 | ||
|
|
5a6bb24ffb | ||
|
|
dbd879641b | ||
|
|
5141662547 | ||
|
|
6212f736c1 | ||
|
|
01da4ddf25 | ||
|
|
92ea44545f | ||
|
|
0fa1ad4110 | ||
|
|
1cc12b0dd5 | ||
|
|
6abc81dc81 | ||
|
|
ca9bbd0fa1 | ||
|
|
2a5a1aa7eb | ||
|
|
a7f5c98c26 | ||
|
|
c61bbd7783 | ||
|
|
c7310ae232 | ||
|
|
19fc24ab1a | ||
|
|
8f3c88e237 | ||
|
|
0dbae42a18 | ||
|
|
4c5d5578c1 | ||
|
|
ae8f49b794 | ||
|
|
4c9b283b88 | ||
|
|
6404d03a7e | ||
|
|
f9d67b687b | ||
|
|
76d77a9d6a | ||
|
|
b211f29ea0 | ||
|
|
183de69f67 | ||
|
|
05cbd4ac90 | ||
|
|
2990186fe5 | ||
|
|
4a52ca32ef | ||
|
|
eeb53b1ac0 | ||
|
|
2f4c5e3e77 | ||
|
|
80de0cd4a1 | ||
|
|
b769ebe804 | ||
|
|
aa46e716de | ||
|
|
7a91b6261a | ||
|
|
c4466850ce | ||
|
|
1d1510d266 | ||
|
|
6a5d4b52dd | ||
|
|
563efc51bb | ||
|
|
d2b2a25beb | ||
|
|
c2ac68c147 | ||
|
|
9175cd2bd5 | ||
|
|
9b39dfef62 | ||
|
|
75618cff2b | ||
|
|
7eb40ea209 | ||
|
|
ebd29e0f10 | ||
|
|
18ff7841c9 | ||
|
|
88c1ecd957 | ||
|
|
24eadda911 | ||
|
|
dae73796cc | ||
|
|
b39c3c3fca | ||
|
|
5204ecf869 | ||
|
|
6aeb3db009 | ||
|
|
dfc50c1d82 | ||
|
|
2f98b8347d | ||
|
|
6e13212de0 | ||
|
|
38049e596e | ||
|
|
f508451824 | ||
|
|
7f23ef555c | ||
|
|
1932fa3679 | ||
|
|
feca909860 | ||
|
|
a36fe7426e | ||
|
|
1ef3792906 | ||
|
|
29d8b1b981 | ||
|
|
b2cece2de8 | ||
|
|
9b779aabf8 | ||
|
|
5e5270eb17 | ||
|
|
69fe9d7a13 | ||
|
|
e99c3b33ac | ||
|
|
52b4367897 | ||
|
|
323ca3039e | ||
|
|
51337cc1bb | ||
|
|
959da5d988 | ||
|
|
bcd3b26db4 | ||
|
|
ee75f7bcef | ||
|
|
dd985d90b2 | ||
|
|
a1da513f74 | ||
|
|
98ea8d3a3f | ||
|
|
ce946b33b9 | ||
|
|
fd968220cc | ||
|
|
5a107cdfc6 | ||
|
|
eebf94fa8e | ||
|
|
59bea24b91 | ||
|
|
67a62dabdb | ||
|
|
f379b27026 | ||
|
|
fad1dd5cd0 | ||
|
|
dffe0296a7 | ||
|
|
1d9e862a48 | ||
|
|
d7848526c0 | ||
|
|
4cb105178b | ||
|
|
600629146f | ||
|
|
a8d7a6590b | ||
|
|
2f29c60ff1 | ||
|
|
27df2766c5 | ||
|
|
e1826f41cb | ||
|
|
b3ca52ec39 | ||
|
|
654a24d6d4 | ||
|
|
378af81d7c | ||
|
|
cb8e71f758 | ||
|
|
3f3d7470c5 | ||
|
|
b0d984c252 | ||
|
|
9df7c32675 | ||
|
|
0176d92184 | ||
|
|
f0c5ccaaa5 | ||
|
|
249746c631 | ||
|
|
78a02a96c0 | ||
|
|
1b8e04d945 | ||
|
|
4b24771233 | ||
|
|
3c5c0f5a0b | ||
|
|
6a1f71539c | ||
|
|
df9e021246 | ||
|
|
d296520369 | ||
|
|
17883be12a | ||
|
|
f2943d0a26 | ||
|
|
3c76a6a290 | ||
|
|
a5c034dddb | ||
|
|
852727cef0 | ||
|
|
77b6cd065e | ||
|
|
6cd1ebfcc5 | ||
|
|
e66555f11c | ||
|
|
a049d816b1 | ||
|
|
6ac0f969a4 | ||
|
|
f9efbd429e | ||
|
|
1f7d13cba7 | ||
|
|
1e03f72754 | ||
|
|
abf222e6c5 | ||
|
|
9687132afd | ||
|
|
41a8c7b6f4 | ||
|
|
22ef5b457c | ||
|
|
19d1d0ad40 | ||
|
|
f099fbd2ae | ||
|
|
a139cccecd | ||
|
|
3daa0ac5c1 | ||
|
|
4e575d422e | ||
|
|
eb755f1ee4 | ||
|
|
b16636c69d | ||
|
|
6117faabc7 | ||
|
|
cc5e5c40ea | ||
|
|
2daae9e273 | ||
|
|
774e4f9931 | ||
|
|
f9579c14ff | ||
|
|
f535da3b48 | ||
|
|
5ed1bc08a2 | ||
|
|
f249c59158 | ||
|
|
fe16ff6e73 | ||
|
|
454d29e7d8 | ||
|
|
e0f01a4971 | ||
|
|
bf6e8cc9c0 | ||
|
|
0698afea29 | ||
|
|
ed1ab2f3fb | ||
|
|
62aefa0f5c | ||
|
|
0e0499c1fb | ||
|
|
fb32128ab0 | ||
|
|
fd36f66099 | ||
|
|
506a821280 | ||
|
|
98b0fc8ae6 | ||
|
|
4723a0ebc3 | ||
|
|
372b2532e4 | ||
|
|
002bf9a0fb | ||
|
|
bab238c011 | ||
|
|
f584d12934 | ||
|
|
404fd1e184 | ||
|
|
7cd606f82b | ||
|
|
a42a5223a7 | ||
|
|
5014fc6f4a | ||
|
|
4dd08c9f7b | ||
|
|
2cefbad21a | ||
|
|
68354d557b | ||
|
|
cb37d4f026 | ||
|
|
25b13269d6 | ||
|
|
85b534833f | ||
|
|
61fbe72df1 | ||
|
|
f15e6185fe | ||
|
|
1585d68678 | ||
|
|
99c4e1df10 | ||
|
|
c6a15692ab | ||
|
|
7ae718f62b | ||
|
|
9bb7ee38f7 | ||
|
|
53dcc9512c | ||
|
|
a0f949cb14 | ||
|
|
ad9a1f1b15 | ||
|
|
748c75b2e0 | ||
|
|
0ac7766287 | ||
|
|
4c4296ed99 | ||
|
|
2615b65021 | ||
|
|
d654079df8 | ||
|
|
43e1dd6315 | ||
|
|
1fe8b26f1c | ||
|
|
4be2ad5972 | ||
|
|
83b8b762cb | ||
|
|
ec58f6a123 | ||
|
|
74fd634a2b | ||
|
|
076383e79d | ||
|
|
e1405995be | ||
|
|
e369509df3 | ||
|
|
ca17f2da9e | ||
|
|
c76f1413d3 | ||
|
|
f989555e81 | ||
|
|
b7cd9a5079 | ||
|
|
9702541f23 | ||
|
|
343ba5025a | ||
|
|
1e0f04dcbf | ||
|
|
63328c7a40 | ||
|
|
0babdbc31e | ||
|
|
f6d66d35bf | ||
|
|
d4f7f29275 | ||
|
|
6480276703 | ||
|
|
eca0acc33a | ||
|
|
a12b1a70e8 | ||
|
|
9653f6fe1b | ||
|
|
d965202704 | ||
|
|
0e2ac292ff | ||
|
|
bef3293bbe | ||
|
|
2ea2bbc97b | ||
|
|
ad22fadb8b | ||
|
|
bc177d9817 | ||
|
|
0ba3582a49 | ||
|
|
250d6ecfbe | ||
|
|
c93234b92a | ||
|
|
3839c43757 | ||
|
|
0be3dbc9f5 | ||
|
|
783b27be49 | ||
|
|
9c7a884c60 | ||
|
|
e3e9ab6adc | ||
|
|
445704d7ae | ||
|
|
646be35501 | ||
|
|
0de18a4d3e | ||
|
|
4a9fe6ec5f | ||
|
|
e0cfee48f4 | ||
|
|
e544840d7d | ||
|
|
a37a38c860 | ||
|
|
4f664464e0 | ||
|
|
c2c12fd655 | ||
|
|
06ef8d528b | ||
|
|
7f09c474eb | ||
|
|
bbf086fed7 | ||
|
|
55d307e118 | ||
|
|
80a8f703bb | ||
|
|
c602abfa73 | ||
|
|
b571b63118 | ||
|
|
f953d7572a | ||
|
|
b5ad7c889c | ||
|
|
fa1b262bc1 | ||
|
|
309eeb96b8 | ||
|
|
9e73dfe46a | ||
|
|
9b936b5271 | ||
|
|
4103c43f11 | ||
|
|
9dcf700d16 | ||
|
|
5ed3e60e8c | ||
|
|
e5b1148ab0 | ||
|
|
3cce33fab5 | ||
|
|
e2fafd1b60 | ||
|
|
8a158899ee | ||
|
|
1c33cb4214 | ||
|
|
ab1f1a6dbc | ||
|
|
1be1a23e8d | ||
|
|
3b24c1a9bd | ||
|
|
d4a7cec319 | ||
|
|
00cf134ae6 | ||
|
|
813ae5eb63 | ||
|
|
1aefa43f86 | ||
|
|
e43478c2ca | ||
|
|
d47d174b7b | ||
|
|
0956bf6e54 | ||
|
|
0ea97f4f89 | ||
|
|
01488d8b79 | ||
|
|
b6293d052c | ||
|
|
e0c2aa76cd | ||
|
|
42034052f5 | ||
|
|
d872c3ddb2 | ||
|
|
90be73044e | ||
|
|
4da25c6ac7 | ||
|
|
95b5dd44e8 | ||
|
|
6ab21e9355 | ||
|
|
4f860675bc | ||
|
|
5d7da45d3f | ||
|
|
1e2708fbb7 | ||
|
|
18cd1d9351 | ||
|
|
944446a3b7 | ||
|
|
3c1a837784 | ||
|
|
c1af1196d6 | ||
|
|
c17568a319 | ||
|
|
845e6da40f | ||
|
|
bdbe2a8ed0 | ||
|
|
d0842cdd5f | ||
|
|
dfb3f6e15f | ||
|
|
819e8dc82d | ||
|
|
93e17ea4f7 | ||
|
|
0ec017af58 | ||
|
|
4112405a72 | ||
|
|
82feb6ea43 | ||
|
|
32f9884a58 | ||
|
|
7ca44bce13 | ||
|
|
c5f7c68d87 | ||
|
|
af32874919 | ||
|
|
70c496d830 | ||
|
|
4be207750e | ||
|
|
b1d041fcb1 | ||
|
|
88821244cb | ||
|
|
f46a49826a | ||
|
|
ded7b7249c | ||
|
|
58eaf3750f | ||
|
|
fa77e943cd | ||
|
|
ff60245e83 | ||
|
|
f74995a626 | ||
|
|
1ee963dcdd | ||
|
|
2903a9e3d4 | ||
|
|
e3ff508e02 | ||
|
|
d0d19d982b | ||
|
|
fd1eabf43b | ||
|
|
d4728c6d01 | ||
|
|
36db307333 | ||
|
|
0695c25089 | ||
|
|
7fd9b8ac14 | ||
|
|
5ab710b28c | ||
|
|
1612e4a841 | ||
|
|
6b6b1d8b66 | ||
|
|
74f3709320 | ||
|
|
3c9082dad0 | ||
|
|
3bf6ffdd44 | ||
|
|
a16506b8bb | ||
|
|
092a1e91d6 | ||
|
|
c0d61df192 | ||
|
|
52e747e148 | ||
|
|
f088ffdcdf | ||
|
|
4ec0f5ce41 | ||
|
|
05d6e19dc9 | ||
|
|
e2356e1fe5 | ||
|
|
44e52d0de1 | ||
|
|
87642c844a | ||
|
|
19dd1db795 | ||
|
|
f17ec4bba7 | ||
|
|
f84b84e974 | ||
|
|
66a5bb8b37 | ||
|
|
c73f1cd325 | ||
|
|
e675cbb519 | ||
|
|
d76ff004de | ||
|
|
e342d5726c | ||
|
|
47880cce29 | ||
|
|
eb4674377e | ||
|
|
6af9f3a6f4 | ||
|
|
7764f1f3ca | ||
|
|
7d04edb785 | ||
|
|
e807f497bf | ||
|
|
251350ed1d | ||
|
|
70fe47c879 | ||
|
|
a851a19f4b | ||
|
|
7cc7aeb57f | ||
|
|
93893133c3 | ||
|
|
b4a66e6479 | ||
|
|
64541a7e46 | ||
|
|
552ab115cf | ||
|
|
a05402b612 | ||
|
|
217f7c6c3a | ||
|
|
ba353b5ee5 | ||
|
|
6dbfb09f4b | ||
|
|
ca30dd04da | ||
|
|
bf0782872a | ||
|
|
ab8c287b29 | ||
|
|
96ff6c5916 | ||
|
|
9dc39ac5f6 | ||
|
|
94f19e653e |
No files matched your search
@@ -0,0 +1,9 @@
|
||||
---
|
||||
exclude_paths:
|
||||
- CHANGELOG.md
|
||||
- changelog/**
|
||||
- docs/**
|
||||
- pkg/proto/**
|
||||
- tests/acceptance/features/bootstrap/*
|
||||
|
||||
...
|
||||
@@ -0,0 +1,3 @@
|
||||
*
|
||||
!dist/
|
||||
!bin/
|
||||
+1074
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,27 @@
|
||||
# http://editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
indent_size = 4
|
||||
|
||||
[*.go]
|
||||
indent_style = tab
|
||||
indent_size = 4
|
||||
|
||||
[*.starlark]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.yml]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = true
|
||||
@@ -0,0 +1,12 @@
|
||||
# Configuration for update-docs - https://github.com/behaviorbot/update-docs
|
||||
|
||||
# Comment to be posted to on PRs that don't update documentation
|
||||
updateDocsComment: >
|
||||
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a [changelog](https://github.com/owncloud/ocis/blob/master/changelog/README.md) item based on your changes.
|
||||
updateDocsWhiteList:
|
||||
- Tests-only
|
||||
- tests-only
|
||||
- Tests-Only
|
||||
|
||||
updateDocsTargetFiles:
|
||||
- changelog/unreleased/
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,98 @@
|
||||
---
|
||||
repository:
|
||||
name: ocis
|
||||
description: ':atom_symbol: ownCloud Infinite Scale Stack'
|
||||
homepage: https://owncloud.github.io/ocis/
|
||||
topics: reva, ocis
|
||||
|
||||
private: false
|
||||
has_issues: true
|
||||
has_projects: false
|
||||
has_wiki: true
|
||||
has_downloads: false
|
||||
|
||||
default_branch: master
|
||||
|
||||
allow_squash_merge: true
|
||||
allow_merge_commit: true
|
||||
allow_rebase_merge: true
|
||||
|
||||
labels:
|
||||
- name: bug
|
||||
color: d73a4a
|
||||
description: Something isn't working
|
||||
- name: documentation
|
||||
color: 0075ca
|
||||
description: Improvements or additions to documentation
|
||||
- name: duplicate
|
||||
color: cfd3d7
|
||||
description: This issue or pull request already exists
|
||||
- name: enhancement
|
||||
color: a2eeef
|
||||
description: New feature or request
|
||||
- name: good first issue
|
||||
color: 7057ff
|
||||
description: Good for newcomers
|
||||
- name: help wanted
|
||||
color: 008672
|
||||
description: Extra attention is needed
|
||||
- name: invalid
|
||||
color: e4e669
|
||||
description: This doesn't seem right
|
||||
- name: question
|
||||
color: d876e3
|
||||
description: Further information is requested
|
||||
- name: wontfix
|
||||
color: ffffff
|
||||
description: This will not be worked on
|
||||
- name: effort/trivial
|
||||
color: c2e0c6
|
||||
description: Required effort to finish task
|
||||
- name: effort/0.25d
|
||||
color: c2e0c6
|
||||
description: Required effort to finish task
|
||||
- name: effort/0.5d
|
||||
color: c2e0c6
|
||||
description: Required effort to finish task
|
||||
- name: effort/1d
|
||||
color: c2e0c6
|
||||
description: Required effort to finish task
|
||||
- name: effort/2d
|
||||
color: c2e0c6
|
||||
description: Required effort to finish task
|
||||
- name: effort/4d
|
||||
color: c2e0c6
|
||||
description: Required effort to finish task
|
||||
- name: effort/5d
|
||||
color: c2e0c6
|
||||
description: Required effort to finish task
|
||||
- name: effort/10d
|
||||
color: c2e0c6
|
||||
description: Required effort to finish task
|
||||
|
||||
teams:
|
||||
- name: ci
|
||||
permission: admin
|
||||
- name: employees
|
||||
permission: push
|
||||
|
||||
branches:
|
||||
- name: master
|
||||
protection:
|
||||
required_pull_request_reviews:
|
||||
required_approving_review_count: 1
|
||||
dismiss_stale_reviews: false
|
||||
require_code_owner_reviews: false
|
||||
dismissal_restrictions: {}
|
||||
required_status_checks:
|
||||
strict: true
|
||||
contexts:
|
||||
- continuous-integration/drone/pr
|
||||
enforce_admins: false
|
||||
restrictions:
|
||||
users: []
|
||||
teams:
|
||||
- ci
|
||||
- employees
|
||||
|
||||
...
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
coverage.out
|
||||
|
||||
/bin
|
||||
/dist
|
||||
/hugo
|
||||
*.key
|
||||
*crt
|
||||
|
||||
/eos-docker
|
||||
|
||||
# API acceptance tests
|
||||
composer.lock
|
||||
/vendor
|
||||
vendor-bin/**/vendor
|
||||
vendor-bin/**/composer.lock
|
||||
tests/acceptance/output
|
||||
|
||||
.idea
|
||||
+345
@@ -0,0 +1,345 @@
|
||||
# Changes in unreleased
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Add missing env vars to docker compose: [#392](https://github.com/owncloud/ocis/pull/392)
|
||||
* Bugfix - Don't enforce empty external apps slice: [#473](https://github.com/owncloud/ocis/pull/473)
|
||||
* Bugfix - Fix director selection in proxy: [#521](https://github.com/owncloud/ocis/pull/521)
|
||||
* Bugfix - Build docker images with alpine:latest instead of alpine:edge: [#416](https://github.com/owncloud/ocis/pull/416)
|
||||
* Change - Add the thumbnails command: [#156](https://github.com/owncloud/ocis/issues/156)
|
||||
* Change - Integrate import command from ocis-migration: [#249](https://github.com/owncloud/ocis/pull/249)
|
||||
* Change - Initial release of basic version: [#2](https://github.com/owncloud/ocis/issues/2)
|
||||
* Change - Add cli-commands to manage accounts: [#115](https://github.com/owncloud/product/issues/115)
|
||||
* Change - Start ocis-accounts with the ocis server command: [#25](https://github.com/owncloud/product/issues/25)
|
||||
* Change - Switch over to a new custom-built runtime: [#287](https://github.com/owncloud/ocis/pull/287)
|
||||
* Change - Account management permissions for Admin role: [#124](https://github.com/owncloud/product/issues/124)
|
||||
* Change - Make ocis-settings available: [#287](https://github.com/owncloud/ocis/pull/287)
|
||||
* Change - Update ocis-settings to v0.2.0: [#467](https://github.com/owncloud/ocis/pull/467)
|
||||
* Change - Start ocis-proxy with the ocis server command: [#119](https://github.com/owncloud/ocis/issues/119)
|
||||
* Change - Update ocis-accounts to v0.4.0: [#479](https://github.com/owncloud/ocis/pull/479)
|
||||
* Change - Update ocis-ocs to v0.3.0: [#500](https://github.com/owncloud/ocis/pull/500)
|
||||
* Change - Update ocis-phoenix to v0.13.0: [#487](https://github.com/owncloud/ocis/pull/487)
|
||||
* Change - Update ocis-proxy to v0.7.0: [#476](https://github.com/owncloud/ocis/pull/476)
|
||||
* Change - Update ocis-reva to 0.13.0: [#496](https://github.com/owncloud/ocis/pull/496)
|
||||
* Change - Update reva config: [#336](https://github.com/owncloud/ocis/pull/336)
|
||||
* Change - Update ocis-settings to v0.3.0: [#490](https://github.com/owncloud/ocis/pull/490)
|
||||
* Enhancement - Document how to run OCIS on top of EOS: [#172](https://github.com/owncloud/ocis/pull/172)
|
||||
* Enhancement - Simplify tracing config: [#92](https://github.com/owncloud/product/issues/92)
|
||||
* Enhancement - Add new REVA config variables to docs: [#345](https://github.com/owncloud/ocis/pull/345)
|
||||
* Enhancement - Update extensions: [#180](https://github.com/owncloud/ocis/pull/180)
|
||||
* Enhancement - Update extensions 2020-07-01: [#357](https://github.com/owncloud/ocis/pull/357)
|
||||
* Enhancement - Update extensions 2020-09-02: [#516](https://github.com/owncloud/ocis/pull/516)
|
||||
* Enhancement - Update extensions: [#209](https://github.com/owncloud/ocis/pull/209)
|
||||
* Enhancement - Update extensions: [#151](https://github.com/owncloud/ocis/pull/151)
|
||||
* Enhancement - Update extensions 2020-07-10: [#376](https://github.com/owncloud/ocis/pull/376)
|
||||
* Enhancement - Update extensions: [#290](https://github.com/owncloud/ocis/pull/290)
|
||||
* Enhancement - Update ocis-reva to 0.4.0: [#295](https://github.com/owncloud/ocis/pull/295)
|
||||
* Enhancement - Update extensions: [#209](https://github.com/owncloud/ocis/pull/209)
|
||||
* Enhancement - Update extensions 2020-06-29: [#334](https://github.com/owncloud/ocis/pull/334)
|
||||
* Enhancement - Update proxy and reva: [#466](https://github.com/owncloud/ocis/pull/466)
|
||||
* Enhancement - Update proxy to v0.2.0: [#167](https://github.com/owncloud/ocis/pull/167)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Add missing env vars to docker compose: [#392](https://github.com/owncloud/ocis/pull/392)
|
||||
|
||||
Without setting `REVA_FRONTEND_URL` and `REVA_DATAGATEWAY_URL` uploads would default to
|
||||
locahost and fail if `OCIS_DOMAIN` was used to run ocis on a remote host.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/392
|
||||
|
||||
|
||||
* Bugfix - Don't enforce empty external apps slice: [#473](https://github.com/owncloud/ocis/pull/473)
|
||||
|
||||
The command for ocis-phoenix enforced an empty external apps configuration. This was
|
||||
removed, as it was blocking a new set of default external apps in ocis-phoenix.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/473
|
||||
|
||||
|
||||
* Bugfix - Fix director selection in proxy: [#521](https://github.com/owncloud/ocis/pull/521)
|
||||
|
||||
We fixed a bug in ocis-proxy where simultaneous requests could be executed on the wrong
|
||||
backend.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/521
|
||||
https://github.com/owncloud/ocis-proxy/pull/99
|
||||
|
||||
|
||||
* Bugfix - Build docker images with alpine:latest instead of alpine:edge: [#416](https://github.com/owncloud/ocis/pull/416)
|
||||
|
||||
ARM builds were failing when built on alpine:edge, so we switched to alpine:latest instead.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/416
|
||||
|
||||
|
||||
* Change - Add the thumbnails command: [#156](https://github.com/owncloud/ocis/issues/156)
|
||||
|
||||
Added the thumbnails command so that the thumbnails service can get started via ocis.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/156
|
||||
|
||||
|
||||
* Change - Integrate import command from ocis-migration: [#249](https://github.com/owncloud/ocis/pull/249)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/249
|
||||
https://github.com/owncloud/ocis-migration
|
||||
|
||||
|
||||
* Change - Initial release of basic version: [#2](https://github.com/owncloud/ocis/issues/2)
|
||||
|
||||
Just prepared an initial basic version which simply embeds the minimum of required services in
|
||||
the context of the ownCloud Infinite Scale project.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/2
|
||||
|
||||
|
||||
* Change - Add cli-commands to manage accounts: [#115](https://github.com/owncloud/product/issues/115)
|
||||
|
||||
COMMANDS: - list, ls List existing accounts - add, create Create a new account - update Make
|
||||
changes to an existing account - remove, rm Removes an existing account - inspect Show detailed
|
||||
data on an existing account - help, h Shows a list of commands or help for one command
|
||||
|
||||
https://github.com/owncloud/product/issues/115
|
||||
|
||||
|
||||
* Change - Start ocis-accounts with the ocis server command: [#25](https://github.com/owncloud/product/issues/25)
|
||||
|
||||
Starts ocis-accounts in single binary mode (./ocis server). This service stores the
|
||||
user-account information.
|
||||
|
||||
https://github.com/owncloud/product/issues/25
|
||||
https://github.com/owncloud/ocis/pull/239/files
|
||||
|
||||
|
||||
* Change - Switch over to a new custom-built runtime: [#287](https://github.com/owncloud/ocis/pull/287)
|
||||
|
||||
We moved away from using the go-micro runtime and are now using [our own
|
||||
runtime](https://github.com/refs/pman). This allows us to spawn service processes even
|
||||
when they are using different versions of go-micro. On top of that we now have the commands `ocis
|
||||
list`, `ocis kill` and `ocis run` available for service runtime management.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/287
|
||||
|
||||
|
||||
* Change - Account management permissions for Admin role: [#124](https://github.com/owncloud/product/issues/124)
|
||||
|
||||
We created an `AccountManagement` permission and added it to the default admin role. There are
|
||||
permission checks in place to protected http endpoints in ocis-accounts against requests
|
||||
without the permission. All existing default users (einstein, marie, richard) have the
|
||||
default user role now (doesn't have the `AccountManagement` permission). Additionally,
|
||||
there is a new default Admin user with credentials `moss:vista`.
|
||||
|
||||
Known issue: for users without the `AccountManagement` permission, the accounts UI
|
||||
extension is still available in the ocis-web app switcher, but the requests for loading the
|
||||
users will fail (as expected). We are working on a way to hide the accounts UI extension if the
|
||||
user doesn't have the `AccountManagement` permission.
|
||||
|
||||
https://github.com/owncloud/product/issues/124
|
||||
https://github.com/owncloud/ocis-settings/pull/59
|
||||
https://github.com/owncloud/ocis-settings/pull/66
|
||||
https://github.com/owncloud/ocis-settings/pull/67
|
||||
https://github.com/owncloud/ocis-settings/pull/69
|
||||
https://github.com/owncloud/ocis-proxy/pull/95
|
||||
https://github.com/owncloud/ocis-pkg/pull/59
|
||||
https://github.com/owncloud/ocis-accounts/pull/95
|
||||
https://github.com/owncloud/ocis-accounts/pull/100
|
||||
https://github.com/owncloud/ocis-accounts/pull/102
|
||||
|
||||
|
||||
* Change - Make ocis-settings available: [#287](https://github.com/owncloud/ocis/pull/287)
|
||||
|
||||
This version delivers `settings` as a new service. It is part of the array of services in the
|
||||
`server` command.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/287
|
||||
|
||||
|
||||
* Change - Update ocis-settings to v0.2.0: [#467](https://github.com/owncloud/ocis/pull/467)
|
||||
|
||||
This version delivers `settings` v0.2.0 and versions of accounts (v0.3.0) and phoenix
|
||||
(v0.15.0) needed for it.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/467
|
||||
|
||||
|
||||
* Change - Start ocis-proxy with the ocis server command: [#119](https://github.com/owncloud/ocis/issues/119)
|
||||
|
||||
Starts the proxy in single binary mode (./ocis server) on port 9200. The proxy serves as a
|
||||
single-entry point for all http-clients.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/119
|
||||
https://github.com/owncloud/ocis/issues/136
|
||||
|
||||
|
||||
* Change - Update ocis-accounts to v0.4.0: [#479](https://github.com/owncloud/ocis/pull/479)
|
||||
|
||||
Provides a web UI for role assignment.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/479
|
||||
|
||||
|
||||
* Change - Update ocis-ocs to v0.3.0: [#500](https://github.com/owncloud/ocis/pull/500)
|
||||
|
||||
This change updates ocis-ocs to version 0.3.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/500
|
||||
|
||||
|
||||
* Change - Update ocis-phoenix to v0.13.0: [#487](https://github.com/owncloud/ocis/pull/487)
|
||||
|
||||
This version delivers ocis-phoenix v0.13.0.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/487
|
||||
|
||||
|
||||
* Change - Update ocis-proxy to v0.7.0: [#476](https://github.com/owncloud/ocis/pull/476)
|
||||
|
||||
This version delivers ocis-proxy v0.7.0.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/476
|
||||
|
||||
|
||||
* Change - Update ocis-reva to 0.13.0: [#496](https://github.com/owncloud/ocis/pull/496)
|
||||
|
||||
This version delivers ocis-reva v0.13.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/496
|
||||
|
||||
|
||||
* Change - Update reva config: [#336](https://github.com/owncloud/ocis/pull/336)
|
||||
|
||||
- EOS homes are not configured with an enable-flag anymore, but with a dedicated storage
|
||||
driver. - We're using it now and adapted default configs of storages
|
||||
|
||||
https://github.com/owncloud/ocis/pull/336
|
||||
https://github.com/owncloud/ocis/pull/337
|
||||
https://github.com/owncloud/ocis/pull/338
|
||||
https://github.com/owncloud/ocis-reva/pull/891
|
||||
|
||||
|
||||
* Change - Update ocis-settings to v0.3.0: [#490](https://github.com/owncloud/ocis/pull/490)
|
||||
|
||||
This version delivers ocis-settings v0.3.0.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/490
|
||||
|
||||
|
||||
* Enhancement - Document how to run OCIS on top of EOS: [#172](https://github.com/owncloud/ocis/pull/172)
|
||||
|
||||
We have added rules to the Makefile that use the official [eos docker
|
||||
images](https://gitlab.cern.ch/eos/eos-docker) to boot an eos cluster and configure OCIS
|
||||
to use it.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/172
|
||||
|
||||
|
||||
* Enhancement - Simplify tracing config: [#92](https://github.com/owncloud/product/issues/92)
|
||||
|
||||
We now apply the oCIS tracing config to all services which have tracing. With this it is possible
|
||||
to set one tracing config for all services at the same time.
|
||||
|
||||
https://github.com/owncloud/product/issues/92
|
||||
https://github.com/owncloud/ocis/pull/329
|
||||
https://github.com/owncloud/ocis/pull/409
|
||||
|
||||
|
||||
* Enhancement - Add new REVA config variables to docs: [#345](https://github.com/owncloud/ocis/pull/345)
|
||||
|
||||
With the default setup of running oCIS with ocis-proxy we need to set `REVA_DATAGATEWAY_URL`
|
||||
and `REVA_FRONTEND_URL` environment variables. We added those to the configuration
|
||||
instructions in the dev docs.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/345
|
||||
|
||||
|
||||
* Enhancement - Update extensions: [#180](https://github.com/owncloud/ocis/pull/180)
|
||||
|
||||
We've updated various extensions to a tagged release: - ocis-phoenix v0.4.0 (phoenix v0.7.0)
|
||||
- ocis-pkg v2.2.0 - ocis-proxy v0.3.1 - ocis-reva v0.1.1 - ocis-thumbnails v0.1.0 -
|
||||
ocis-webdav v0.1.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/180
|
||||
|
||||
|
||||
* Enhancement - Update extensions 2020-07-01: [#357](https://github.com/owncloud/ocis/pull/357)
|
||||
|
||||
- ocis-reva 0.9.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/357
|
||||
|
||||
|
||||
* Enhancement - Update extensions 2020-09-02: [#516](https://github.com/owncloud/ocis/pull/516)
|
||||
|
||||
- ocis-accounts 0.4.2-0.20200828150703-2ca83cf4ac20 - ocis-ocs 0.3.1 - ocis-settings
|
||||
0.3.2-0.20200828130413-0cc0f5bf26fe
|
||||
|
||||
https://github.com/owncloud/ocis/pull/516
|
||||
|
||||
|
||||
* Enhancement - Update extensions: [#209](https://github.com/owncloud/ocis/pull/209)
|
||||
|
||||
We've updated various extensions: - ocis-konnectd v0.3.1 - ocis-phoenix v0.5.0 (phoenix
|
||||
v0.8.0) - ocis-reva v0.2.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/209
|
||||
|
||||
|
||||
* Enhancement - Update extensions: [#151](https://github.com/owncloud/ocis/pull/151)
|
||||
|
||||
We've updated various extensions to a tagged release: - ocis-konnectd v0.2.0 - ocis-glauth
|
||||
v0.4.0 - ocis-phoenix v0.3.0 (phoenix v0.6.0) - ocis-pkg v2.1.0 - ocis-proxy v0.1.0 -
|
||||
ocis-reva v0.1.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/151
|
||||
|
||||
|
||||
* Enhancement - Update extensions 2020-07-10: [#376](https://github.com/owncloud/ocis/pull/376)
|
||||
|
||||
- ocis-reva 0.10.0 - ocis-phoenix 0.9.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/376
|
||||
|
||||
|
||||
* Enhancement - Update extensions: [#290](https://github.com/owncloud/ocis/pull/290)
|
||||
|
||||
We've updated various extensions: - ocis-thumbnails v0.1.2 (tag) - ocis-reva v0.3.0 (tag)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/290
|
||||
|
||||
|
||||
* Enhancement - Update ocis-reva to 0.4.0: [#295](https://github.com/owncloud/ocis/pull/295)
|
||||
|
||||
Brings in fixes for trashbin and TUS upload. Also adds partial implementation of public
|
||||
shares.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/295
|
||||
|
||||
|
||||
* Enhancement - Update extensions: [#209](https://github.com/owncloud/ocis/pull/209)
|
||||
|
||||
We've updated various extensions: - ocis-konnectd v0.3.1 - ocis-phoenix v0.6.0 - ocis-reva
|
||||
v0.2.1 - ocis-pkg v2.2.1 - ocis-thumbnails v0.1.2
|
||||
|
||||
https://github.com/owncloud/ocis/pull/209
|
||||
|
||||
|
||||
* Enhancement - Update extensions 2020-06-29: [#334](https://github.com/owncloud/ocis/pull/334)
|
||||
|
||||
- ocis-proxy 0.4.0 - ocis-migration 0.2.0 - ocis-reva 0.8.0 - ocis-phoenix 0.8.1
|
||||
|
||||
https://github.com/owncloud/ocis/pull/334
|
||||
|
||||
|
||||
* Enhancement - Update proxy and reva: [#466](https://github.com/owncloud/ocis/pull/466)
|
||||
|
||||
- ocis-reva contains a lot of sharing, eos and trash fixes - ocis-proxy contains fixes to use
|
||||
ocis on top of eos
|
||||
|
||||
https://github.com/owncloud/ocis/pull/466
|
||||
|
||||
|
||||
* Enhancement - Update proxy to v0.2.0: [#167](https://github.com/owncloud/ocis/pull/167)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/167
|
||||
|
||||
@@ -0,0 +1,202 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2020 ownCloud GmbH
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@@ -0,0 +1,187 @@
|
||||
SHELL := bash
|
||||
NAME := ocis
|
||||
IMPORT := github.com/owncloud/$(NAME)
|
||||
BIN := bin
|
||||
DIST := dist
|
||||
HUGO := hugo
|
||||
CONFIG := config/identifier-registration.yaml
|
||||
|
||||
ifeq ($(OS), Windows_NT)
|
||||
EXECUTABLE := $(NAME).exe
|
||||
UNAME := Windows
|
||||
else
|
||||
EXECUTABLE := $(NAME)
|
||||
UNAME := $(shell uname -s)
|
||||
endif
|
||||
|
||||
ifeq ($(UNAME), Darwin)
|
||||
GOBUILD ?= go build -i
|
||||
else
|
||||
GOBUILD ?= go build
|
||||
endif
|
||||
|
||||
PACKAGES ?= $(shell go list ./...)
|
||||
SOURCES ?= $(shell find . -name "*.go" -type f)
|
||||
GENERATE ?= $(PACKAGES)
|
||||
|
||||
TAGS ?=
|
||||
|
||||
ifndef OUTPUT
|
||||
ifneq ($(DRONE_TAG),)
|
||||
OUTPUT ?= $(subst v,,$(DRONE_TAG))
|
||||
else
|
||||
OUTPUT ?= testing
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef VERSION
|
||||
ifneq ($(DRONE_TAG),)
|
||||
VERSION ?= $(subst v,,$(DRONE_TAG))
|
||||
else
|
||||
VERSION ?= $(shell git rev-parse --short HEAD)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef DATE
|
||||
DATE := $(shell date -u '+%Y%m%d')
|
||||
endif
|
||||
|
||||
LDFLAGS += -s -w -X "$(IMPORT)/pkg/version.String=$(VERSION)" -X "$(IMPORT)/pkg/version.Date=$(DATE)"
|
||||
DEBUG_LDFLAGS += -X "$(IMPORT)/pkg/version.String=$(VERSION)" -X "$(IMPORT)/pkg/version.Date=$(DATE)"
|
||||
GCFLAGS += all=-N -l
|
||||
|
||||
.PHONY: all
|
||||
all: build
|
||||
|
||||
.PHONY: sync
|
||||
sync:
|
||||
go mod download
|
||||
|
||||
.PHONY: clean
|
||||
clean: clean-config
|
||||
go clean -i ./...
|
||||
rm -rf $(BIN) $(DIST) $(HUGO)
|
||||
|
||||
.PHONY: clean-config
|
||||
clean-config:
|
||||
rm -rf $(CONFIG)
|
||||
|
||||
.PHONY: fmt
|
||||
fmt:
|
||||
gofmt -s -w $(SOURCES)
|
||||
|
||||
.PHONY: vet
|
||||
vet:
|
||||
go vet $(PACKAGES)
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
for PKG in $(PACKAGES); do go run golang.org/x/lint/golint -set_exit_status $$PKG || exit 1; done;
|
||||
|
||||
.PHONY: generate
|
||||
generate:
|
||||
go generate $(GENERATE)
|
||||
|
||||
.PHONY: changelog
|
||||
changelog:
|
||||
go run github.com/restic/calens >| CHANGELOG.md
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
go run github.com/haya14busa/goverage -v -coverprofile coverage.out $(PACKAGES)
|
||||
|
||||
.PHONY: install
|
||||
install: $(SOURCES)
|
||||
go install -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/$(NAME)
|
||||
|
||||
.PHONY: build
|
||||
build: $(BIN)/$(EXECUTABLE) $(BIN)/$(EXECUTABLE)-debug
|
||||
|
||||
$(BIN)/$(EXECUTABLE): $(SOURCES)
|
||||
$(GOBUILD) -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o $@ ./cmd/$(NAME)
|
||||
|
||||
$(BIN)/$(EXECUTABLE)-debug: $(SOURCES)
|
||||
$(GOBUILD) -v -tags '$(TAGS)' -ldflags '$(DEBUG_LDFLAGS)' -gcflags '$(GCFLAGS)' -o $@ ./cmd/$(NAME)
|
||||
|
||||
$(BIN)/$(EXECUTABLE)-linux: $(SOURCES)
|
||||
GOOS=linux GOARCH=amd64 $(GOBUILD) -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -gcflags '$(GCFLAGS)' -o $@ ./cmd/$(NAME)
|
||||
|
||||
.PHONY: staticcheck
|
||||
staticcheck:
|
||||
go run honnef.co/go/tools/cmd/staticcheck -tags '$(TAGS)' $(PACKAGES)
|
||||
|
||||
.PHONY: release
|
||||
release: release-dirs release-linux release-windows release-darwin release-copy release-check
|
||||
|
||||
.PHONY: release-dirs
|
||||
release-dirs:
|
||||
mkdir -p $(DIST)/binaries $(DIST)/release
|
||||
|
||||
.PHONY: release-linux
|
||||
release-linux: release-dirs
|
||||
go run github.com/mitchellh/gox -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS)' -os 'linux' -arch 'amd64 386 arm64 arm' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
|
||||
|
||||
.PHONY: release-windows
|
||||
release-windows: release-dirs
|
||||
go run github.com/mitchellh/gox -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS)' -os 'windows' -arch 'amd64' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
|
||||
|
||||
.PHONY: release-darwin
|
||||
release-darwin: release-dirs
|
||||
go run github.com/mitchellh/gox -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -os 'darwin' -arch 'amd64' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
|
||||
|
||||
.PHONY: release-copy
|
||||
release-copy:
|
||||
$(foreach file,$(wildcard $(DIST)/binaries/$(EXECUTABLE)-*),cp $(file) $(DIST)/release/$(notdir $(file));)
|
||||
|
||||
.PHONY: release-check
|
||||
release-check:
|
||||
cd $(DIST)/release; $(foreach file,$(wildcard $(DIST)/release/$(EXECUTABLE)-*),sha256sum $(notdir $(file)) > $(notdir $(file)).sha256;)
|
||||
|
||||
.PHONY: release-finish
|
||||
release-finish: release-copy release-check
|
||||
|
||||
.PHONY: docs-copy
|
||||
docs-copy:
|
||||
mkdir -p $(HUGO); \
|
||||
mkdir -p $(HUGO)/content/; \
|
||||
cd $(HUGO); \
|
||||
git init; \
|
||||
git remote rm origin; \
|
||||
git remote add origin https://github.com/owncloud/owncloud.github.io; \
|
||||
git fetch --depth=1; \
|
||||
git checkout origin/source -f; \
|
||||
rsync --delete -ax --exclude 'static' ../docs/ content/$(NAME); \
|
||||
rsync --delete -ax ../docs/static/ static/$(NAME); \
|
||||
|
||||
.PHONY: config-docs-generate
|
||||
config-docs-generate:
|
||||
go run github.com/owncloud/flaex >| docs/configuration.md
|
||||
|
||||
.PHONY: docs-build
|
||||
docs-build:
|
||||
cd $(HUGO); hugo
|
||||
|
||||
.PHONY: docs
|
||||
docs: config-docs-generate docs-copy docs-build
|
||||
|
||||
.PHONY: watch
|
||||
watch:
|
||||
go run github.com/cespare/reflex -c reflex.conf
|
||||
|
||||
BEHAT_BIN=vendor-bin/behat/vendor/bin/behat
|
||||
|
||||
.PHONY: test-acceptance-api
|
||||
test-acceptance-api: vendor-bin/behat/vendor
|
||||
BEHAT_BIN=$(BEHAT_BIN) $(PATH_TO_CORE)/tests/acceptance/run.sh --remote --type api
|
||||
|
||||
vendor/bamarni/composer-bin-plugin: composer.lock
|
||||
composer install
|
||||
|
||||
vendor-bin/behat/vendor: vendor/bamarni/composer-bin-plugin vendor-bin/behat/composer.lock
|
||||
composer bin behat install --no-progress
|
||||
|
||||
vendor-bin/behat/composer.lock: vendor-bin/behat/composer.json
|
||||
@echo behat composer.lock is not up to date.
|
||||
|
||||
composer.lock: composer.json
|
||||
@echo composer.lock is not up to date.
|
||||
@@ -0,0 +1,93 @@
|
||||
# ownCloud Infinite Scale
|
||||
|
||||
[](https://cloud.drone.io/owncloud/ocis)
|
||||
[](https://gitter.im/cs3org/reva)
|
||||
[](https://www.codacy.com/app/owncloud/ocis?utm_source=github.com&utm_medium=referral&utm_content=owncloud/ocis&utm_campaign=Badge_Grade)
|
||||
[](http://godoc.org/github.com/owncloud/ocis)
|
||||
[](http://goreportcard.com/report/github.com/owncloud/ocis)
|
||||
[](http://microbadger.com/images/owncloud/ocis "Get your own image badge on microbadger.com")
|
||||
|
||||
**This project is under heavy development, it's not in a working state yet!**
|
||||
|
||||
## Install
|
||||
|
||||
You can download prebuilt binaries from the GitHub releases or from our [download mirrors](http://download.owncloud.com/ocis/ocis/). For instructions how to install this on your platform you should take a look at our [documentation](https://owncloud.github.io/ocis/)
|
||||
|
||||
## Development
|
||||
|
||||
Make sure you have a working Go environment, for further reference or a guide take a look at the [install instructions](http://golang.org/doc/install.html). This project requires Go >= v1.13.
|
||||
|
||||
```console
|
||||
git clone https://github.com/owncloud/ocis.git
|
||||
cd ocis
|
||||
|
||||
make generate build
|
||||
|
||||
./bin/ocis -h
|
||||
```
|
||||
|
||||
## Prerequisites
|
||||
|
||||
### Redis server
|
||||
|
||||
You will need to start a redis server as a cache. The ownCloud storage driver currently will try to connect to the default port.
|
||||
A quick way to start one for testing is using this docker instance: `docker run -e REDIS_DATABASES=1 -p 6379:6379 -d webhippie/redis:latest`
|
||||
|
||||
### Root storage
|
||||
|
||||
To prepare the root storage you should fill it with two folders. They are necessary for resolving the home and ownCloud storages. This is subject to change.
|
||||
|
||||
```console
|
||||
mkdir -p /var/tmp/reva/root/{home,oc}
|
||||
```
|
||||
|
||||
## Quickstart
|
||||
|
||||
- Make sure that the binary was built with the above steps.
|
||||
|
||||
- Now start all services with the following command
|
||||
|
||||
```console
|
||||
./bin/ocis server
|
||||
```
|
||||
|
||||
- Open [https://localhost:9200](https://localhost:9200)
|
||||
|
||||
- Accept the self-signed certificate (it is regenerated every time the server starts)
|
||||
|
||||
- Login using one of the demo accounts:
|
||||
|
||||
```console
|
||||
einstein:relativity
|
||||
marie:radioactivity
|
||||
richard:superfluidity
|
||||
```
|
||||
|
||||
## Running single extensions
|
||||
|
||||
The list of available extensions can be found in the "Extensions" section when running `./bin/ocis`.
|
||||
|
||||
For example to run the "phoenix" extension:
|
||||
```console
|
||||
./bin/ocis --log-level debug phoenix
|
||||
```
|
||||
|
||||
⚠ do not use the **run** subcommand for running extensions
|
||||
|
||||
## Security
|
||||
|
||||
If you find a security issue please contact security@owncloud.com first.
|
||||
|
||||
## Contributing
|
||||
|
||||
Fork -> Patch -> Push -> Pull Request
|
||||
|
||||
## License
|
||||
|
||||
Apache-2.0
|
||||
|
||||
## Copyright
|
||||
|
||||
```console
|
||||
Copyright (c) 2020 ownCloud GmbH <https://owncloud.com>
|
||||
```
|
||||
@@ -1,46 +0,0 @@
|
||||
---
|
||||
title: ownCloud
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Admin Documentation
|
||||
|
||||
Before you start reading, if you are interested in:
|
||||
|
||||
- learning ocis from an admin perspective,
|
||||
- different deployment scenarios,
|
||||
- deployment examples,
|
||||
- detailed settings and more
|
||||
|
||||
we would recommend to continue with the [ownCloud Admin Documentation for Infinite Scale](https://doc.owncloud.com/ocis/latest/).
|
||||
|
||||
## Developer Documentation
|
||||
|
||||
Welcome to our developer documentation. Here you find documentation with focus for *developers*:
|
||||
|
||||
- [oCIS]({{< ref "./ocis" >}}) server
|
||||
- oCIS Services
|
||||
- Clients like:
|
||||
- [ownCloud Web](https://github.com/owncloud/web) - the new web frontend for oCIS and ownCloud
|
||||
- [ownCloud Android app](https://github.com/owncloud/android)
|
||||
- [ownCloud iOS app](https://github.com/owncloud/ios-app)
|
||||
- [ownCloud Desktop Syncing Client](https://github.com/owncloud/client)
|
||||
- Integrations
|
||||
|
||||
## We love open source
|
||||
|
||||
The oCIS server is Apache v2 licensed.
|
||||
The lower storage layer of oCIS is defined by the CS3 APIs and implemented in the REVA project. Our goal is to develop the CS3 APIs to an open standard and collaborate on the open source REVA reference implementation for CS3 APIs.
|
||||
|
||||
You can also find all client sources on [GitHub](https://github.com/owncloud/).
|
||||
|
||||
## Join the oCIS Community
|
||||
|
||||
The [server repository](https://github.com/owncloud/ocis) on [GitHub](https://www.github.com) is a good entry point to the oCIS project. In addition to that there are also ownCloud projects for clients for [iOS](https://github.com/owncloud/ios-app), [Android](https://github.com/owncloud/android), the major [Desktop](https://github.com/owncloud/desktop) platforms and [ownCloud Web](https://github.com/owncloud/web).
|
||||
|
||||
To chat about development, join our public chat on [matrix: ownCloud Infinite Scale](https://matrix.to/#/#ocis:matrix.org).
|
||||
|
||||
If you want to help and improve ownCloud or oCIS, start coding or open issues on GitHub in the related repository.
|
||||
|
||||
We are very happy to hear your feedback and ideas!
|
||||
@@ -1,53 +0,0 @@
|
||||
---
|
||||
title: APIs
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/
|
||||
geekdocFilePath: _index.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
{{< toc-tree >}}
|
||||
|
||||
Infinite Scale provides a large set of different **application programming interfaces (APIs)**. Infinite Scale is built by microservices. That means many calls to "functions" in the code are remote calls.
|
||||
|
||||
Basically we have two different API "universes": [HTTP](http) and [gRPC](grpc_apis).
|
||||
|
||||
{{< columns >}} <!-- begin columns block -->
|
||||
|
||||
{{< figure src="/ocis/static/http-logo.png" width="70%" alt="Image sourced from https://commons.wikimedia.org/ free of licenses" >}}
|
||||
<--->
|
||||
|
||||
{{< figure src="/ocis/static/grpc-logo.png" width="70%" alt="Image sourced from https://grpc.io/ under CC 4.0 BY license" >}}
|
||||
|
||||
{{< /columns >}}
|
||||
|
||||
|
||||
For inter-service-communication we are using mostly gRPC calls because it has some advantages. In the future, clients may decide to use gRPC directly to make use of these advantages.
|
||||
|
||||
{{< figure src="/ocis/static/ocis-apis.drawio.svg" class="page-image">}}
|
||||
|
||||
## [HTTP](http)
|
||||
|
||||
HTTP APIs are mostly used for client <-> server communication. Modern applications are embracing a [RESTful](https://en.wikipedia.org/wiki/Representational_state_transfer) software architecture style. REST APIs are using the HTTP protocol to transfer data between clients and servers. All our clients talk to the Server using HTTP APIs. This has legacy reasons and is well-supported across many platforms and technologies. Infinite Scale uses an [HTTP API gateway](../services/proxy) to route client requests to the correct service.
|
||||
|
||||
### OpenAPI
|
||||
|
||||
It is best practise to define APIs and their behavior by a spec. We are using the OpenAPI standard for all new APIs. The [OpenAPI Specification](https://swagger.io/specification/), previously known as the Swagger Specification, is a specification for a machine-readable interface definition language for describing, producing, consuming and visualizing RESTful web services. Previously part of the Swagger framework, it became a separate project in 2016, overseen by the OpenAPI Initiative, an open-source collaboration project of the Linux Foundation. Swagger and some other tools can generate code, documentation and test cases from interface files.
|
||||
|
||||
### RFC
|
||||
|
||||
Some APIs have become a de facto standard and are additionally covered by an [RFC](https://en.wikipedia.org/wiki/Request_for_Comments).
|
||||
|
||||
## [gRPC](grpc_apis)
|
||||
|
||||
In gRPC, a client application can directly call methods on a server application on a different machine as if it was a local object. This makes it easier to create distributed applications based on microservices. In gRPC we can define a service and specify the methods that can be called remotely. A gRPC client has a stub that provides the same methods and types as the server.
|
||||
Infinite Scale uses a [gRPC API Gateway](../services/gateway) to route the requests to the correct service.
|
||||
|
||||
### Protobuf
|
||||
|
||||
gRPC APIs are typically defined by [Protocol buffers](https://developers.google.com/protocol-buffers/docs/overview). The different client and server stubs are created from ``*.proto`` files by code generation tools.
|
||||
|
||||
## Versioning
|
||||
|
||||
There are different standards for API versioning: Through URL, through request parameter, through custom header and through content negotiation. Ocis uses the versioning by URL concept although this creates a big code footprint. The versioning follows [SemVer](https://semver.org). We update the major version number when breaking changes are needed. Clients can decide which major version they use through the request URL. The specific implementation is documented on each API.
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
---
|
||||
title: gRPC
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/grpc_apis/
|
||||
geekdocFilePath: _index.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
{{< toc-tree >}}
|
||||
|
||||
## **R**emote **P**rocedure **C**alls
|
||||
|
||||
[gRPC](https://grpc.io) is a modern open source high performance Remote Procedure Call (RPC) framework that can run in any environment. It can efficiently connect services in and across data centers with pluggable support for load balancing, tracing, health checking and authentication. It is also applicable in last mile of distributed computing to connect devices, mobile applications and browsers to backend services.
|
||||
|
||||
## Advantages of gRPC
|
||||
|
||||
{{< columns >}}
|
||||
### {{< icon "gauge-high" >}} Performance
|
||||
|
||||
gRPC uses http/2 by default and is faster than REST. When using protocol buffers for encoding, the information comes on and off the wire much faster than JSON. Latency is an important factor in distributed systems. JSON encoding creates a noticeable factor of latency. For distributed systems and high data loads, gRPC can actually make an important difference. Other than that, gRPC supports multiple calls via the same channel and the connections are bidirectional. A single connection can transmit requests and responses at the same time. gRPC keeps connections open to reuse the same connection again which prevents latency and saves bandwidth.
|
||||
|
||||
<--->
|
||||
### {{< icon "helmet-safety" >}} Robustness
|
||||
|
||||
gRPC empowers better relationships between clients and servers. The rules of communication are strictly enforced. That is not the case in REST calls, where the client and the server can send and receive anything they like and hopefully the other end understands what to do with it. In gRPC, to make changes to the communication, both client and server need to change accordingly. This prevents mistakes specially in microservice architectures.
|
||||
{{< /columns >}}
|
||||
{{< columns >}}
|
||||
|
||||
### {{< icon "magnifying-glass-plus" >}} Debuggability
|
||||
|
||||
gRPC requests are re-using the same context and can be tracked or traced across multiple service boundaries.
|
||||
This helps to identify slow calls and see what is causing delays. It is possible to cancel requests which cancels
|
||||
them on all involved services.
|
||||
|
||||
<--->
|
||||
### {{< icon "boxes-stacked" >}} Microservices
|
||||
|
||||
gRPC has been evolving and has become the best option for communication between microservices because of its unmatched
|
||||
performance and its polyglot nature. One of the biggest strengths of microservices is the freedom of programming
|
||||
languages and technologies. By using gRPC we can leverage all the advantages of strictly enforced communication
|
||||
standards combined with freedom of choice between different programming languages - whichever would fit best.
|
||||
|
||||
{{< /columns >}}
|
||||
|
||||
{{< hint type=info title="gRPC Advantages" >}}
|
||||
|
||||
- http/2
|
||||
- protocol buffers
|
||||
- reusable connections
|
||||
- multi language support
|
||||
{{< /hint >}}
|
||||
|
||||
## CS3 APIs
|
||||
|
||||
{{< figure src="/ocis/static/cs3org.png" >}}
|
||||
|
||||
The [CS3 APIs](https://github.com/cs3org/cs3apis) connect storages and application providers.
|
||||
|
||||
The CS3 APIs follow Google and Uber API design guidelines, specially on error handling and naming convention. You can read more about these
|
||||
guidelines at https://cloud.google.com/apis/design/ and https://github.com/uber/prototool/blob/dev/style/README.md.
|
||||
|
||||
The CS3 APIs use [Protocol Buffers version 3 (proto3)](https://github.com/protocolbuffers/protobuf) as their
|
||||
Interface Definition Language (IDL) to define the API interface and the structure of the payload messages.
|
||||
@@ -1,45 +0,0 @@
|
||||
---
|
||||
title: "ocis.messages.eventhistory.v0"
|
||||
url: /apis/grpc_apis/ocis_messages_eventhistory_v0
|
||||
date: 2026-03-23T00:10:32Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/messages/eventhistory/v0/eventhistory.proto
|
||||
|
||||
### Event
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| type | [string](#string) | | REQUIRED. |
|
||||
| id | [string](#string) | | REQUIRED. |
|
||||
| event | [bytes](#bytes) | | REQUIRED |
|
||||
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
---
|
||||
title: "ocis.messages.policies.v0"
|
||||
url: /apis/grpc_apis/ocis_messages_policies_v0
|
||||
date: 2026-03-23T00:10:32Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/messages/policies/v0/policies.proto
|
||||
|
||||
### Environment
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| stage | [Stage](#stage) | | |
|
||||
| user | [User](#user) | | |
|
||||
| request | [Request](#request) | | |
|
||||
| resource | [Resource](#resource) | | |
|
||||
|
||||
### Request
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| method | [string](#string) | | |
|
||||
| path | [string](#string) | | |
|
||||
|
||||
### Resource
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [Resource.ID](#resourceid) | | |
|
||||
| name | [string](#string) | | |
|
||||
| size | [uint64](#uint64) | | |
|
||||
| url | [string](#string) | | |
|
||||
|
||||
### Resource.ID
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| storage_id | [string](#string) | | |
|
||||
| opaque_id | [string](#string) | | |
|
||||
| space_id | [string](#string) | | |
|
||||
|
||||
### User
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [User.ID](#userid) | | |
|
||||
| username | [string](#string) | | |
|
||||
| mail | [string](#string) | | |
|
||||
| display_name | [string](#string) | | |
|
||||
| groups | [string](#string) | repeated | |
|
||||
|
||||
### User.ID
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| opaque_id | [string](#string) | | |
|
||||
|
||||
### Stage
|
||||
|
||||
|
||||
|
||||
| Name | Number | Description |
|
||||
| ---- | ------ | ----------- |
|
||||
| STAGE_PP | 0 | |
|
||||
| STAGE_HTTP | 1 | |
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,147 +0,0 @@
|
||||
---
|
||||
title: "ocis.messages.search.v0"
|
||||
url: /apis/grpc_apis/ocis_messages_search_v0
|
||||
date: 2026-03-23T00:10:32Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/messages/search/v0/search.proto
|
||||
|
||||
### Audio
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| album | [string](#string) | optional | |
|
||||
| albumArtist | [string](#string) | optional | |
|
||||
| artist | [string](#string) | optional | |
|
||||
| bitrate | [int64](#int64) | optional | |
|
||||
| composers | [string](#string) | optional | |
|
||||
| copyright | [string](#string) | optional | |
|
||||
| disc | [int32](#int32) | optional | |
|
||||
| discCount | [int32](#int32) | optional | |
|
||||
| duration | [int64](#int64) | optional | |
|
||||
| genre | [string](#string) | optional | |
|
||||
| hasDrm | [bool](#bool) | optional | |
|
||||
| isVariableBitrate | [bool](#bool) | optional | |
|
||||
| title | [string](#string) | optional | |
|
||||
| track | [int32](#int32) | optional | |
|
||||
| trackCount | [int32](#int32) | optional | |
|
||||
| year | [int32](#int32) | optional | |
|
||||
|
||||
### Entity
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| ref | [Reference](#reference) | | |
|
||||
| id | [ResourceID](#resourceid) | | |
|
||||
| name | [string](#string) | | |
|
||||
| etag | [string](#string) | | |
|
||||
| size | [uint64](#uint64) | | |
|
||||
| last_modified_time | [google.protobuf.Timestamp](#googleprotobuftimestamp) | | |
|
||||
| mime_type | [string](#string) | | |
|
||||
| permissions | [string](#string) | | |
|
||||
| type | [uint64](#uint64) | | |
|
||||
| deleted | [bool](#bool) | | |
|
||||
| shareRootName | [string](#string) | | |
|
||||
| parent_id | [ResourceID](#resourceid) | | |
|
||||
| tags | [string](#string) | repeated | |
|
||||
| highlights | [string](#string) | | |
|
||||
| audio | [Audio](#audio) | | |
|
||||
| location | [GeoCoordinates](#geocoordinates) | | |
|
||||
| remote_item_id | [ResourceID](#resourceid) | | |
|
||||
| image | [Image](#image) | | |
|
||||
| photo | [Photo](#photo) | | |
|
||||
|
||||
### GeoCoordinates
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| altitude | [double](#double) | optional | |
|
||||
| latitude | [double](#double) | optional | |
|
||||
| longitude | [double](#double) | optional | |
|
||||
|
||||
### Image
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| width | [int32](#int32) | optional | |
|
||||
| height | [int32](#int32) | optional | |
|
||||
|
||||
### Match
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| entity | [Entity](#entity) | | the matched entity |
|
||||
| score | [float](#float) | | the match score |
|
||||
|
||||
### Photo
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| cameraMake | [string](#string) | optional | |
|
||||
| cameraModel | [string](#string) | optional | |
|
||||
| exposureDenominator | [float](#float) | optional | |
|
||||
| exposureNumerator | [float](#float) | optional | |
|
||||
| fNumber | [float](#float) | optional | |
|
||||
| focalLength | [float](#float) | optional | |
|
||||
| iso | [int32](#int32) | optional | |
|
||||
| orientation | [int32](#int32) | optional | |
|
||||
| takenDateTime | [google.protobuf.Timestamp](#googleprotobuftimestamp) | optional | |
|
||||
|
||||
### Reference
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| resource_id | [ResourceID](#resourceid) | | |
|
||||
| path | [string](#string) | | |
|
||||
|
||||
### ResourceID
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| storage_id | [string](#string) | | |
|
||||
| opaque_id | [string](#string) | | |
|
||||
| space_id | [string](#string) | | |
|
||||
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,322 +0,0 @@
|
||||
---
|
||||
title: "ocis.messages.settings.v0"
|
||||
url: /apis/grpc_apis/ocis_messages_settings_v0
|
||||
date: 2026-03-23T00:10:32Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/messages/settings/v0/settings.proto
|
||||
|
||||
### Bool
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| default | [bool](#bool) | | @gotags: yaml:"default" |
|
||||
| label | [string](#string) | | @gotags: yaml:"label" |
|
||||
|
||||
### Bundle
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [string](#string) | | @gotags: yaml:"id" |
|
||||
| name | [string](#string) | | @gotags: yaml:"name" |
|
||||
| type | [Bundle.Type](#bundletype) | | @gotags: yaml:"type" |
|
||||
| extension | [string](#string) | | @gotags: yaml:"extension" |
|
||||
| display_name | [string](#string) | | @gotags: yaml:"display_name" |
|
||||
| settings | [Setting](#setting) | repeated | @gotags: yaml:"settings" |
|
||||
| resource | [Resource](#resource) | | @gotags: yaml:"resource" |
|
||||
|
||||
### CollectionOption
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| key | [string](#string) | | required<br><br>@gotags: yaml:"key" |
|
||||
| int_value | [int64](#int64) | | @gotags: yaml:"int_value" |
|
||||
| string_value | [string](#string) | | @gotags: yaml:"string_value" |
|
||||
| bool_value | [bool](#bool) | | @gotags: yaml:"bool_value" |
|
||||
|
||||
### CollectionValue
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| values | [CollectionOption](#collectionoption) | repeated | @gotags: yaml:"values" |
|
||||
|
||||
### Identifier
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| extension | [string](#string) | | |
|
||||
| bundle | [string](#string) | | |
|
||||
| setting | [string](#string) | | |
|
||||
|
||||
### Int
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| default | [int64](#int64) | | @gotags: yaml:"default" |
|
||||
| min | [int64](#int64) | | @gotags: yaml:"min" |
|
||||
| max | [int64](#int64) | | @gotags: yaml:"max" |
|
||||
| step | [int64](#int64) | | @gotags: yaml:"step" |
|
||||
| placeholder | [string](#string) | | @gotags: yaml:"placeholder" |
|
||||
|
||||
### ListOption
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| value | [ListOptionValue](#listoptionvalue) | | @gotags: yaml:"value" |
|
||||
| default | [bool](#bool) | | @gotags: yaml:"default" |
|
||||
| display_value | [string](#string) | | @gotags: yaml:"display_value" |
|
||||
|
||||
### ListOptionValue
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| string_value | [string](#string) | | @gotags: yaml:"string_value" |
|
||||
| int_value | [int64](#int64) | | @gotags: yaml:"int_value" |
|
||||
| bool_value | [bool](#bool) | | @gotags: yaml:"bool_value" |
|
||||
|
||||
### ListValue
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| values | [ListOptionValue](#listoptionvalue) | repeated | @gotags: yaml:"values" |
|
||||
|
||||
### MultiChoiceCollection
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| options | [MultiChoiceCollectionOption](#multichoicecollectionoption) | repeated | @gotags: yaml:"options" |
|
||||
|
||||
### MultiChoiceCollectionOption
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| value | [MultiChoiceCollectionOptionValue](#multichoicecollectionoptionvalue) | | @gotags: yaml:"value" |
|
||||
| key | [string](#string) | | @gotags: yaml:"key" |
|
||||
| attribute | [string](#string) | | @gotags: yaml:"attribute" |
|
||||
| display_value | [string](#string) | | @gotags: yaml:"display_value" |
|
||||
|
||||
### MultiChoiceCollectionOptionValue
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| int_value | [Int](#int) | | @gotags: yaml:"int_value" |
|
||||
| string_value | [String](#string) | | @gotags: yaml:"string_value" |
|
||||
| bool_value | [Bool](#bool) | | @gotags: yaml:"bool_value" |
|
||||
|
||||
### MultiChoiceList
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| options | [ListOption](#listoption) | repeated | @gotags: yaml:"options" |
|
||||
|
||||
### Permission
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| operation | [Permission.Operation](#permissionoperation) | | @gotags: yaml:"operation" |
|
||||
| constraint | [Permission.Constraint](#permissionconstraint) | | @gotags: yaml:"constraint" |
|
||||
|
||||
### Resource
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| type | [Resource.Type](#resourcetype) | | |
|
||||
| id | [string](#string) | | |
|
||||
|
||||
### Setting
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [string](#string) | | @gotags: yaml:"id" |
|
||||
| name | [string](#string) | | @gotags: yaml:"name" |
|
||||
| display_name | [string](#string) | | @gotags: yaml:"display_name" |
|
||||
| description | [string](#string) | | @gotags: yaml:"description" |
|
||||
| int_value | [Int](#int) | | @gotags: yaml:"int_value" |
|
||||
| string_value | [String](#string) | | @gotags: yaml:"string_value" |
|
||||
| bool_value | [Bool](#bool) | | @gotags: yaml:"bool_value" |
|
||||
| single_choice_value | [SingleChoiceList](#singlechoicelist) | | @gotags: yaml:"single_choice_value" |
|
||||
| multi_choice_value | [MultiChoiceList](#multichoicelist) | | @gotags: yaml:"multi_choice_value" |
|
||||
| permission_value | [Permission](#permission) | | @gotags: yaml:"permission_value" |
|
||||
| multi_choice_collection_value | [MultiChoiceCollection](#multichoicecollection) | | @gotags: yaml:"multi_choice_collection_value" |
|
||||
| resource | [Resource](#resource) | | @gotags: yaml:"resource" |
|
||||
|
||||
### SingleChoiceList
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| options | [ListOption](#listoption) | repeated | @gotags: yaml:"options" |
|
||||
|
||||
### String
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| default | [string](#string) | | @gotags: yaml:"default" |
|
||||
| required | [bool](#bool) | | @gotags: yaml:"required" |
|
||||
| min_length | [int32](#int32) | | @gotags: yaml:"min_length" |
|
||||
| max_length | [int32](#int32) | | @gotags: yaml:"max_length" |
|
||||
| placeholder | [string](#string) | | @gotags: yaml:"placeholder" |
|
||||
|
||||
### UserRoleAssignment
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [string](#string) | | id is generated upon saving the assignment |
|
||||
| account_uuid | [string](#string) | | |
|
||||
| role_id | [string](#string) | | the role_id is a bundle_id internally |
|
||||
|
||||
### UserRoleAssignmentFilter
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| type | [UserRoleAssignmentFilter.Type](#userroleassignmentfiltertype) | | |
|
||||
| account_uuid | [string](#string) | | |
|
||||
| role_id | [string](#string) | | |
|
||||
|
||||
### Value
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [string](#string) | | id is the id of the Value. It is generated on saving it.<br><br>@gotags: yaml:"id" |
|
||||
| bundle_id | [string](#string) | | @gotags: yaml:"bundle_id" |
|
||||
| setting_id | [string](#string) | | setting_id is the id of the setting from within its bundle.<br><br>@gotags: yaml:"setting_id" |
|
||||
| account_uuid | [string](#string) | | @gotags: yaml:"account_uuid" |
|
||||
| resource | [Resource](#resource) | | @gotags: yaml:"resource" |
|
||||
| bool_value | [bool](#bool) | | @gotags: yaml:"bool_value" |
|
||||
| int_value | [int64](#int64) | | @gotags: yaml:"int_value" |
|
||||
| string_value | [string](#string) | | @gotags: yaml:"string_value" |
|
||||
| list_value | [ListValue](#listvalue) | | @gotags: yaml:"list_value" |
|
||||
| collection_value | [CollectionValue](#collectionvalue) | | @gotags: yaml:"collection_value" |
|
||||
|
||||
### ValueWithIdentifier
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| identifier | [Identifier](#identifier) | | |
|
||||
| value | [Value](#value) | | |
|
||||
|
||||
### Bundle.Type
|
||||
|
||||
|
||||
|
||||
| Name | Number | Description |
|
||||
| ---- | ------ | ----------- |
|
||||
| TYPE_UNKNOWN | 0 | |
|
||||
| TYPE_DEFAULT | 1 | |
|
||||
| TYPE_ROLE | 2 | |
|
||||
### Permission.Constraint
|
||||
|
||||
|
||||
|
||||
| Name | Number | Description |
|
||||
| ---- | ------ | ----------- |
|
||||
| CONSTRAINT_UNKNOWN | 0 | |
|
||||
| CONSTRAINT_OWN | 1 | |
|
||||
| CONSTRAINT_SHARED | 2 | |
|
||||
| CONSTRAINT_ALL | 3 | |
|
||||
### Permission.Operation
|
||||
|
||||
|
||||
|
||||
| Name | Number | Description |
|
||||
| ---- | ------ | ----------- |
|
||||
| OPERATION_UNKNOWN | 0 | |
|
||||
| OPERATION_CREATE | 1 | |
|
||||
| OPERATION_READ | 2 | |
|
||||
| OPERATION_UPDATE | 3 | |
|
||||
| OPERATION_DELETE | 4 | |
|
||||
| OPERATION_WRITE | 5 | WRITE is a combination of CREATE and UPDATE |
|
||||
| OPERATION_READWRITE | 6 | READWRITE is a combination of READ and WRITE |
|
||||
### Resource.Type
|
||||
|
||||
|
||||
|
||||
| Name | Number | Description |
|
||||
| ---- | ------ | ----------- |
|
||||
| TYPE_UNKNOWN | 0 | |
|
||||
| TYPE_SYSTEM | 1 | |
|
||||
| TYPE_FILE | 2 | |
|
||||
| TYPE_SHARE | 3 | |
|
||||
| TYPE_SETTING | 4 | |
|
||||
| TYPE_BUNDLE | 5 | |
|
||||
| TYPE_USER | 6 | |
|
||||
| TYPE_GROUP | 7 | |
|
||||
### UserRoleAssignmentFilter.Type
|
||||
|
||||
|
||||
|
||||
| Name | Number | Description |
|
||||
| ---- | ------ | ----------- |
|
||||
| TYPE_UNKNOWN | 0 | |
|
||||
| TYPE_ACCOUNT | 1 | |
|
||||
| TYPE_ROLE | 2 | |
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,120 +0,0 @@
|
||||
---
|
||||
title: "ocis.messages.store.v0"
|
||||
url: /apis/grpc_apis/ocis_messages_store_v0
|
||||
date: 2026-03-23T00:10:32Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/messages/store/v0/store.proto
|
||||
|
||||
### DeleteOptions
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| database | [string](#string) | | |
|
||||
| table | [string](#string) | | |
|
||||
|
||||
### Field
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| type | [string](#string) | | type of value e.g string, int, int64, bool, float64 |
|
||||
| value | [string](#string) | | the actual value |
|
||||
|
||||
### ListOptions
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| database | [string](#string) | | |
|
||||
| table | [string](#string) | | |
|
||||
| prefix | [string](#string) | | |
|
||||
| suffix | [string](#string) | | |
|
||||
| limit | [uint64](#uint64) | | |
|
||||
| offset | [uint64](#uint64) | | |
|
||||
|
||||
### ReadOptions
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| database | [string](#string) | | |
|
||||
| table | [string](#string) | | |
|
||||
| prefix | [bool](#bool) | | |
|
||||
| suffix | [bool](#bool) | | |
|
||||
| limit | [uint64](#uint64) | | |
|
||||
| offset | [uint64](#uint64) | | |
|
||||
| where | [ReadOptions.WhereEntry](#readoptionswhereentry) | repeated | |
|
||||
|
||||
### ReadOptions.WhereEntry
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| key | [string](#string) | | |
|
||||
| value | [Field](#field) | | |
|
||||
|
||||
### Record
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| key | [string](#string) | | key of the recorda |
|
||||
| value | [bytes](#bytes) | | value in the record |
|
||||
| expiry | [int64](#int64) | | time.Duration (signed int64 nanoseconds) |
|
||||
| metadata | [Record.MetadataEntry](#recordmetadataentry) | repeated | the associated metadata |
|
||||
|
||||
### Record.MetadataEntry
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| key | [string](#string) | | |
|
||||
| value | [Field](#field) | | |
|
||||
|
||||
### WriteOptions
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| database | [string](#string) | | |
|
||||
| table | [string](#string) | | |
|
||||
| expiry | [int64](#int64) | | time.Time |
|
||||
| ttl | [int64](#int64) | | time.Duration |
|
||||
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
---
|
||||
title: "ocis.messages.thumbnails.v0"
|
||||
url: /apis/grpc_apis/ocis_messages_thumbnails_v0
|
||||
date: 2026-03-23T00:10:32Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/messages/thumbnails/v0/thumbnails.proto
|
||||
|
||||
### CS3Source
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| path | [string](#string) | | |
|
||||
| authorization | [string](#string) | | |
|
||||
|
||||
### WebdavSource
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| url | [string](#string) | | REQUIRED. |
|
||||
| is_public_link | [bool](#bool) | | REQUIRED. |
|
||||
| webdav_authorization | [string](#string) | | OPTIONAL. |
|
||||
| reva_authorization | [string](#string) | | OPTIONAL. |
|
||||
| public_link_token | [string](#string) | | OPTIONAL. |
|
||||
|
||||
### ThumbnailType
|
||||
|
||||
The file types to which the thumbnail can be encoded to.
|
||||
|
||||
| Name | Number | Description |
|
||||
| ---- | ------ | ----------- |
|
||||
| PNG | 0 | Represents PNG type |
|
||||
| JPG | 1 | Represents JPG type |
|
||||
| GIF | 2 | Represents GIF type |
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,68 +0,0 @@
|
||||
---
|
||||
title: "ocis.services.eventhistory.v0"
|
||||
url: /apis/grpc_apis/ocis_services_eventhistory_v0
|
||||
date: 2026-03-23T00:10:32Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/services/eventhistory/v0/eventhistory.proto
|
||||
|
||||
### GetEventsForUserRequest
|
||||
|
||||
A request to retrieve events belonging to a userID
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| userID | [string](#string) | | the userID of the events we want to get |
|
||||
|
||||
### GetEventsRequest
|
||||
|
||||
A request to retrieve events
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| ids | [string](#string) | repeated | the ids of the events we want to get |
|
||||
|
||||
### GetEventsResponse
|
||||
|
||||
The service response
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| events | [ocis.messages.eventhistory.v0.Event](/apis/grpc_apis/ocis_messages_eventhistory_v0/#event) | repeated | |
|
||||
|
||||
|
||||
### EventHistoryService
|
||||
|
||||
A Service for storing events
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| GetEvents | [GetEventsRequest](#geteventsrequest) | [GetEventsResponse](#geteventsresponse) | returns the specified events |
|
||||
| GetEventsForUser | [GetEventsForUserRequest](#geteventsforuserrequest) | [GetEventsResponse](#geteventsresponse) | returns all events for the specified userID |
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
---
|
||||
title: "ocis.services.policies.v0"
|
||||
url: /apis/grpc_apis/ocis_services_policies_v0
|
||||
date: 2026-03-23T00:10:32Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/services/policies/v0/policies.proto
|
||||
|
||||
### EvaluateRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| query | [string](#string) | | |
|
||||
| environment | [ocis.messages.policies.v0.Environment](/apis/grpc_apis/ocis_messages_policies_v0/#environment) | | |
|
||||
|
||||
### EvaluateResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| result | [bool](#bool) | | |
|
||||
|
||||
|
||||
### policiesProvider
|
||||
|
||||
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| Evaluate | [EvaluateRequest](#evaluaterequest) | [EvaluateResponse](#evaluateresponse) | |
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,108 +0,0 @@
|
||||
---
|
||||
title: "ocis.services.search.v0"
|
||||
url: /apis/grpc_apis/ocis_services_search_v0
|
||||
date: 2026-03-23T00:10:32Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/services/search/v0/search.proto
|
||||
|
||||
### IndexSpaceRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| space_id | [string](#string) | | |
|
||||
| user_id | [string](#string) | | |
|
||||
|
||||
### IndexSpaceResponse
|
||||
|
||||
|
||||
|
||||
|
||||
### SearchIndexRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| page_size | [int32](#int32) | | Optional. The maximum number of entries to return in the response |
|
||||
| page_token | [string](#string) | | Optional. A pagination token returned from a previous call to `Get`<br>that indicates from where search should continue |
|
||||
| query | [string](#string) | | |
|
||||
| ref | [ocis.messages.search.v0.Reference](/apis/grpc_apis/ocis_messages_search_v0/#reference) | | |
|
||||
|
||||
### SearchIndexResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| matches | [ocis.messages.search.v0.Match](/apis/grpc_apis/ocis_messages_search_v0/#match) | repeated | |
|
||||
| next_page_token | [string](#string) | | Token to retrieve the next page of results, or empty if there are no<br>more results in the list |
|
||||
| total_matches | [int32](#int32) | | |
|
||||
|
||||
### SearchRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| page_size | [int32](#int32) | | Optional. The maximum number of entries to return in the response |
|
||||
| page_token | [string](#string) | | Optional. A pagination token returned from a previous call to `Get`<br>that indicates from where search should continue |
|
||||
| query | [string](#string) | | |
|
||||
| ref | [ocis.messages.search.v0.Reference](/apis/grpc_apis/ocis_messages_search_v0/#reference) | | |
|
||||
|
||||
### SearchResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| matches | [ocis.messages.search.v0.Match](/apis/grpc_apis/ocis_messages_search_v0/#match) | repeated | |
|
||||
| next_page_token | [string](#string) | | Token to retrieve the next page of results, or empty if there are no<br>more results in the list |
|
||||
| total_matches | [int32](#int32) | | |
|
||||
|
||||
|
||||
### IndexProvider
|
||||
|
||||
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| Search | [SearchIndexRequest](#searchindexrequest) | [SearchIndexResponse](#searchindexresponse) | |
|
||||
|
||||
### SearchProvider
|
||||
|
||||
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| Search | [SearchRequest](#searchrequest) | [SearchResponse](#searchresponse) | |
|
||||
| IndexSpace | [IndexSpaceRequest](#indexspacerequest) | [IndexSpaceResponse](#indexspaceresponse) | |
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,312 +0,0 @@
|
||||
---
|
||||
title: "ocis.services.settings.v0"
|
||||
url: /apis/grpc_apis/ocis_services_settings_v0
|
||||
date: 2026-03-23T00:10:32Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/services/settings/v0/settings.proto
|
||||
|
||||
### AddSettingToBundleRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| bundle_id | [string](#string) | | |
|
||||
| setting | [ocis.messages.settings.v0.Setting](/apis/grpc_apis/ocis_messages_settings_v0/#setting) | | |
|
||||
|
||||
### AddSettingToBundleResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| setting | [ocis.messages.settings.v0.Setting](/apis/grpc_apis/ocis_messages_settings_v0/#setting) | | |
|
||||
|
||||
### AssignRoleToUserRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| account_uuid | [string](#string) | | |
|
||||
| role_id | [string](#string) | | the role_id is a bundle_id internally |
|
||||
|
||||
### AssignRoleToUserResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| assignment | [ocis.messages.settings.v0.UserRoleAssignment](/apis/grpc_apis/ocis_messages_settings_v0/#userroleassignment) | | |
|
||||
|
||||
### GetBundleRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| bundle_id | [string](#string) | | |
|
||||
|
||||
### GetBundleResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| bundle | [ocis.messages.settings.v0.Bundle](/apis/grpc_apis/ocis_messages_settings_v0/#bundle) | | |
|
||||
|
||||
### GetPermissionByIDRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| permission_id | [string](#string) | | |
|
||||
|
||||
### GetPermissionByIDResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| permission | [ocis.messages.settings.v0.Permission](/apis/grpc_apis/ocis_messages_settings_v0/#permission) | | |
|
||||
|
||||
### GetValueByUniqueIdentifiersRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| account_uuid | [string](#string) | | |
|
||||
| setting_id | [string](#string) | | |
|
||||
|
||||
### GetValueRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [string](#string) | | |
|
||||
|
||||
### GetValueResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| value | [ocis.messages.settings.v0.ValueWithIdentifier](/apis/grpc_apis/ocis_messages_settings_v0/#valuewithidentifier) | | |
|
||||
|
||||
### ListBundlesRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| bundle_ids | [string](#string) | repeated | |
|
||||
| locale | [string](#string) | | |
|
||||
|
||||
### ListBundlesResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| bundles | [ocis.messages.settings.v0.Bundle](/apis/grpc_apis/ocis_messages_settings_v0/#bundle) | repeated | |
|
||||
|
||||
### ListPermissionsByResourceRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| resource | [ocis.messages.settings.v0.Resource](/apis/grpc_apis/ocis_messages_settings_v0/#resource) | | |
|
||||
|
||||
### ListPermissionsByResourceResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| permissions | [ocis.messages.settings.v0.Permission](/apis/grpc_apis/ocis_messages_settings_v0/#permission) | repeated | |
|
||||
|
||||
### ListPermissionsRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| account_uuid | [string](#string) | | |
|
||||
|
||||
### ListPermissionsResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| permissions | [string](#string) | repeated | |
|
||||
|
||||
### ListRoleAssignmentsFilteredRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| filters | [ocis.messages.settings.v0.UserRoleAssignmentFilter](/apis/grpc_apis/ocis_messages_settings_v0/#userroleassignmentfilter) | repeated | |
|
||||
|
||||
### ListRoleAssignmentsRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| account_uuid | [string](#string) | | |
|
||||
|
||||
### ListRoleAssignmentsResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| assignments | [ocis.messages.settings.v0.UserRoleAssignment](/apis/grpc_apis/ocis_messages_settings_v0/#userroleassignment) | repeated | |
|
||||
|
||||
### ListValuesRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| bundle_id | [string](#string) | | |
|
||||
| account_uuid | [string](#string) | | |
|
||||
|
||||
### ListValuesResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| values | [ocis.messages.settings.v0.ValueWithIdentifier](/apis/grpc_apis/ocis_messages_settings_v0/#valuewithidentifier) | repeated | |
|
||||
|
||||
### RemoveRoleFromUserRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [string](#string) | | |
|
||||
|
||||
### RemoveSettingFromBundleRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| bundle_id | [string](#string) | | |
|
||||
| setting_id | [string](#string) | | |
|
||||
|
||||
### SaveBundleRequest
|
||||
|
||||
---
|
||||
requests and responses for settings bundles
|
||||
---
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| bundle | [ocis.messages.settings.v0.Bundle](/apis/grpc_apis/ocis_messages_settings_v0/#bundle) | | |
|
||||
|
||||
### SaveBundleResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| bundle | [ocis.messages.settings.v0.Bundle](/apis/grpc_apis/ocis_messages_settings_v0/#bundle) | | |
|
||||
|
||||
### SaveValueRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| value | [ocis.messages.settings.v0.Value](/apis/grpc_apis/ocis_messages_settings_v0/#value) | | |
|
||||
|
||||
### SaveValueResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| value | [ocis.messages.settings.v0.ValueWithIdentifier](/apis/grpc_apis/ocis_messages_settings_v0/#valuewithidentifier) | | |
|
||||
|
||||
|
||||
### BundleService
|
||||
|
||||
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| SaveBundle | [SaveBundleRequest](#savebundlerequest) | [SaveBundleResponse](#savebundleresponse) | |
|
||||
| GetBundle | [GetBundleRequest](#getbundlerequest) | [GetBundleResponse](#getbundleresponse) | |
|
||||
| ListBundles | [ListBundlesRequest](#listbundlesrequest) | [ListBundlesResponse](#listbundlesresponse) | |
|
||||
| AddSettingToBundle | [AddSettingToBundleRequest](#addsettingtobundlerequest) | [AddSettingToBundleResponse](#addsettingtobundleresponse) | |
|
||||
| RemoveSettingFromBundle | [RemoveSettingFromBundleRequest](#removesettingfrombundlerequest) | [.google.protobuf.Empty](#googleprotobufempty) | |
|
||||
|
||||
### PermissionService
|
||||
|
||||
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| ListPermissions | [ListPermissionsRequest](#listpermissionsrequest) | [ListPermissionsResponse](#listpermissionsresponse) | |
|
||||
| ListPermissionsByResource | [ListPermissionsByResourceRequest](#listpermissionsbyresourcerequest) | [ListPermissionsByResourceResponse](#listpermissionsbyresourceresponse) | |
|
||||
| GetPermissionByID | [GetPermissionByIDRequest](#getpermissionbyidrequest) | [GetPermissionByIDResponse](#getpermissionbyidresponse) | |
|
||||
|
||||
### RoleService
|
||||
|
||||
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| ListRoles | [ListBundlesRequest](#listbundlesrequest) | [ListBundlesResponse](#listbundlesresponse) | |
|
||||
| ListRoleAssignments | [ListRoleAssignmentsRequest](#listroleassignmentsrequest) | [ListRoleAssignmentsResponse](#listroleassignmentsresponse) | |
|
||||
| ListRoleAssignmentsFiltered | [ListRoleAssignmentsFilteredRequest](#listroleassignmentsfilteredrequest) | [ListRoleAssignmentsResponse](#listroleassignmentsresponse) | |
|
||||
| AssignRoleToUser | [AssignRoleToUserRequest](#assignroletouserrequest) | [AssignRoleToUserResponse](#assignroletouserresponse) | |
|
||||
| RemoveRoleFromUser | [RemoveRoleFromUserRequest](#removerolefromuserrequest) | [.google.protobuf.Empty](#googleprotobufempty) | |
|
||||
|
||||
### ValueService
|
||||
|
||||
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| SaveValue | [SaveValueRequest](#savevaluerequest) | [SaveValueResponse](#savevalueresponse) | |
|
||||
| GetValue | [GetValueRequest](#getvaluerequest) | [GetValueResponse](#getvalueresponse) | |
|
||||
| ListValues | [ListValuesRequest](#listvaluesrequest) | [ListValuesResponse](#listvaluesresponse) | |
|
||||
| GetValueByUniqueIdentifiers | [GetValueByUniqueIdentifiersRequest](#getvaluebyuniqueidentifiersrequest) | [GetValueResponse](#getvalueresponse) | |
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,138 +0,0 @@
|
||||
---
|
||||
title: "ocis.services.store.v0"
|
||||
url: /apis/grpc_apis/ocis_services_store_v0
|
||||
date: 2026-03-23T00:10:32Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/services/store/v0/store.proto
|
||||
|
||||
### DatabasesRequest
|
||||
|
||||
|
||||
|
||||
|
||||
### DatabasesResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| databases | [string](#string) | repeated | |
|
||||
|
||||
### DeleteRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| key | [string](#string) | | |
|
||||
| options | [ocis.messages.store.v0.DeleteOptions](/apis/grpc_apis/ocis_messages_store_v0/#deleteoptions) | | |
|
||||
|
||||
### DeleteResponse
|
||||
|
||||
|
||||
|
||||
|
||||
### ListRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| options | [ocis.messages.store.v0.ListOptions](/apis/grpc_apis/ocis_messages_store_v0/#listoptions) | | |
|
||||
|
||||
### ListResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| keys | [string](#string) | repeated | |
|
||||
|
||||
### ReadRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| key | [string](#string) | | |
|
||||
| options | [ocis.messages.store.v0.ReadOptions](/apis/grpc_apis/ocis_messages_store_v0/#readoptions) | | |
|
||||
|
||||
### ReadResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| records | [ocis.messages.store.v0.Record](/apis/grpc_apis/ocis_messages_store_v0/#record) | repeated | |
|
||||
|
||||
### TablesRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| database | [string](#string) | | |
|
||||
|
||||
### TablesResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| tables | [string](#string) | repeated | |
|
||||
|
||||
### WriteRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| record | [ocis.messages.store.v0.Record](/apis/grpc_apis/ocis_messages_store_v0/#record) | | |
|
||||
| options | [ocis.messages.store.v0.WriteOptions](/apis/grpc_apis/ocis_messages_store_v0/#writeoptions) | | |
|
||||
|
||||
### WriteResponse
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Store
|
||||
|
||||
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| Read | [ReadRequest](#readrequest) | [ReadResponse](#readresponse) | |
|
||||
| Write | [WriteRequest](#writerequest) | [WriteResponse](#writeresponse) | |
|
||||
| Delete | [DeleteRequest](#deleterequest) | [DeleteResponse](#deleteresponse) | |
|
||||
| List | [ListRequest](#listrequest) | [ListResponse](#listresponse) stream | |
|
||||
| Databases | [DatabasesRequest](#databasesrequest) | [DatabasesResponse](#databasesresponse) | |
|
||||
| Tables | [TablesRequest](#tablesrequest) | [TablesResponse](#tablesresponse) | |
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,67 +0,0 @@
|
||||
---
|
||||
title: "ocis.services.thumbnails.v0"
|
||||
url: /apis/grpc_apis/ocis_services_thumbnails_v0
|
||||
date: 2026-03-23T00:10:32Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/services/thumbnails/v0/thumbnails.proto
|
||||
|
||||
### GetThumbnailRequest
|
||||
|
||||
A request to retrieve a thumbnail
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| filepath | [string](#string) | | The path to the source image |
|
||||
| thumbnail_type | [ocis.messages.thumbnails.v0.ThumbnailType](/apis/grpc_apis/ocis_messages_thumbnails_v0/#thumbnailtype) | | The type to which the thumbnail should get encoded to. |
|
||||
| width | [int32](#int32) | | The width of the thumbnail |
|
||||
| height | [int32](#int32) | | The height of the thumbnail |
|
||||
| processor | [string](#string) | | Indicates which image processor to use |
|
||||
| webdav_source | [ocis.messages.thumbnails.v0.WebdavSource](/apis/grpc_apis/ocis_messages_thumbnails_v0/#webdavsource) | | |
|
||||
| cs3_source | [ocis.messages.thumbnails.v0.CS3Source](/apis/grpc_apis/ocis_messages_thumbnails_v0/#cs3source) | | |
|
||||
|
||||
### GetThumbnailResponse
|
||||
|
||||
The service response
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| data_endpoint | [string](#string) | | The endpoint where the thumbnail can be downloaded. |
|
||||
| transfer_token | [string](#string) | | The transfer token to be able to download the thumbnail. |
|
||||
| mimetype | [string](#string) | | The mimetype of the thumbnail |
|
||||
|
||||
|
||||
### ThumbnailService
|
||||
|
||||
A Service for handling thumbnail generation
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| GetThumbnail | [GetThumbnailRequest](#getthumbnailrequest) | [GetThumbnailResponse](#getthumbnailresponse) | Generates the thumbnail and returns it. |
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
---
|
||||
title: Http
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http/
|
||||
geekdocFilePath: _index.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
The [Hypertext Transfer Protocol (HTTP)](https://www.rfc-editor.org/rfc/rfc2616) is a stateless application-level protocol for distributed, collaborative, hypertext information systems. HTTP is the foundation of data communication for the World Wide Web, where hypertext documents include hyperlinks to other resources that the user can easily access, for example by a mouse click or by tapping the screen in a web browser.
|
||||
|
||||
Development of HTTP was initiated by Tim Berners-Lee at CERN in 1989 and summarized in a simple document describing the behavior of a client and a server using the first HTTP protocol version that was named 0.9. That first version of HTTP protocol soon evolved into a more elaborated version that was the first draft toward a far future version 1.0
|
||||
@@ -1,142 +0,0 @@
|
||||
---
|
||||
title: Authorization
|
||||
weight: 40
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http/
|
||||
geekdocFilePath: authorization.md
|
||||
---
|
||||
|
||||
In its default configuration, Infinite Scale supports three authentication methods as outlined on the [OIDC official site](https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.3):
|
||||
1. Authorization Code Flow
|
||||
2. Implicit Flow
|
||||
3. Hybrid Flow
|
||||
|
||||
For detailed information on Infinite Scale's support for OpenID Connect (OIDC), please consult the [OIDC section](https://owncloud.dev/ocis/identity-provider/oidc).
|
||||
To authenticate a client app using OIDC, both `client_id` and `client_secret` are essential. Infinite Scale does not offer dynamic registration. The required data for the default [ownCloud clients](https://doc.owncloud.com/server/next/admin_manual/configuration/user/oidc/oidc.html#client-ids-secrets-and-redirect-uris) can be found in the link and are availble for the following apps:
|
||||
- Desktop
|
||||
- Android
|
||||
- iOS
|
||||
|
||||
While selecting an ownCloud client for authentication, take note of specific limitations such as the `Redirect URI`:
|
||||
|
||||
| Source | Redirect URI |
|
||||
|------|--------|
|
||||
|Android|oc://android.owncloud.com|
|
||||
|iOS|oc://ios.owncloud.com|
|
||||
|Desktop|http://127.0.0.1 <br> http://localhost |
|
||||
|
||||
In this example, the desktop app's `client_id` and `client_secret` are being used.
|
||||
|
||||
```bash
|
||||
client_id=xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69
|
||||
client_secret=UBntmLjC2yYCeHwsyj73Uwo9TAaecAetRwMw0xYcvNL9yRdLSUi0hUAHfvCHFeFh
|
||||
```
|
||||
|
||||
## Authorization Code Flow
|
||||
|
||||
1. Requesting authorization
|
||||
|
||||
To initiate the OIDC Code Flow, you can use tools like curl and a web browser.
|
||||
The user should be directed to a URL to authenticate and give their consent (bypassing consent is against the standard):
|
||||
|
||||
```plaintext
|
||||
https://ocis.test/signin/v1/identifier/_/authorize?client_id=client_id&scope=openid+profile+email+offline_access&response_type=code&redirect_uri=http://path-to-redirect-uri
|
||||
```
|
||||
|
||||
After a successful authentication, the browser will redirect to a URL that looks like this:
|
||||
|
||||
```plaintext
|
||||
http://path-to-redirect-uri?code=mfWsjEL0mc8gx0ftF9LFkGb__uFykaBw&scope=openid%20profile%20email%20offline_access&session_state=32b08dd...&state=
|
||||
```
|
||||
|
||||
For the next step extract the code from the URL.
|
||||
|
||||
In the above example,
|
||||
the code is `mfWsjEL0mc8gx0ftF9LFkGb__uFykaBw`
|
||||
|
||||
2. Requesting an access token
|
||||
|
||||
The next step in the OIDC Code Flow involves an HTTP POST request
|
||||
to the token endpoint of the **Infinite Scale Identity Server**.
|
||||
|
||||
```bash
|
||||
curl -vk -X POST https://ocis.test/konnect/v1/token \
|
||||
-d "grant_type=authorization_code" \
|
||||
-d "code=3a3PTcO-WWXfN3l1mDN4u7G5PzWFxatU" \
|
||||
-d "redirect_uri=http:path-to-redirect-uri" \
|
||||
-d "client_id=client_id" \
|
||||
-d "client_secret=client_secret"
|
||||
```
|
||||
|
||||
Response looks like this:
|
||||
```json
|
||||
{
|
||||
"access_token": "eyJhbGciOid...",
|
||||
"token_type": "Bearer",
|
||||
"id_token": "eyJhbGciOi...",
|
||||
"refresh_token": "eyJhbGciOiJ...",
|
||||
"expires_in": 300
|
||||
}
|
||||
```
|
||||
|
||||
3. Refreshing an access token
|
||||
|
||||
If the access token has expired, you can get a new one using the refresh token.
|
||||
```bash
|
||||
curl -vk -X POST https://ocis.test/konnect/v1/token \
|
||||
-d "grant_type=refresh_token" \
|
||||
-d "refresh_token=eyJhbGciOiJ..." \
|
||||
-d "redirect_uri=http://path-to-redirect-uri" \
|
||||
-d "client_id=client_id" \
|
||||
-d "client_secret=client_secret"
|
||||
```
|
||||
|
||||
Response looks like this:
|
||||
```json
|
||||
{
|
||||
"access_token": "eyJhbGciOi...",
|
||||
"token_type": "Bearer",
|
||||
"expires_in": 300
|
||||
}
|
||||
```
|
||||
|
||||
## Implicit Code Flow
|
||||
|
||||
When using the implicit flow, tokens are provided in a URI fragment of the redirect URL.
|
||||
Valid values for the `response_type` request parameter are:
|
||||
|
||||
- token
|
||||
- id_token token
|
||||
|
||||
{{< hint type=warning title="Important Warning" >}}
|
||||
If you are using the implicit flow, `nonce` parameter is required in the initial `/authorize` request.
|
||||
`nonce=pL3UkpAQPZ8bTMGYOmxHY/dQABin8yrqipZ7iN0PY18=`
|
||||
|
||||
bash command to generate cryptographically random value
|
||||
```bash
|
||||
openssl rand -base64 32
|
||||
```
|
||||
{{< /hint >}}
|
||||
|
||||
The user should be directed to a URL to authenticate and give their consent (bypassing consent is against the standard):
|
||||
```bash
|
||||
https://ocis.test/signin/v1/identifier/_/authorize?client_id=client_id&scope=openid+profile+email+offline_access&response_type=id_token+token&redirect_uri=http://path-to-redirect-uri&nonce=pL3UkpAQPZ8bTMGYOmxHY/dQABin8yrqipZ7iN0PY18=
|
||||
```
|
||||
|
||||
After a successful authentication, the browser will redirect to a URL that looks like this:
|
||||
```bash
|
||||
http://path-to-redirect-uri#access_token=eyJhbGciOiJQUzI...&expires_in=300&id_token=eyJhbGciOiJ...&scope=email%20openid%20profile&session_state=c8a1019f5e054d...&state=&token_type=Bearer
|
||||
```
|
||||
|
||||
For the next step, extract the access_token from the URL.
|
||||
```bash
|
||||
access_token = 'eyJhbGciOiJQ...'
|
||||
```
|
||||
|
||||
## Hybrid Flow
|
||||
The Hybrid Flow in OpenID Connect melds features from both the Implicit and Authorization Code flows. It allows clients to directly retrieve certain tokens from the Authorization Endpoint, yet also offers the option to acquire additional tokens from the Token Endpoint.
|
||||
|
||||
The Authorization Server redirects back to the client with appropriate parameters in the response, based on the value of the response_type request parameter:
|
||||
- code token
|
||||
- code id_token
|
||||
- code id_token token
|
||||
@@ -1,72 +0,0 @@
|
||||
---
|
||||
title: "LibreGraph"
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http/graph
|
||||
geekdocFilePath: _index.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
The LibreGraph API is a REST Api which is inspired by the [Microsoft Graph API](https://developer.microsoft.com/en-us/graph). It tries to stay compliant with the Microsoft Graph API and aims to be the Next Generation Api in Infinite Scale where we want to support most of the features of the platform.
|
||||
The [API specification](https://github.com/owncloud/libre-graph-api) is available in the OpenApi 3 standard and there are generated client and server [SDKs](https://github.com/owncloud/libre-graph-api#clients) available. You can browse the API with the [Swagger UI](https://owncloud.dev/libre-graph-api/).
|
||||
|
||||
## Calling the LibreGraph API
|
||||
|
||||
```sh
|
||||
{HTTP method} https://ocis.url/graph/{version}/{resource}?{query-parameters}
|
||||
```
|
||||
|
||||
The request component consists of:
|
||||
|
||||
| Component | Description |
|
||||
|--------------------|-------------------------------------------------------------------------|
|
||||
| {HTTP method} | The HTTP method which is used in the request. |
|
||||
| {version} | The version of the LibreGraph API used by the client. |
|
||||
| {resource} | The LibreGraph Resource which the client is referencing in the request. |
|
||||
| {query-parameters} | Optional parameters for the request to customize the response. |
|
||||
|
||||
### HTTP methods
|
||||
|
||||
| Method | Description |
|
||||
|--------|-------------------------------|
|
||||
| GET | Read data from a resource. |
|
||||
| POST | Create a new resource. |
|
||||
| PATCH | Update an existing resource. |
|
||||
| PUT | Replace an existing resource. |
|
||||
| DELETE | Delete an existing resource. |
|
||||
|
||||
The methods `GET` and `DELETE` need no request body. The methods `POST`, `PATCH` and `PUT` require a request body, normally in JSON format to provide the needed values.
|
||||
|
||||
### Version
|
||||
|
||||
Infinite Scale currently provides the version `v1.0`.
|
||||
|
||||
### Resource
|
||||
|
||||
A resource could be an entity or a complex type and is usually defined by properties. Entities are always recognizable by an `Id` property. The URL contains the resource which you are interacting with e.g. `/me/drives` or `/groups/{group-id}`.
|
||||
|
||||
Each resource could possibly require different permissions. Usually you need permissions on a higher level for creating or updating an existing resource than for reading.
|
||||
|
||||
### Query parameters
|
||||
|
||||
Query parameters can be OData system query options, or other strings that a method accepts to customize its response.
|
||||
|
||||
You can use optional OData system query options to include more or fewer properties than the default response, filter the response for items that match a custom query, or provide additional parameters for a method.
|
||||
|
||||
For example, adding the following filter parameter restricts the drives returned to only those with the driveType property of `project`.
|
||||
|
||||
```shell
|
||||
GET https://ocis.url/graph/v1.0/drives?$filter=driveType eq 'project'
|
||||
```
|
||||
For more information about OData query options please check the [API specification](https://github.com/owncloud/libre-graph-api) and the provided examples.
|
||||
|
||||
### Authorization
|
||||
|
||||
For development purposes the examples in the developer documentation use Basic Auth. It is disabled by default and should only be enabled by setting `PROXY_ENABLE_BASIC_AUTH` in [the proxy](../../../services/proxy/configuration/#environment-variables) for development or test instances.
|
||||
|
||||
To authenticate with a Bearer token or OpenID Connect access token replace the `-u user:password` Basic Auth option of curl with a `-H 'Authorization: Bearer <token>'` header. A `<token>` can be obtained by copying it from a request in the browser, although it will time out within minutes. To automatically refresh the OpenID Connect access token an ssh-agent like solution like [oidc-agent](https://github.com/indigo-dc/oidc-agent) should be used. The graph endpoints that support a preconfigured token can be found in the [API specification](https://github.com/owncloud/libre-graph-api)
|
||||
|
||||
## Resources
|
||||
|
||||
{{< toc-tree >}}
|
||||
@@ -1,275 +0,0 @@
|
||||
---
|
||||
title: Groups
|
||||
weight: 40
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http/graph
|
||||
geekdocFilePath: groups.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Groups API
|
||||
|
||||
The Groups API is implementing a subset of the functionality of the
|
||||
[MS Graph Group resource](https://docs.microsoft.com/en-us/graph/api/resources/group?view=graph-rest-1.0)
|
||||
The JSON representation of a Group as handled by the Groups API looks like this:
|
||||
|
||||
```
|
||||
{
|
||||
"displayName": "group",
|
||||
"id": "f0d97060-da16-4b0d-9fa4-d1ec43afc5f1"
|
||||
}
|
||||
```
|
||||
|
||||
Our implementation currently supports two Attributes for a Group:
|
||||
|
||||
| Attribute | Description |
|
||||
|---------------|-----------------------------------------------------------------------------------------------------------------------------|
|
||||
| displayName | The groups name |
|
||||
| id | An unique, stable readonly identifier for the group that stays the same for the whole lifetime of the Group, usually a UUID |
|
||||
|
||||
|
||||
### Reading groups
|
||||
|
||||
#### `GET /groups`
|
||||
|
||||
Returns a list of all groups
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
curl -k 'https://localhost:9200/graph/v1.0/groups' -u user:password
|
||||
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
```
|
||||
{
|
||||
"value": [
|
||||
{
|
||||
"displayName": "group",
|
||||
"id": "38580a2e-7018-42ed-aff6-b2af0b4e9790"
|
||||
},
|
||||
{
|
||||
"displayName": "Example Users",
|
||||
"id": "7a20f238-8a22-4458-902d-47674c317e5f"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
#### `GET /groups?$expand=members`
|
||||
|
||||
Returns a list of all groups including its members
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
curl -k 'https://localhost:9200/graph/v1.0/groups?$expand=members' -u user:password
|
||||
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
```
|
||||
{
|
||||
"value": [
|
||||
{
|
||||
"displayName": "group",
|
||||
"id": "38580a2e-7018-42ed-aff6-b2af0b4e9790",
|
||||
"members": [
|
||||
{
|
||||
"displayName": "user1",
|
||||
"id": "2e7b7e23-6c42-4d34-81b0-2bed34e51983",
|
||||
"mail": "user1@example.org",
|
||||
"onPremisesSamAccountName": "user1"
|
||||
},
|
||||
{
|
||||
"displayName": "user2",
|
||||
"id": "b45c9e35-0d95-4165-96bc-68bff4a316ed",
|
||||
"mail": "user2@example.org",
|
||||
"onPremisesSamAccountName": "user2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"displayName": "Example Users",
|
||||
"id": "7a20f238-8a22-4458-902d-47674c317e5f",
|
||||
"members": [
|
||||
{
|
||||
"displayName": "user3",
|
||||
"id": "026fbfef-79ef-4f5d-887b-9eaf42777239",
|
||||
"mail": "user3@example.org",
|
||||
"onPremisesSamAccountName": "user3"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### `GET /groups/{groupid}`
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
curl -k 'https://localhost:9200/graph/v1.0/groups/7a20f238-8a22-4458-902d-47674c317e5f' -u user:password
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
```
|
||||
{
|
||||
"displayName": "Example Users",
|
||||
"id": "7a20f238-8a22-4458-902d-47674c317e5f"
|
||||
}
|
||||
```
|
||||
|
||||
#### `GET /groups/{groupid}?$expand=members`
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
curl -k 'https://localhost:9200/graph/v1.0/groups/7a20f238-8a22-4458-902d-47674c317e5f?$expand=members' -u user:password
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
```
|
||||
{
|
||||
"displayName": "Example Users",
|
||||
"id": "7a20f238-8a22-4458-902d-47674c317e5f",
|
||||
"members": [
|
||||
{
|
||||
"displayName": "user3",
|
||||
"id": "026fbfef-79ef-4f5d-887b-9eaf42777239",
|
||||
"mail": "user3@example.org",
|
||||
"onPremisesSamAccountName": "user3"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
### Getting Group Members
|
||||
|
||||
#### `GET /groups/{groupid}/members`
|
||||
|
||||
Returns a list of User objects that are members of a group.
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
curl -k 'https://localhost:9200/graph/v1.0/groups/7a20f238-8a22-4458-902d-47674c317e5f/members' -u user:password
|
||||
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
```
|
||||
[
|
||||
{
|
||||
"displayName": "Test User",
|
||||
"id": "c54b0588-7157-4521-bb52-c1c8ca84ea71",
|
||||
"mail": "example@example.org",
|
||||
"onPremisesSamAccountName": "example"
|
||||
},
|
||||
{
|
||||
"displayName": "Albert Einstein",
|
||||
"id": "4c510ada-c86b-4815-8820-42cdf82c3d51",
|
||||
"mail": "einstein@example.org",
|
||||
"onPremisesSamAccountName": "einstein"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
### Creating / Updating Groups
|
||||
|
||||
#### `POST /groups`
|
||||
|
||||
Use this to create a new group.
|
||||
h
|
||||
##### Request Body
|
||||
|
||||
Note the missing `"id"` Attribute. It will be generated by the server:
|
||||
|
||||
```
|
||||
{
|
||||
"displayName": "Example Users"
|
||||
}
|
||||
```
|
||||
|
||||
##### Response
|
||||
|
||||
When successful, the response will return the new group including the newly allocated `"id"`:
|
||||
|
||||
```
|
||||
{
|
||||
"displayName": "Example Users",
|
||||
"id": "7a20f238-8a22-4458-902d-47674c317e5f"
|
||||
}
|
||||
```
|
||||
|
||||
#### `DELETE /groups/{id}`
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
curl -k --request DELETE 'https://localhost:9200/graph/v1.0/groups/7a20f238-8a22-4458-902d-47674c317e5f' -u user:password
|
||||
```
|
||||
|
||||
When successful the API returns no response body and the HTTP status code 204 (No Content)
|
||||
|
||||
#### `PATCH /groups/{id}`
|
||||
|
||||
Updating attributes of a single group is supposed to be done with a patch request. This is however currently not fully
|
||||
implemented for our write-enabled backends. The PATCH request can however be used to add multiple members to a group at once.
|
||||
See below.
|
||||
|
||||
### Adding a single member to a group
|
||||
|
||||
#### `POST /groups/{id}/members/$ref`
|
||||
|
||||
The request body contains a single attribute "`@odata.id`" referencing the new member of the group by URI. Example:
|
||||
|
||||
```
|
||||
curl -k --header "Content-Type: application/json" \
|
||||
--request POST --data \
|
||||
'{ "@odata.id": "https://localhost:9200/graph/v1.0/users/4c510ada-c86b-4815-8820-42cdf82c3d51" }' \
|
||||
'https://localhost:9200/graph/v1.0/groups/7a20f238-8a22-4458-902d-47674c317e5f/members/$ref' -u user:password
|
||||
|
||||
```
|
||||
|
||||
When successful the API returns no response body and the HTTP status code 204 (No Content)
|
||||
|
||||
### Adding multiple members in a single request
|
||||
|
||||
#### `PATCH /groups/{id}`
|
||||
|
||||
The request body contains the attribute `members@odata.bind` holding a list of URI references for the new members.
|
||||
Example:
|
||||
|
||||
```
|
||||
{
|
||||
"members@odata.bind": [
|
||||
"https://localhost:9200/graph/v1.0/users/4c510ada-c86b-4815-8820-42cdf82c3d51",
|
||||
"https://localhost:9200/graph/v1.0/users/c54b0588-7157-4521-bb52-c1c8ca84ea71"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
When successful the API returns no response body and the HTTP status code 204 (No Content)
|
||||
|
||||
### Removing a member
|
||||
|
||||
#### `DELETE /groups/{groupid}/members/{id}/$ref`
|
||||
|
||||
Example
|
||||
|
||||
```
|
||||
curl -k --request DELETE \
|
||||
'https://localhost:9200/graph/v1.0/groups/7a20f238-8a22-4458-902d-47674c317e5f/members/4c510ada-c86b-4815-8820-42cdf82c3d51/$ref' \
|
||||
-u user:password
|
||||
```
|
||||
|
||||
When successful the API returns no response body and the HTTP status code 204 (No Content)
|
||||
@@ -1,184 +0,0 @@
|
||||
---
|
||||
title: Permissions
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http/graph
|
||||
geekdocFilePath: permissions.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Permissions API
|
||||
|
||||
The Permissions API is implementing a subset of the functionality of the
|
||||
[MS Graph Permission resource](https://learn.microsoft.com/en-us/graph/api/resources/permission?view=graph-rest-1.0).
|
||||
|
||||
### Example Permissions
|
||||
|
||||
The JSON representation of a Drive, as handled by the Spaces API, looks like this:
|
||||
````json
|
||||
{
|
||||
"@libre.graph.permissions.roles.allowedValues": [
|
||||
{
|
||||
"id": "b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5",
|
||||
"description": "Allows reading the shared file or folder",
|
||||
"displayName": "Viewer",
|
||||
"@libre.graph.weight": 1
|
||||
},
|
||||
{
|
||||
"id": "fb6c3e19-e378-47e5-b277-9732f9de6e21",
|
||||
"description": "Allows reading and writing the shared file or folder",
|
||||
"displayName": "Editor",
|
||||
"@libre.graph.weight": 2
|
||||
},
|
||||
{
|
||||
"id": "312c0871-5ef7-4b3a-85b6-0e4074c64049",
|
||||
"description": "Allows managing a space",
|
||||
"displayName": "Manager",
|
||||
"@libre.graph.weight": 3
|
||||
},
|
||||
{
|
||||
"id": "4916f47e-66d5-49bb-9ac9-748ad00334b",
|
||||
"description": "Allows creating new files",
|
||||
"displayName": "File Drop",
|
||||
"@libre.graph.weight": 4
|
||||
}
|
||||
],
|
||||
"@libre.graph.permissions.actions.allowedValues": [
|
||||
"libre.graph/driveItem/basic/read",
|
||||
"libre.graph/driveItem/permissions/read",
|
||||
"libre.graph/driveItem/upload/create",
|
||||
"libre.graph/driveItem/standard/allTasks",
|
||||
"libre.graph/driveItem/upload/create"
|
||||
],
|
||||
"value": [
|
||||
{
|
||||
"id": "67445fde-a647-4dd4-b015-fc5dafd2821d",
|
||||
"link": {
|
||||
"type": "view",
|
||||
"webUrl": "https://cloud.example.org/s/fhGBMIkKFEHWysj"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "34646ab6-be32-43c9-89e6-987e0c237e9b",
|
||||
"roles": [
|
||||
"b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5"
|
||||
],
|
||||
"grantedToV2": [
|
||||
{
|
||||
"user": {
|
||||
"id": "4c510ada-c86b-4815-8820-42cdf82c3d51",
|
||||
"displayName": "Albert Einstein"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "81d5bad3-3eff-410a-a2ea-eda2d14d4474",
|
||||
"roles": [
|
||||
"b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5"
|
||||
],
|
||||
"grantedToV2": [
|
||||
{
|
||||
"user": {
|
||||
"id": "4c510ada-c86b-4815-8820-42cdf82c3d51",
|
||||
"displayName": "Albert Einstein"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "b470677e-a7f5-4304-8ef5-f5056a21fff1",
|
||||
"roles": [
|
||||
"b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5"
|
||||
],
|
||||
"grantedToV2": [
|
||||
{
|
||||
"user": {
|
||||
"id": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c",
|
||||
"displayName": "Marie Skłodowska Curie"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "453b02be-4ec2-4e7d-b576-09fc153de812",
|
||||
"roles": [
|
||||
"fb6c3e19-e378-47e5-b277-9732f9de6e21"
|
||||
],
|
||||
"grantedToV2": [
|
||||
{
|
||||
"user": {
|
||||
"id": "4c510ada-c86b-4815-8820-42cdf82c3d51",
|
||||
"displayName": "Albert Einstein"
|
||||
}
|
||||
}
|
||||
],
|
||||
"expirationDateTime": "2018-07-15T14:00:00.000Z"
|
||||
},
|
||||
{
|
||||
"id": "86765c0d-3905-444a-9b07-76201f8cf7df",
|
||||
"roles": [
|
||||
"312c0871-5ef7-4b3a-85b6-0e4074c64049"
|
||||
],
|
||||
"grantedToV2": [
|
||||
{
|
||||
"group": {
|
||||
"id": "167cbee2-0518-455a-bfb2-031fe0621e5d",
|
||||
"displayName": "Philosophy Haters"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "c42b5cbd-2d65-42cf-b0b6-fb6d2b762256",
|
||||
"grantedToV2": [
|
||||
{
|
||||
"user": {
|
||||
"id": "4c510ada-c86b-4815-8820-42cdf82c3d51",
|
||||
"displayName": "Albert Einstein"
|
||||
}
|
||||
}
|
||||
],
|
||||
"@libre.graph.permissions.actions": [
|
||||
"libre.graph/driveItem/basic/read",
|
||||
"libre.graph/driveItem/path/update"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
````
|
||||
|
||||
## Creating Share Invitation / Link
|
||||
|
||||
### Create a link share `POST /drives/{drive-id}/items/{item-id}/createLink`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.permissions/CreateLink
|
||||
|
||||
### Create a user/group share `POST /drives/{drive-id}/items/{item-id}/invite`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.permissions/Invite
|
||||
|
||||
## Reading Permissions
|
||||
|
||||
### List the effective sharing permissions on a driveitem `GET /drives/{drive-id}/items/{item-id}/permissions`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.permissions/ListPermissions
|
||||
|
||||
### List Get sharing permission for a file or folder `GET /drives/{drive-id}/items/{item-id}/permissions/{perm-id}`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.permissions/GetPermission
|
||||
|
||||
## Updating Permissions
|
||||
|
||||
### Updating sharing permission `POST /drives/{drive-id}/items/{item-id}/permissions/{perm-id}`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.permissions/UpdatePermission
|
||||
|
||||
### Set password of permission `POST /drives/{drive-id}/items/{item-id}/permissions/{perm-id}/setPassword`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.permissions/SetPermissionPassword
|
||||
|
||||
### Deleting permission `DELETE /drives/{drive-id}/items/{item-id}/permissions/{perm-id}`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.permissions/DeletePermission
|
||||
@@ -1,38 +0,0 @@
|
||||
---
|
||||
title: Role
|
||||
weight: 60
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http/graph
|
||||
geekdocFilePath: permissions.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Role API
|
||||
|
||||
The Roles API is implementing a subset of the functionality of the
|
||||
[MS Graph Role Management](https://learn.microsoft.com/en-us/graph/api/resources/rolemanagement?view=graph-rest-1.0).
|
||||
|
||||
## Role Management
|
||||
|
||||
### List roleDefinitions `GET /v1beta1/roleManagement/permissions/roleDefinitions`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/roleManagement/ListPermissionRoleDefinitions
|
||||
|
||||
### Get unifiedRoleDefinition `GET /drives/{drive-id}/items/{item-id}/permissions/{perm-id}`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/roleManagement/GetPermissionRoleDefinition
|
||||
|
||||
## Role Assignment
|
||||
|
||||
### Get appRoleAssignments of a user `GET /v1.0/users/{user-id}/appRoleAssignments`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/user.appRoleAssignment/user.ListAppRoleAssignments
|
||||
|
||||
### Grant an appRoleAssignment to a user `POST /v1.0/users/{user-id}/appRoleAssignments`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/user.appRoleAssignment/user.CreateAppRoleAssignments
|
||||
|
||||
### Delete the appRoleAssignment from a user `DELETE /v1.0/users/{user-id}/appRoleAssignments/{appRoleAssignment-id}`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/user.appRoleAssignment/user.DeleteAppRoleAssignments
|
||||
@@ -1,494 +0,0 @@
|
||||
---
|
||||
title: Spaces
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http/graph
|
||||
geekdocFilePath: spaces.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Spaces API
|
||||
|
||||
The Spaces API is implementing a subset of the functionality of the
|
||||
[MS Graph Drives resource](https://learn.microsoft.com/en-us/graph/api/resources/drive?view=graph-rest-1.0).
|
||||
|
||||
### Example Space
|
||||
|
||||
The JSON representation of a Drive, as handled by the Spaces API, looks like this:
|
||||
````json
|
||||
{
|
||||
"driveAlias": "project/mars",
|
||||
"driveType": "project",
|
||||
"id": "storage-users-1$89ad5ad2-5fdb-4877-b8c9-601a9670b925",
|
||||
"lastModifiedDateTime": "2023-01-24T21:19:26.417055+01:00",
|
||||
"name": "Mars",
|
||||
"owner": {
|
||||
"user": {
|
||||
"displayName": "",
|
||||
"id": "89ad5ad2-5fdb-4877-b8c9-601a9670b925"
|
||||
}
|
||||
},
|
||||
"quota": {
|
||||
"remaining": 999853685,
|
||||
"state": "normal",
|
||||
"total": 1000000000,
|
||||
"used": 146315
|
||||
},
|
||||
"root": {
|
||||
"eTag": "\"910af0061161c42d8d1224df6c4a2527\"",
|
||||
"id": "storage-users-1$89ad5ad2-5fdb-4877-b8c9-601a9670b925",
|
||||
"permissions": [
|
||||
{
|
||||
"grantedToIdentities": [
|
||||
{
|
||||
"user": {
|
||||
"displayName": "Admin",
|
||||
"id": "some-admin-user-id-0000-000000000000"
|
||||
}
|
||||
}
|
||||
],
|
||||
"roles": [
|
||||
"manager"
|
||||
]
|
||||
}
|
||||
],
|
||||
"webDavUrl": "https://localhost:9200/dav/spaces/storage-users-1$89ad5ad2-5fdb-4877-b8c9-601a9670b925"
|
||||
},
|
||||
"special": [
|
||||
{
|
||||
"eTag": "\"f97829324f63ce778095334cfeb0097b\"",
|
||||
"file": {
|
||||
"mimeType": "image/jpeg"
|
||||
},
|
||||
"id": "storage-users-1$89ad5ad2-5fdb-4877-b8c9-601a9670b925!40171bea-3263-47a8-80ef-0ca20c37f45a",
|
||||
"lastModifiedDateTime": "2022-02-15T17:11:50.000000496+01:00",
|
||||
"name": "Mars_iStock-MR1805_20161221.jpeg",
|
||||
"size": 146250,
|
||||
"specialFolder": {
|
||||
"name": "image"
|
||||
},
|
||||
"webDavUrl": "https://localhost:9200/dav/spaces/storage-users-1$89ad5ad2-5fdb-4877-b8c9-601a9670b925%2189ad5ad2-5fdb-4877-b8c9-601a9670b925/.space/Mars_iStock-MR1805_20161221.jpeg"
|
||||
},
|
||||
{
|
||||
"eTag": "\"ff38b31d8f109a4fbb98ab34499a3379\"",
|
||||
"file": {
|
||||
"mimeType": "text/markdown"
|
||||
},
|
||||
"id": "storage-users-1$89ad5ad2-5fdb-4877-b8c9-601a9670b925!e2167612-7578-46e2-8ed7-971481037bc1",
|
||||
"lastModifiedDateTime": "2023-01-24T21:10:23.661841+01:00",
|
||||
"name": "readme.md",
|
||||
"size": 65,
|
||||
"specialFolder": {
|
||||
"name": "readme"
|
||||
},
|
||||
"webDavUrl": "https://localhost:9200/dav/spaces/storage-users-1$89ad5ad2-5fdb-4877-b8c9-601a9670b925%2189ad5ad2-5fdb-4877-b8c9-601a9670b925/.space/readme.md"
|
||||
}
|
||||
],
|
||||
"webUrl": "https://localhost:9200/f/storage-users-1$89ad5ad2-5fdb-4877-b8c9-601a9670b925"
|
||||
}
|
||||
````
|
||||
|
||||
## Creating Spaces
|
||||
|
||||
### Create a single space `POST /drives`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives/CreateDrive
|
||||
|
||||
### Create a space item (Enable sync) `POST /drives/{drive-id}/root/children`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.root/CreateDriveItem
|
||||
|
||||
## Reading Spaces
|
||||
|
||||
```shell
|
||||
GET https://ocis.url/graph/{version}/{me/}drives/?{query-parameters}
|
||||
```
|
||||
|
||||
| Component | Description |
|
||||
|--------------------|------------------------------------------------------------------------------------------------------------------------|
|
||||
| {version} | The version of the LibreGraph API used by the client. |
|
||||
| {/me} | The `me` component of the part is optional. If used, you only see spaces where the acting user is a regular member of. |
|
||||
| {query-parameters} | Optional parameters for the request to customize the response. |
|
||||
|
||||
### List all spaces `GET /drives`
|
||||
|
||||
Returns a list of all available spaces, even ones where the acting user is not a regular member of. You need elevated permissions to do list all spaces. If you don't have the elevated permissions, the result is the same like `GET /me/drives`.
|
||||
|
||||
|
||||
{{< hint type=info title="Multiple Administration Personas" >}}
|
||||
|
||||
The ownCloud spaces concept draws a strict line between users which can work with the content of a space and others who have the permission to manage the space. A user which is able to manage quota and space metadata does not necessarily need to be able to access the content of a space.
|
||||
|
||||
**Space Admin**\
|
||||
There is a global user role "Space Admin" which grants users some global permissions to manage space quota and some space metadata. This Role enables the user also to disable, restore and delete spaces. He cannot manage space members.
|
||||
|
||||
**Space Manager**\
|
||||
The "Space Manager" is a user which is a regular member of a space because he has been invited. In addition to being part of a space the user can also manage the memberships of the space.
|
||||
|
||||
{{< /hint >}}
|
||||
|
||||
### List My Spaces `GET /me/drives`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/me.drives/ListMyDrives
|
||||
|
||||
## Modifying Spaces
|
||||
|
||||
Modify the properties of a space. You need elevated permissions to execute this request.
|
||||
|
||||
### Set the space quota to 5GB `PATCH /drives/{drive-id}`
|
||||
|
||||
To limit the quota of a space you need to set the `quota.total` value. The API response will give back all actual quota properties.
|
||||
|
||||
````json
|
||||
{
|
||||
"quota": {
|
||||
"remaining": 5368709120,
|
||||
"state": "normal",
|
||||
"total": 5368709120,
|
||||
"used": 0
|
||||
}
|
||||
}
|
||||
````
|
||||
|
||||
| Attribute | Description |
|
||||
|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| remaining | The remaining disk space in `bytes`. If the quota is not limited, this will show the total available disk space. |
|
||||
| state | The state of the space in regards to quota usage. This can be used for visual indicators. It can be `normal`(<75%), `nearing`(between 75% and 89%), `critical`(between 90% and 99%) and `exceeded`(100%). |
|
||||
| total | The space id. The value needs to be a space ID. |
|
||||
| used | The used disk space in bytes. |
|
||||
|
||||
{{< tabs "set-space-quota" >}}
|
||||
{{< tab "Request" >}}
|
||||
```shell
|
||||
curl -L -k -X PATCH 'https://localhost:9200/graph/v1.0/drives/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"quota": {
|
||||
"total": 5368709120
|
||||
}
|
||||
}'
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab "Response - 200 OK" >}}
|
||||
````json {hl_lines=[17]}
|
||||
{
|
||||
"description": "Marketing team resources",
|
||||
"driveAlias": "project/marketing",
|
||||
"driveType": "project",
|
||||
"id": "storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff",
|
||||
"lastModifiedDateTime": "2023-01-18T17:13:48.385204589+01:00",
|
||||
"name": "Marketing",
|
||||
"owner": {
|
||||
"user": {
|
||||
"displayName": "",
|
||||
"id": "535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
}
|
||||
},
|
||||
"quota": {
|
||||
"remaining": 5368709120,
|
||||
"state": "normal",
|
||||
"total": 5368709120,
|
||||
"used": 0
|
||||
},
|
||||
"root": {
|
||||
"eTag": "\"f91e56554fd9305db81a93778c0fae96\"",
|
||||
"id": "storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff",
|
||||
"permissions": [
|
||||
{
|
||||
"grantedToIdentities": [
|
||||
{
|
||||
"user": {
|
||||
"displayName": "Admin",
|
||||
"id": "some-admin-user-id-0000-000000000000"
|
||||
}
|
||||
}
|
||||
],
|
||||
"roles": [
|
||||
"manager"
|
||||
]
|
||||
}
|
||||
],
|
||||
"webDavUrl": "https://localhost:9200/dav/spaces/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
},
|
||||
"webUrl": "https://localhost:9200/f/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
}
|
||||
````
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
### Change the space name, subtitle and alias `PATCH /drives/{drive-id}`
|
||||
|
||||
You can change multiple space properties in one request as long as you submit a valid JSON body. Please be aware that some properties need different permissions.
|
||||
|
||||
{{< tabs "change-space-props" >}}
|
||||
{{< tab "Request" >}}
|
||||
```shell
|
||||
curl -L -k -X PATCH 'https://localhost:9200/graph/v1.0/drives/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"name": "Mars",
|
||||
"description": "Mission to mars",
|
||||
"driveAlias": "project/mission-to-mars"
|
||||
}'
|
||||
```
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "Response - 200 OK" >}}
|
||||
````json {hl_lines=[2,3,7]}
|
||||
{
|
||||
"description": "Mission to mars",
|
||||
"driveAlias": "project/mission-to-mars",
|
||||
"driveType": "project",
|
||||
"id": "storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff",
|
||||
"lastModifiedDateTime": "2023-01-19T14:17:36.094283+01:00",
|
||||
"name": "Mars",
|
||||
"owner": {
|
||||
"user": {
|
||||
"displayName": "",
|
||||
"id": "535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
}
|
||||
},
|
||||
"quota": {
|
||||
"remaining": 15,
|
||||
"state": "normal",
|
||||
"total": 15,
|
||||
"used": 0
|
||||
},
|
||||
"root": {
|
||||
"eTag": "\"f5fee4fdfeedd6f98956500779eee15e\"",
|
||||
"id": "storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff",
|
||||
"permissions": [
|
||||
{
|
||||
"grantedToIdentities": [
|
||||
{
|
||||
"user": {
|
||||
"displayName": "Admin",
|
||||
"id": "some-admin-user-id-0000-000000000000"
|
||||
}
|
||||
}
|
||||
],
|
||||
"roles": [
|
||||
"manager"
|
||||
]
|
||||
}
|
||||
],
|
||||
"webDavUrl": "https://localhost:9200/dav/spaces/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
},
|
||||
"webUrl": "https://localhost:9200/f/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
}
|
||||
````
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
## Disabling / Deleting Spaces
|
||||
|
||||
### Disable a space `DELETE /drives/{drive-id}`
|
||||
|
||||
This operation will make the space content unavailable for all space members. No data will be deleted.
|
||||
|
||||
{{< tabs "disable-space" >}}
|
||||
{{< tab "Request" >}}
|
||||
```shell
|
||||
curl -L -k -X DELETE 'https://localhost:9200/graph/v1.0/drives/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff/'
|
||||
```
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "Response - 204 No Content" >}}
|
||||
|
||||
This response has no body value.
|
||||
|
||||
A disabled space will appear in listings with a `root.deleted.state=trashed` property. The space description and the space image will not be readable anymore.
|
||||
|
||||
```json {hl_lines=[18,19,20]}
|
||||
{
|
||||
"description": "Marketing team resources",
|
||||
"driveAlias": "project/marketing",
|
||||
"driveType": "project",
|
||||
"id": "storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff",
|
||||
"lastModifiedDateTime": "2023-01-19T14:17:36.094283+01:00",
|
||||
"name": "Marketing",
|
||||
"owner": {
|
||||
"user": {
|
||||
"displayName": "",
|
||||
"id": "535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
}
|
||||
},
|
||||
"quota": {
|
||||
"total": 15
|
||||
},
|
||||
"root": {
|
||||
"deleted": {
|
||||
"state": "trashed"
|
||||
},
|
||||
"eTag": "\"f5fee4fdfeedd6f98956500779eee15e\"",
|
||||
"id": "storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff",
|
||||
"permissions": [
|
||||
{
|
||||
"grantedToIdentities": [
|
||||
{
|
||||
"user": {
|
||||
"displayName": "Admin",
|
||||
"id": "some-admin-user-id-0000-000000000000"
|
||||
}
|
||||
}
|
||||
],
|
||||
"roles": [
|
||||
"manager"
|
||||
]
|
||||
}
|
||||
],
|
||||
"webDavUrl": "https://localhost:9200/dav/spaces/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
},
|
||||
"webUrl": "https://localhost:9200/f/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
}
|
||||
```
|
||||
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
### Restore a space `PATCH /drives/{drive-id}`
|
||||
|
||||
This operation will make the space content available again to all members. No content will be changed.
|
||||
|
||||
To restore a space, the Header `Restore: T` needs to be set.
|
||||
{{< tabs "restore-space" >}}
|
||||
{{< tab "Request" >}}
|
||||
|
||||
```shell
|
||||
curl -L -X PATCH 'https://localhost:9200/graph/v1.0/drives/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff/' \
|
||||
-H 'Restore: T' \
|
||||
-H 'Content-Type: text/plain' \
|
||||
--data-raw '{}'
|
||||
```
|
||||
|
||||
{{< hint type=info title="Body value" >}}
|
||||
|
||||
This request needs an empty body (--data-raw '{}') to fulfil the standard libregraph specification even when the body is not needed.
|
||||
|
||||
{{< /hint >}}
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "Response - 200 OK" >}}
|
||||
|
||||
```json
|
||||
{
|
||||
"description": "Marketing team resources",
|
||||
"driveAlias": "project/marketing",
|
||||
"driveType": "project",
|
||||
"id": "storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff",
|
||||
"lastModifiedDateTime": "2023-01-19T14:17:36.094283+01:00",
|
||||
"name": "Marketing",
|
||||
"owner": {
|
||||
"user": {
|
||||
"displayName": "",
|
||||
"id": "535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
}
|
||||
},
|
||||
"quota": {
|
||||
"remaining": 15,
|
||||
"state": "normal",
|
||||
"total": 15,
|
||||
"used": 0
|
||||
},
|
||||
"root": {
|
||||
"eTag": "\"f5fee4fdfeedd6f98956500779eee15e\"",
|
||||
"id": "storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff",
|
||||
"permissions": [
|
||||
{
|
||||
"grantedToIdentities": [
|
||||
{
|
||||
"user": {
|
||||
"displayName": "Admin",
|
||||
"id": "some-admin-user-id-0000-000000000000"
|
||||
}
|
||||
}
|
||||
],
|
||||
"roles": [
|
||||
"manager"
|
||||
]
|
||||
}
|
||||
],
|
||||
"webDavUrl": "https://localhost:9200/dav/spaces/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
},
|
||||
"webUrl": "https://localhost:9200/f/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
}
|
||||
```
|
||||
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
### Permanently delete a space `DELETE /drives/{drive-id}`
|
||||
|
||||
This operation will delete a space and all its data permanently. This is restricted to spaces which are already disabled.
|
||||
|
||||
To delete a space, the Header `Purge: T` needs to be set.
|
||||
|
||||
{{< tabs "delete-space" >}}
|
||||
{{< tab "Request" >}}
|
||||
|
||||
```shell {hl_lines=[2]}
|
||||
curl -L -X DELETE 'https://localhost:9200/graph/v1.0/drives/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff' \
|
||||
-H 'Purge: T'
|
||||
```
|
||||
|
||||
{{< hint type=warning title="Data will be deleted" >}}
|
||||
|
||||
This request will delete a space and all its content permanently. This operation cannot be reverted.
|
||||
|
||||
{{< /hint >}}
|
||||
|
||||
{{< /tab >}}
|
||||
{{< tab "Response - 204 No Content" >}}
|
||||
|
||||
This response has no body value.
|
||||
|
||||
{{< /tab >}}
|
||||
{{< tab "Response - 400 Bad Request" >}}
|
||||
|
||||
The space to be deleted was not disabled before.
|
||||
|
||||
```json
|
||||
{
|
||||
"error": {
|
||||
"code": "invalidRequest",
|
||||
"innererror": {
|
||||
"date": "2023-01-24T19:57:19Z",
|
||||
"request-id": "f62af40f-bc18-475e-acd7-e9008d6bd326"
|
||||
},
|
||||
"message": "error: bad request: can't purge enabled space"
|
||||
}
|
||||
}
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
## Sharing Space
|
||||
|
||||
### Add member to space `POST /drives/{drive-id}/root/invite`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.permissions/Invite
|
||||
|
||||
### Sharing space as a link `POST /drives/{drive-id}/root/createLink`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.root/CreateLinkSpaceRoot
|
||||
|
||||
## Reading Space Permissions
|
||||
|
||||
### Listing permissions of a space `GET /drives/{drive-id}/root/permissions`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.root/ListPermissionsSpaceRoot
|
||||
|
||||
## Modifying / Deleting Space Permissions
|
||||
|
||||
### Update permissions of a drive `PATCH /drives/{drive-id}/root/permissions/{perm-id}`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.root/UpdatePermissionSpaceRoot
|
||||
|
||||
### Set password of a link share `POST /drives/{drive-id}/root/permissions/{perm-id}/setPassword`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.root/SetPermissionPasswordSpaceRoot
|
||||
|
||||
### Removing acess to a space `DELETE /drives/{drive-id}/root/permissions/{perm-id}`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.root/DeletePermissionSpaceRoot
|
||||
@@ -1,270 +0,0 @@
|
||||
---
|
||||
title: Users
|
||||
weight: 30
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http/graph
|
||||
geekdocFilePath: users.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Users API
|
||||
|
||||
The Users API is implementing a subset of the functionality of the
|
||||
[MS Graph User resource](https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0)
|
||||
The JSON representation of a User handled by the Users API looks like this:
|
||||
|
||||
```
|
||||
{
|
||||
"displayName": "Albert Einstein",
|
||||
"id": "4c510ada-c86b-4815-8820-42cdf82c3d51",
|
||||
"mail": "einstein@example.org",
|
||||
"onPremisesSamAccountName": "einstein"
|
||||
}
|
||||
```
|
||||
|
||||
Our implementation currently supports only a limited set of Attributes of Users:
|
||||
|
||||
| Attribute | Description |
|
||||
|---------------|---------------------------------------------------------------------------------------------------------------------------|
|
||||
| displayName | The full name of the user, usually a combination of given name and last name |
|
||||
| mail | The user's email address |
|
||||
| onPremisesSamAccountName | The loginname/account name of the user |
|
||||
| id | An unique, stable readonly identifier for the user that stays the same for the whole lifetime of the User, usually a UUID |
|
||||
| passwordProfile | Contains the password of the users. This is only present when updating or creating users. It is never returned by the API |
|
||||
|
||||
|
||||
### Reading users
|
||||
|
||||
#### `GET /me`
|
||||
|
||||
Returns the user object of the currently signed-in user
|
||||
|
||||
Example:
|
||||
```
|
||||
curl -k 'https://localhost:9200/graph/v1.0/me' -u user:password
|
||||
```
|
||||
|
||||
Response:
|
||||
```
|
||||
{
|
||||
"displayName": "Albert Einstein",
|
||||
"id": "4c510ada-c86b-4815-8820-42cdf82c3d51",
|
||||
"mail": "einstein@example.org",
|
||||
"onPremisesSamAccountName": "einstein"
|
||||
}
|
||||
```
|
||||
|
||||
#### `GET /users`
|
||||
|
||||
Returns a list of all users
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
curl -k 'https://localhost:9200/graph/v1.0/users' -u user:password
|
||||
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
```
|
||||
{
|
||||
"value": [
|
||||
{
|
||||
"displayName": "Albert Einstein",
|
||||
"id": "4c510ada-c86b-4815-8820-42cdf82c3d51",
|
||||
"mail": "einstein@example.org",
|
||||
"onPremisesSamAccountName": "einstein"
|
||||
},
|
||||
{
|
||||
"displayName": "Maurice Moss",
|
||||
"id": "058bff95-6708-4fe5-91e4-9ea3d377588b",
|
||||
"mail": "moss@example.org",
|
||||
"onPremisesSamAccountName": "moss"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### `GET /users?$expand=memberOf`
|
||||
|
||||
Returns a list of all users
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
curl -k 'https://localhost:9200/graph/v1.0/users?$expand=memberOf' -u user:password
|
||||
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
```
|
||||
{
|
||||
"value": [
|
||||
{
|
||||
"displayName": "Albert Einstein",
|
||||
"id": "4c510ada-c86b-4815-8820-42cdf82c3d51",
|
||||
"mail": "einstein@example.org",
|
||||
"onPremisesSamAccountName": "einstein",
|
||||
"memberOf": [
|
||||
{
|
||||
"displayName": "users",
|
||||
"id": "509a9dcd-bb37-4f4f-a01a-19dca27d9cfa"
|
||||
},
|
||||
{
|
||||
"displayName": "sailing-lovers",
|
||||
"id": "6040aa17-9c64-4fef-9bd0-77234d71bad0"
|
||||
},
|
||||
{
|
||||
"displayName": "violin-haters",
|
||||
"id": "dd58e5ec-842e-498b-8800-61f2ec6f911f"
|
||||
},
|
||||
{
|
||||
"displayName": "physics-lovers",
|
||||
"id": "262982c1-2362-4afa-bfdf-8cbfef64a06e"
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"displayName": "Maurice Moss",
|
||||
"id": "058bff95-6708-4fe5-91e4-9ea3d377588b",
|
||||
"mail": "moss@example.org",
|
||||
"onPremisesSamAccountName": "moss",
|
||||
"memberOf": [
|
||||
{
|
||||
"displayName": "users",
|
||||
"id": "509a9dcd-bb37-4f4f-a01a-19dca27d9cfa"
|
||||
}
|
||||
],
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### `GET /users/{userid or accountname}`
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
curl -k 'https://localhost:9200/graph/v1.0/users/058bff95-6708-4fe5-91e4-9ea3d377588b' -u user:password
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
```
|
||||
{
|
||||
"displayName": "Maurice Moss",
|
||||
"id": "058bff95-6708-4fe5-91e4-9ea3d377588b",
|
||||
"mail": "moss@example.org",
|
||||
"onPremisesSamAccountName": "moss"
|
||||
}
|
||||
```
|
||||
|
||||
#### `GET /users/{userid or accountname}?$expand=memberOf`
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
curl -k 'https://localhost:9200/graph/v1.0/users/058bff95-6708-4fe5-91e4-9ea3d377588b?$expand=memberOf' -u user:password
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
```
|
||||
{
|
||||
"displayName": "Maurice Moss",
|
||||
"id": "058bff95-6708-4fe5-91e4-9ea3d377588b",
|
||||
"mail": "moss@example.org",
|
||||
"onPremisesSamAccountName": "moss",
|
||||
"memberOf": [
|
||||
{
|
||||
"displayName": "users",
|
||||
"id": "509a9dcd-bb37-4f4f-a01a-19dca27d9cfa"
|
||||
}
|
||||
],
|
||||
}
|
||||
```
|
||||
|
||||
### Creating / Updating Users
|
||||
|
||||
#### `POST /users`
|
||||
|
||||
Use this to create a new user.
|
||||
|
||||
##### Request Body
|
||||
|
||||
Note the missing `"id"` Attribute. It will be generated by the server:
|
||||
|
||||
```
|
||||
{
|
||||
"displayName": "Example User",
|
||||
"mail": "example@example.org",
|
||||
"onPremisesSamAccountName": "example",
|
||||
"passwordProfile": {
|
||||
"password": "ThePassword"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
##### Response
|
||||
|
||||
When successful, the response will return the new user, without the password, but including the newly allocated `"id"`:
|
||||
|
||||
```
|
||||
{
|
||||
"displayName":"Example User",
|
||||
"id":"c067b139-c91c-4e47-8be6-669156a0587b",
|
||||
"mail":"example@example.org",
|
||||
"onPremisesSamAccountName":"example"
|
||||
}
|
||||
```
|
||||
|
||||
#### `DELETE /users/{id}`
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
curl -k --request DELETE 'https://localhost:9200/graph/v1.0/users/c067b139-c91c-4e47-8be6-669156a0587b' -u user:password
|
||||
```
|
||||
|
||||
When successful the API returns no response body and the HTTP status code 204 (No Content)
|
||||
|
||||
|
||||
#### `PATCH /users/{id}`
|
||||
|
||||
Updating attributes of a single user can be done with a patch request. The Request Body contains the new values of the attributes
|
||||
to be updated. E.g. to update the `displayName` Attribute:
|
||||
|
||||
```
|
||||
curl -k --header "Content-Type: application/json" \
|
||||
--request PATCH --data '{"displayName": "Test User" }' \
|
||||
'https://localhost:9200/graph/v1.0/users/c54b0588-7157-4521-bb52-c1c8ca84ea71' -u user:password
|
||||
```
|
||||
|
||||
Similar to creating a user via `POST`, the `PATCH` request will return the user object containing the new attribute values.
|
||||
|
||||
### Change password
|
||||
|
||||
#### `POST /me/changePassword`
|
||||
|
||||
Users can change their own password by sending a POST request to `/me/changePassword`
|
||||
|
||||
##### Request Body
|
||||
|
||||
```
|
||||
{
|
||||
"currentPassword": "current",
|
||||
"newPassword": "new"
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
When successful the API returns no response body and the HTTP status code 204 (No Content)
|
||||
|
||||
```
|
||||
curl -i -k --header "Content-Type: application/json" \
|
||||
--request POST --data '{"currentPassword": "current", "newPassword": "new" }' \
|
||||
'https://localhost:9200/graph/v1.0/me/changePassword' -u user:current
|
||||
```
|
||||
@@ -1,247 +0,0 @@
|
||||
---
|
||||
title: "Resumable Upload"
|
||||
date: 2023-10-10T00:00:00+00:00
|
||||
weight: 21
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http
|
||||
geekdocFilePath: tus_upload.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
Infinite Scale supports the tus resumable-upload protocol, which is a robust, modular, and open protocol designed to resume large file uploads reliably over HTTP.
|
||||
In situations where file uploads might be interrupted due to network issues, browser crashes, or other unforeseen interruptions,
|
||||
tus ensures that uploads can be resumed from the point of failure without losing data.
|
||||
This documentation shows some basic examples, refer [tus official site](https://tus.io/protocols/resumable-upload) for more details.
|
||||
|
||||
## Supported tus Features
|
||||
|
||||
The backend announces certain tus features to clients. WebDAV responses come with tus HTTP headers for the offical tus features, and additional, ownCloud specific features are announced via the capabilities endpoint (e.g. `https://localhost:9200/ocs/v1.php/cloud/capabilities?format=json`).
|
||||
|
||||
The following snippet shows the relevant part of the server capabilities of Infinite Scale that concerns the tus upload:
|
||||
```json
|
||||
{
|
||||
"ocs": {
|
||||
"data": {
|
||||
"capabilities": {
|
||||
"files": {
|
||||
"tus_support": {
|
||||
"version": "1.0.0",
|
||||
"resumable": "1.0.0",
|
||||
"extension": "creation,creation-with-upload",
|
||||
"max_chunk_size": 10000000,
|
||||
"http_method_override": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
| Parameter | Environment Variable | Default Value | Description |
|
||||
| -------------- | ------------------------------ | ------------- | ------------------------------------------------------------------- |
|
||||
| max_chunk_size | FRONTEND_UPLOAD_MAX_CHUNK_SIZE | 10000000 | Announces the max chunk sizes in bytes for uploads via the clients. |
|
||||
|
||||
## Upload in Chunks
|
||||
|
||||
### Create an Upload URL
|
||||
|
||||
The client must send a POST request against a known upload creation URL to request a new upload resource.
|
||||
The filename has to be provided in base64-encoded format.
|
||||
|
||||
Example:
|
||||
```shell
|
||||
# base64 encoded filename 'tustest.txt' is 'dHVzdGVzdC50eHQ='
|
||||
echo -n 'tustest.txt' | base64
|
||||
```
|
||||
|
||||
{{< tabs "create-upload-url" >}}
|
||||
{{< tab "Request" >}}
|
||||
```shell
|
||||
curl -ks -XPOST https://ocis.test/remote.php/dav/spaces/8d72036d-14a5-490f-889e-414064156402$196ac304-7b88-44ce-a4db-c4becef0d2e0 \
|
||||
-H "Authorization: Bearer eyJhbGciOiJQUzI..."\
|
||||
-H "Tus-Resumable: 1.0.0" \
|
||||
-H "Upload-Length: 10" \
|
||||
-H "Upload-Metadata: filename dHVzdGVzdC50eHQ="
|
||||
```
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "Response - 201 Created" >}}
|
||||
```
|
||||
< HTTP/1.1 201 Created
|
||||
< Access-Control-Allow-Headers: Tus-Resumable, Upload-Length, Upload-Metadata, If-Match
|
||||
< Access-Control-Allow-Origin: *
|
||||
< Access-Control-Expose-Headers: Tus-Resumable, Upload-Offset, Location
|
||||
< Content-Length: 0
|
||||
< Content-Security-Policy: default-src 'none';
|
||||
< Date: Mon, 16 Oct 2023 08:49:39 GMT
|
||||
< Location: https://ocis.test/data/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJyZXZhIiwiZXhwIjoxNjk3NTMyNTc5LCJpYXQiOjE2OTc0NDYxNzksInRhcmdldCI6Imh0dHA6Ly9sb2NhbGhvc3Q6OTE1OC9kYXRhL3R1cy8zYTU3ZWZlMS04MzE0LTQ4MGEtOWY5Ny04N2Q1YzBjYTJhMTgifQ.FbrlY7mdOfsbFgMrP8OtcHlCEq72a2ZVnPD2iBo9MfM
|
||||
< Tus-Extension: creation,creation-with-upload,checksum,expiration
|
||||
< Tus-Resumable: 1.0.0
|
||||
< Vary: Origin
|
||||
< X-Content-Type-Options: nosniff
|
||||
< X-Download-Options: noopen
|
||||
< X-Frame-Options: SAMEORIGIN
|
||||
< X-Permitted-Cross-Domain-Policies: none
|
||||
< X-Request-Id: xxxxxxxxxxxxxxxxxxxxxx
|
||||
< X-Robots-Tag: none
|
||||
<
|
||||
* Connection #0 to host localhost left intact
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
The server will return a temporary upload URL in the location header of the response:
|
||||
```
|
||||
< Location: https://ocis.test/data/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJyZXZhIiwiZXhwIjoxNjk3NTMyNTc5LCJpYXQiOjE2OTc0NDYxNzksInRhcmdldCI6Imh0dHA6Ly9sb2NhbGhvc3Q6OTE1OC9kYXRhL3R1cy8zYTU3ZWZlMS04MzE0LTQ4MGEtOWY5Ny04N2Q1YzBjYTJhMTgifQ.FbrlY7mdOfsbFgMrP8OtcHlCEq72a2ZVnPD2iBo9MfM
|
||||
```
|
||||
|
||||
### Upload the First Chunk
|
||||
|
||||
Once a temporary upload URL has been created, a client can send a PATCH request to upload a file. The file content should be sent in the body of the request:
|
||||
{{< tabs "upload-the-first-chunk" >}}
|
||||
{{< tab "Request" >}}
|
||||
```shell
|
||||
curl -ks -XPATCH https://temporary-upload-url \
|
||||
-H "Authorization: Bearer eyJhbGciOiJQUzI..." \
|
||||
-H "Tus-Resumable: 1.0.0" \
|
||||
-H "Upload-Offset: 0" \
|
||||
-H "Content-Type: application/offset+octet-stream" -d "01234"
|
||||
```
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "Response - 204 No Content" >}}
|
||||
```
|
||||
< HTTP/1.1 204 No Content
|
||||
< Date: Tue, 17 Oct 2023 04:10:52 GMT
|
||||
< Oc-Fileid: 8d72036d-14a5-490f-889e-414064156402$73bb5450-816b-4cae-90aa-1f96adc95bd4!84e319e4-de1d-4dd8-bbd0-e51d933cdbcd
|
||||
< Tus-Resumable: 1.0.0
|
||||
< Upload-Expires: 1697602157
|
||||
< Upload-Offset: 5
|
||||
< Vary: Origin
|
||||
< X-Content-Type-Options: nosniff
|
||||
< X-Request-Id: xxxxxxxxxxxxxxxxxxxxxx
|
||||
<
|
||||
* Connection #0 to host localhost left intact
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
### Upload Further Chunks
|
||||
|
||||
After the first chunk is uploaded, the second chunk can be uploaded by pointing `Upload-Offset` to exact position that was returned in the first response.
|
||||
Upload process will not be marked as complete until the total uploaded content size matches the `Upload-Length` specified during the creation of the temporary URL.
|
||||
|
||||
{{< tabs "upload-the-second-chunk" >}}
|
||||
{{< tab "Request" >}}
|
||||
```shell
|
||||
curl -ks -XPATCH https://temporary-upload-url \
|
||||
-H "Authorization: Bearer eyJhbGciOiJQUzI..." \
|
||||
-H "Tus-Resumable: 1.0.0" \
|
||||
-H "Upload-Offset: 5" \
|
||||
-H "Content-Type: application/offset+octet-stream" -d "56789"
|
||||
```
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "Response - 204 No Content" >}}
|
||||
```
|
||||
< HTTP/1.1 204 No Content
|
||||
< Date: Tue, 17 Oct 2023 04:11:00 GMT
|
||||
< Oc-Fileid: 8d72036d-14a5-490f-889e-414064156402$73bb5450-816b-4cae-90aa-1f96adc95bd4!84e319e4-de1d-4dd8-bbd0-e51d933cdbcd
|
||||
< Tus-Resumable: 1.0.0
|
||||
< Upload-Expires: 1697602157
|
||||
< Upload-Offset: 10
|
||||
< Vary: Origin
|
||||
< X-Content-Type-Options: nosniff
|
||||
< X-Request-Id: xxxxxxxxxxxxxxxxxxxxxx
|
||||
<
|
||||
* Connection #0 to host localhost left intact
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
{{< hint type=warning title="Important Warning" >}}
|
||||
`Upload-Offset` header indicates the byte position in the target file where the server should start writing the upload content.
|
||||
It ensures data integrity and order during the upload process.
|
||||
{{< /hint >}}
|
||||
|
||||
## Creation with Upload
|
||||
|
||||
{{< tabs "creation-with-upload" >}}
|
||||
{{< tab "Request" >}}
|
||||
```shell
|
||||
curl -ks -XPOST https://ocis.test/remote.php/dav/spaces/{space-id} \
|
||||
-H "Authorization: Bearer eyJhbGciOiJQUzI..." \
|
||||
-H "Tus-Resumable: 1.0.0" \
|
||||
-H "Upload-Length: 14" \
|
||||
-H "Content-Type: application/offset+octet-stream" \
|
||||
-H "Upload-Metadata: filename dGVzdC50eHQ=" \
|
||||
-H "Tus-Extension: creation-with-upload" \
|
||||
-d "upload content"
|
||||
```
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "Response - 201 Created" >}}
|
||||
```shell
|
||||
< HTTP/1.1 201 Created
|
||||
< Access-Control-Allow-Headers: Tus-Resumable, Upload-Length, Upload-Metadata, If-Match
|
||||
< Access-Control-Allow-Origin: *
|
||||
< Access-Control-Expose-Headers: Tus-Resumable, Upload-Offset, Location
|
||||
< Content-Length: 0
|
||||
< Content-Security-Policy: default-src 'none';
|
||||
< Content-Type: text/plain
|
||||
< Date: Mon, 16 Oct 2023 04:18:25 GMT
|
||||
< Etag: "372c96743f68bc40e789124d30567371"
|
||||
< Last-Modified: Mon, 16 Oct 2023 04:18:25 +0000
|
||||
< Location: https://ocis.test/data/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJyZXZhIiwiZXhwIjoxNjk3NTE2MzA1LCJpYXQiOjE2OTc0Mjk5MDUsInRhcmdldCI6Imh0dHA6Ly9sb2NhbGhvc3Q6OTE1OC9kYXRhL3R1cy82NjlhODBlZi1hN2VjLTQwYTAtOGNmOS05MTgwNTVhYzlkZjAifQ.yq-ofJYnJ9FLML7Z_jki1FJQ7Ulbt9O_cmLe6V411A4
|
||||
< Oc-Etag: "372c96743f68bc40e789124d30567371"
|
||||
< Oc-Fileid: 44d3e1e0-6c01-4b94-9145-9d0068239fcd$446bdad4-4b27-41f1-afce-0881f202a214!d7c292a6-c395-4e92-bf07-2c1663aec8dd
|
||||
< Oc-Perm: RDNVWZP
|
||||
< Tus-Extension: creation,creation-with-upload,checksum,expiration
|
||||
< Tus-Resumable: 1.0.0
|
||||
< Upload-Expires: 1697516305
|
||||
< Upload-Offset: 14
|
||||
< Vary: Origin
|
||||
< X-Content-Type-Options: nosniff
|
||||
< X-Download-Options: noopen
|
||||
< X-Frame-Options: SAMEORIGIN
|
||||
* TLSv1.2 (IN), TLS header, Supplemental data (23):
|
||||
{ [5 bytes data]
|
||||
< X-Permitted-Cross-Domain-Policies: none
|
||||
< X-Request-Id: xxxxxxxxxxxxxxxxxxxxxx
|
||||
< X-Robots-Tag: none
|
||||
<
|
||||
* Connection #0 to host localhost left intact
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
{{< hint type=warning title="Important Warning" >}}
|
||||
The `Upload-Length` header of the request has to contain the exact size of the upload content in byte.
|
||||
{{< /hint >}}
|
||||
|
||||
## Supported Upload-Metadata
|
||||
|
||||
Upload-metadata key-value pairs aren't specified in the general tus docs. The following ones are supported in the ownCloud ecosystem:
|
||||
|
||||
| Parameter (key) | Example (value, MUST be Base64 encoded) | Description |
|
||||
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
|
||||
| `name` OR `filename` (mandatory) | example.pdf | Filename |
|
||||
| `mtime` (recommended) | 1701708712 | Modification time (Unix time format) |
|
||||
| `checksum` (recommended) | SHA1 a330de5886e5a92d78fb3f8d59fe469857759e72 | Checksum, computed from the client |
|
||||
| `type` OR `filetype` | application/pdf | MIME Type, sent by the web UI |
|
||||
| `relativePath` | undefined | File path relative to the folder that is being uploaded, including the filename. Sent by the web UI |
|
||||
| `spaceId` | 8748cddf-66b7-4b85-91a7-e6d08d8e1639$a9778d63-21e7-4d92-9b47-1b81144b9993 | Sent by the web UI |
|
||||
| `spaceName` | Personal | Sent by the web UI |
|
||||
| `driveAlias` | personal/admin | Sent by the web UI |
|
||||
| `driveType` | personal | Sent by the web UI |
|
||||
| `currentFolder` | / | Sent by the web UI |
|
||||
| `currentFolderId` | 8748cddf-66b7-4b85-91a7-e6d08d8e1639$a9778d63-21e7-4d92-9b47-1b81144b9993!a9778d63-21e7-4d92-9b47-1b81144b9993 | Sent by the web UI |
|
||||
| `uppyId` | uppy-example/pdf-1e-application/pdf-238300 | Sent by the web UI |
|
||||
| `relativeFolder` | | File path relative to the folder that is being uploaded, without filename. Sent by the web UI. |
|
||||
| `tusEndpoint` | https://ocis.ocis-traefik.latest.owncloud.works/remote.php/dav/spaces/8748cddf-66b7-4b85-91a7-e6d08d8e1639$a9778d63-21e7-4d92-9b47-1b81144b9993 | Sent by the web UI |
|
||||
| `uploadId` | 71d5f878-a96c-4d7b-9627-658d782c93d7 | Sent by the web UI |
|
||||
| `topLevelFolderId` | undefined | Sent by the web UI |
|
||||
| `routeName` | files-spaces-generic | Sent by the web UI |
|
||||
| `routeDriveAliasAndItem` | cGVyc29uYWwvYWRtaW4= | Sent by the web UI |
|
||||
| `routeShareId` | | Share ID when uploading into a received folder share. Sent by the web UI |
|
||||
@@ -1,547 +0,0 @@
|
||||
---
|
||||
title: "WebDAV"
|
||||
date: 2023-07-02T00:00:00+00:00
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http/webdav
|
||||
geekdocFilePath: _index.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
**Web** **D**istributed **A**uthoring and **V**ersioning (WebDAV) consists of a set of methods, headers, and content-types extending HTTP/1.1 for the management of resources and -properties, creation and management of resource collections, URL namespace manipulation, and resource locking (collision avoidance). WebDAV is one of the central APIs that ownCloud uses for handling file resources, metadata and locks.
|
||||
|
||||
|
||||
{{< hint type=info title="RFC" >}}
|
||||
**WebDAV RFCs**
|
||||
|
||||
RFC 2518 was published in February 1999. [RFC 4918](https://datatracker.ietf.org/doc/html/rfc4918), published in June 2008 obsoletes RFC 2518 with minor revisions mostly due to interoperability experience.
|
||||
|
||||
{{< /hint >}}
|
||||
## Calling the WebDAV API
|
||||
|
||||
### Request URI
|
||||
|
||||
```sh
|
||||
{HTTP method} https://ocis.url/{webdav-base}/{resourceID}/{path}
|
||||
```
|
||||
|
||||
The request URI consists of:
|
||||
|
||||
| Component | Description |
|
||||
|---------------|--------------------------------------------------------------------------------------------------------|
|
||||
| {HTTP method} | The HTTP method which is used in the request. |
|
||||
| {webdav-base} | The WebDAV base path component. Possible options are |
|
||||
| | `dav/spaces/` This is the default and optimized endpoint for all WebDAV requests. |
|
||||
| | `remote.php/dav/spaces/`* |
|
||||
| | `remote.php/webdav/`* |
|
||||
| | `webdav/`* |
|
||||
| | `dav/`* |
|
||||
| {resourceID} | This resourceID is used as the WebDAV root element. All children are accessed by their relative paths. |
|
||||
| {path} | The relative path to the WebDAV root. In most of the casese, this is the space root. |
|
||||
|
||||
\* these dav endpoints are implemented for legacy reasons and should not be used. Note: The legacy endpoints **do not take the resourceID as an argument.**
|
||||
|
||||
### HTTP methods
|
||||
|
||||
| Method | Description |
|
||||
|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| PROPFIND | Retrieve properties as XML from a web resource. It is also overloaded to retrieve the collection structure (a.k.a. directory hierarchy) of a remote system. |
|
||||
| PROPPATCH | Process instructions specified in the request body to set and/or remove properties defined on the resource identified by the request uri. |
|
||||
| MKCOL | Create a WebDAV collection (folder) at the location specified by the request uri. |
|
||||
| GET | Retrieve a WebDAV resource. |
|
||||
| HEAD | Retrieve a WebDAV resource without reading the body. |
|
||||
| PUT | A PUT performed on an existing resource replaces the GET response entity of the resource. |
|
||||
| POST | Not part of the WebDAV rfc and has no effect on a WebDAV resource. However, this method is used in the TUS protocol for uploading resources. |
|
||||
| PATCH | Not part of the WebDAV rfc and has no effect on a WebDAV resource. However, this method is used in the TUS protocol for uploading resources. |
|
||||
| COPY | Creates a duplicate of the source resource identified by the Request-URI, in the destination resource identified by the URI in the Destination header. |
|
||||
| MOVE | The MOVE operation on a non-collection resource is the logical equivalent of a copy (COPY), followed by consistency maintenance processing, followed by a delete of the source, where all three actions are performed in a single operation. | |
|
||||
| DELETE | Delete the resource identified by the Request-URI. |
|
||||
| LOCK | A LOCK request to an existing resource will create a lock on the resource identified by the Request-URI, provided the resource is not already locked with a conflicting lock. |
|
||||
| UNLOCK | The UNLOCK method removes the lock identified by the lock token in the Lock-Token request header. The Request-URI must identify a resource within the scope of the lock. |
|
||||
|
||||
The methods `MKCOL`, `GET`, `HEAD`, `LOCK`, `COPY`, `MOVE`, `UNLOCK` and `DELETE` need no request body.
|
||||
|
||||
The methods `PROPFIND`, `PROPPATCH`, `PUT` require a request body, normally in XML format to provide the needed values.
|
||||
|
||||
{{< hint type=tip title="Tooling" >}}
|
||||
**WebDAV is not REST**
|
||||
|
||||
The WebDAV protocol was created before the REST paradigm has become the de-facto standard for API design. WebDAV uses http methods which are not part of REST. Therefore all the tooling around API design and documentation is not usable (like OpenApi 3.0 / Swagger or others).
|
||||
{{< /hint >}}
|
||||
|
||||
### Authentication
|
||||
|
||||
For development purposes the examples in the developer documentation use Basic Auth. It is disabled by default and should only be enabled by setting `PROXY_ENABLE_BASIC_AUTH` in [the proxy](../../../services/proxy/configuration/#environment-variables) for development or test instances.
|
||||
|
||||
To authenticate with a Bearer token or OpenID Connect access token replace the `-u user:password` Basic Auth option of curl with a `-H 'Authorization: Bearer <token>'` header. A `<token>` can be obtained by copying it from a request in the browser, although it will time out within minutes. To automatically refresh the OpenID Connect access token an ssh-agent like solution like [oidc-agent](https://github.com/indigo-dc/oidc-agent) should be used.
|
||||
|
||||
## Listing Properties
|
||||
|
||||
This method is used to list the properties of a resource in xml. This method can also be used to retrieve the listing of a WebDAV collection which means the content of a remote directory.
|
||||
|
||||
{{< tabs "list-properties" >}}
|
||||
{{< tab "Curl" >}}
|
||||
```shell
|
||||
curl -L -X PROPFIND 'https://localhost:9200/dav/spaces/storage-users-1%24some-admin-user-id-0000-000000000000/' \
|
||||
-H 'Depth: 1' \
|
||||
-d '<?xml version="1.0"?>
|
||||
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
|
||||
<d:prop>
|
||||
<oc:permissions />
|
||||
<oc:favorite />
|
||||
<oc:fileid />
|
||||
<oc:owner-id />
|
||||
<oc:owner-display-name />
|
||||
<oc:share-types />
|
||||
<oc:privatelink />
|
||||
<d:getcontentlength />
|
||||
<oc:size />
|
||||
<d:getlastmodified />
|
||||
<d:getetag />
|
||||
<d:getcontenttype />
|
||||
<d:resourcetype />
|
||||
<oc:downloadURL />
|
||||
</d:prop>
|
||||
</d:propfind>'
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab "HTTP" >}}
|
||||
```shell
|
||||
PROPFIND /dav/spaces/storage-users-1%24some-admin-user-id-0000-000000000000/ HTTP/1.1
|
||||
Host: localhost:9200
|
||||
Origin: https://localhost
|
||||
Access-Control-Request-Method: PROPFIND
|
||||
Depth: 1
|
||||
Content-Type: application/xml
|
||||
Authorization: Basic YWRtaW46YWRtaW4=
|
||||
Content-Length: 436
|
||||
|
||||
<?xml version="1.0"?>
|
||||
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
|
||||
<d:prop>
|
||||
<oc:permissions />
|
||||
<oc:favorite />
|
||||
<oc:fileid />
|
||||
<oc:owner-id />
|
||||
<oc:owner-display-name />
|
||||
<oc:share-types />
|
||||
<oc:privatelink />
|
||||
<d:getcontentlength />
|
||||
<oc:size />
|
||||
<d:getlastmodified />
|
||||
<d:getetag />
|
||||
<d:getcontenttype />
|
||||
<d:resourcetype />
|
||||
<oc:downloadURL />
|
||||
</d:prop>
|
||||
</d:propfind>
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
The request consists of a request body and an optional `Depth` Header.
|
||||
|
||||
{{< hint type=tip title="PROPFIND usage" >}}
|
||||
**Metadata and Directory listings**
|
||||
|
||||
Clients can use the `PROPFIND` method to retrieve properties of resources (metadata) and to list the content of a directories.
|
||||
{{< /hint >}}
|
||||
### Response
|
||||
|
||||
{{< tabs "response list properties" >}}
|
||||
{{< tab "207 - Multistatus" >}}
|
||||
|
||||
#### Multi Status Response
|
||||
|
||||
A Multi-Status response conveys information about multiple resources
|
||||
in situations where multiple status codes might be appropriate. The
|
||||
default Multi-Status response body is an application/xml
|
||||
HTTP entity with a `multistatus` root element. Further elements
|
||||
contain `200`, `300`, `400`, and `500` series status codes generated during
|
||||
the method invocation.
|
||||
|
||||
Although `207` is used as the overall response status code, the
|
||||
recipient needs to consult the contents of the multistatus response
|
||||
body for further information about the success or failure of the
|
||||
method execution. The response MAY be used in success, partial
|
||||
success and also in failure situations.
|
||||
|
||||
The `multistatus` root element holds zero or more `response` elements
|
||||
in any order, each with information about an individual resource.
|
||||
|
||||
#### Body
|
||||
|
||||
```xml
|
||||
<d:multistatus xmlns:s="http://sabredav.org/ns" xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
|
||||
<d:response>
|
||||
<d:href>/dav/spaces/storage-users-1$some-admin-user-id-0000-000000000000/</d:href>
|
||||
<d:propstat>
|
||||
<d:prop>
|
||||
<oc:permissions>RDNVCKZP</oc:permissions>
|
||||
<oc:favorite>0</oc:favorite>
|
||||
<oc:fileid>storage-users-1$some-admin-user-id-0000-000000000000!some-admin-user-id-0000-000000000000</oc:fileid>
|
||||
<oc:id>storage-users-1$some-admin-user-id-0000-000000000000!some-admin-user-id-0000-000000000000</oc:id>
|
||||
<oc:owner-id>admin</oc:owner-id>
|
||||
<oc:owner-display-name>Admin</oc:owner-display-name>
|
||||
<oc:privatelink>https://localhost:9200/f/storage-users-1$some-admin-user-id-0000-000000000000%21some-admin-user-id-0000-000000000000</oc:privatelink>
|
||||
<oc:size>10364682</oc:size>
|
||||
<d:getlastmodified>Mon, 04 Sep 2023 20:10:09 GMT</d:getlastmodified>
|
||||
<d:getetag>"c4d3610dfe4fac9b44e1175cfc44b12b"</d:getetag>
|
||||
<d:resourcetype>
|
||||
<d:collection/>
|
||||
</d:resourcetype>
|
||||
</d:prop>
|
||||
<d:status>HTTP/1.1 200 OK</d:status>
|
||||
</d:propstat>
|
||||
<d:propstat>
|
||||
<d:prop>
|
||||
<oc:checksums></oc:checksums>
|
||||
<oc:share-types></oc:share-types>
|
||||
<d:getcontentlength></d:getcontentlength>
|
||||
<d:getcontenttype></d:getcontenttype>
|
||||
</d:prop>
|
||||
<d:status>HTTP/1.1 404 Not Found</d:status>
|
||||
</d:propstat>
|
||||
</d:response>
|
||||
<d:response>
|
||||
<d:href>/dav/spaces/storage-users-1$some-admin-user-id-0000-000000000000/New%20file.txt</d:href>
|
||||
<d:propstat>
|
||||
<d:prop>
|
||||
<oc:permissions>RDNVWZP</oc:permissions>
|
||||
<oc:checksums>
|
||||
<oc:checksum>SHA1:1c68ea370b40c06fcaf7f26c8b1dba9d9caf5dea MD5:2205e48de5f93c784733ffcca841d2b5 ADLER32:058801ab</oc:checksum>
|
||||
</oc:checksums>
|
||||
<oc:favorite>0</oc:favorite>
|
||||
<oc:fileid>storage-users-1$some-admin-user-id-0000-000000000000!90cc3e73-0c6c-4346-9c4d-f529976d4990</oc:fileid>
|
||||
<oc:id>storage-users-1$some-admin-user-id-0000-000000000000!90cc3e73-0c6c-4346-9c4d-f529976d4990</oc:id>
|
||||
<oc:owner-id>admin</oc:owner-id>
|
||||
<oc:owner-display-name>Admin</oc:owner-display-name>
|
||||
<oc:share-types>
|
||||
<oc:share-type>0</oc:share-type>
|
||||
<oc:share-type>1</oc:share-type>
|
||||
<oc:share-type>3</oc:share-type>
|
||||
</oc:share-types>
|
||||
<oc:privatelink>https://localhost:9200/f/storage-users-1$some-admin-user-id-0000-000000000000%2190cc3e73-0c6c-4346-9c4d-f529976d4990</oc:privatelink>
|
||||
<d:getcontentlength>5</d:getcontentlength>
|
||||
<oc:size>5</oc:size>
|
||||
<d:getlastmodified>Mon, 28 Aug 2023 20:45:03 GMT</d:getlastmodified>
|
||||
<d:getetag>"75115347c74701a3be9c635ddebbf5c4"</d:getetag>
|
||||
<d:getcontenttype>text/plain</d:getcontenttype>
|
||||
<d:resourcetype></d:resourcetype>
|
||||
</d:prop>
|
||||
<d:status>HTTP/1.1 200 OK</d:status>
|
||||
</d:propstat>
|
||||
</d:response>
|
||||
<d:response>
|
||||
<d:href>/dav/spaces/storage-users-1$some-admin-user-id-0000-000000000000/NewFolder/</d:href>
|
||||
<d:propstat>
|
||||
<d:prop>
|
||||
<oc:permissions>RDNVCKZP</oc:permissions>
|
||||
<oc:favorite>0</oc:favorite>
|
||||
<oc:fileid>storage-users-1$some-admin-user-id-0000-000000000000!5c73ecd9-d9f4-44f4-b685-ca4cb40aa6b7</oc:fileid>
|
||||
<oc:id>storage-users-1$some-admin-user-id-0000-000000000000!5c73ecd9-d9f4-44f4-b685-ca4cb40aa6b7</oc:id>
|
||||
<oc:owner-id>admin</oc:owner-id>
|
||||
<oc:owner-display-name>Admin</oc:owner-display-name>
|
||||
<oc:privatelink>https://localhost:9200/f/storage-users-1$some-admin-user-id-0000-000000000000%215c73ecd9-d9f4-44f4-b685-ca4cb40aa6b7</oc:privatelink>
|
||||
<oc:size>0</oc:size>
|
||||
<d:getlastmodified>Mon, 28 Aug 2023 20:45:10 GMT</d:getlastmodified>
|
||||
<d:getetag>"e83367534cc595a45d706857fa5f03d8"</d:getetag>
|
||||
<d:resourcetype>
|
||||
<d:collection/>
|
||||
</d:resourcetype>
|
||||
</d:prop>
|
||||
<d:status>HTTP/1.1 200 OK</d:status>
|
||||
</d:propstat>
|
||||
<d:propstat>
|
||||
<d:prop>
|
||||
<oc:checksums></oc:checksums>
|
||||
<oc:share-types></oc:share-types>
|
||||
<d:getcontentlength></d:getcontentlength>
|
||||
<d:getcontenttype></d:getcontenttype>
|
||||
</d:prop>
|
||||
<d:status>HTTP/1.1 404 Not Found</d:status>
|
||||
</d:propstat>
|
||||
</d:response>
|
||||
</d:multistatus>
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab "400 - Bad Request" >}}
|
||||
|
||||
#### Body
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns">
|
||||
<s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
|
||||
<s:message>Invalid Depth header value: 3</s:message>
|
||||
</d:error>
|
||||
```
|
||||
|
||||
This can occur if the request is malformed e.g. due to an invalid xml request body or an invalid depth header value.
|
||||
{{< /tab >}}
|
||||
{{< tab "404 - Not Found" >}}
|
||||
|
||||
#### Body
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns">
|
||||
<s:exception>Sabre\DAV\Exception\NotFound</s:exception>
|
||||
<s:message>Resource not found</s:message>
|
||||
</d:error>
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
### Request Body
|
||||
|
||||
The `PROPFIND` Request can include an XML request body containing a list of namespaced property names.
|
||||
|
||||
### Namespaces
|
||||
|
||||
When building the body of your DAV request, you will request properties that are available under a specific namespace URI. It is usual to declare prefixes for those namespace in the `d:propfind` element of the body.
|
||||
|
||||
Available namespaces:
|
||||
|
||||
| URI | Prefix |
|
||||
|-------------------------------------------|--------|
|
||||
| DAV: | d |
|
||||
| http://sabredav.org/ns | s |
|
||||
| http://owncloud.org/ns | oc |
|
||||
| http://open-collaboration-services.org/ns | ocs |
|
||||
| http://open-cloud-mesh.org/ns | ocm |
|
||||
|
||||
### Request Example with declared namespaces
|
||||
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
|
||||
</d:propfind>
|
||||
```
|
||||
|
||||
### Supported WebDAV Properties
|
||||
|
||||
| Property | Desription | Example |
|
||||
| ----------------------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `<d:getlastmodified />` | The latest modification time. | `Fri, 30 Dec 2022 14:22:43 GMT` |
|
||||
| `<d:getetag />` | The file's etag. | `"c3a1ee4a0c28edc15b9635c3bf798013"` |
|
||||
| `<d:getcontenttype />` | The mime type of the file. | `image/jpeg` |
|
||||
| `<d:resourcetype />` | Specifies the nature of the resource. | `<d:collection />` for a folder |
|
||||
| `<d:getcontentlength />` | The size if it is a file in bytes. | `5` bytes |
|
||||
| `<d:lockdiscovery />` | Describes the active locks on a resource. | Detailed Example in [Locking]() |
|
||||
| `<oc:id />` | The globally unique ID of the resource. | `storage-1$27475553-7fb7-4689-b4cf-bbb635daff79!27475553-7fb7-4689-b4cf-bbb635daff79` |
|
||||
| `<oc:fileid />` | The globally unique ID of the resource. | `storage-1$27475553-7fb7-4689-b4cf-bbb635daff79!27475553-7fb7-4689-b4cf-bbb635daff79` |
|
||||
| `<oc:downloadURL />` | Direct URL to download a file from. | Not implemented. |
|
||||
| `<oc:permissions />` | Determines the actions a user can take on the resource. | The value is a string containing letters that clients can use to determine available actions. |
|
||||
| | | `S`: Shared |
|
||||
| | | `M`: Mounted |
|
||||
| | | `D`: Deletable |
|
||||
| | | `NV`: Updateable, Renameable, Moveable |
|
||||
| | | `W`: Updateable (file) |
|
||||
| | | `CK`: Creatable (folders only) |
|
||||
| | | `Z`: Deniable |
|
||||
| | | `P`: Trashbin Purgable |
|
||||
| | | `X`: Securely Viewable |
|
||||
| | | In the early stages this was indeed a list of permissions. Over time, more flags were added and the term permissions no longer really fits well. |
|
||||
| `<oc:tags />` | List of user specified tags. | `<oc:tag>test</oc:tag>` |
|
||||
| `<oc:favorite /> ` | The favorite state. | `0` for not favourited, `1` for favourited |
|
||||
| `<oc:owner-id />` | The user id of the owner of a resource. Project spaces have no owner. | `einstein` |
|
||||
| `<oc:owner-display-name />` | The display name of the owner of a resource. Project spaces have no owner. | `Albert Einstein` |
|
||||
| `<oc:share-types />` | List of share types. | `0` = User Share |
|
||||
| | | `1` = Group Share |
|
||||
| | | `2` = Public Link |
|
||||
| `<oc:checksums />` | | `<oc:checksum>`<br/>`SHA1:1c68ea370b40c06fcaf7f26c8b1dba9d9caf5dea MD5:2205e48de5f93c784733ffcca841d2b5 ADLER32:058801ab`<br /> `</oc:checksum>` |
|
||||
| | | Due to a bug in the very early development of ownCloud, this value is not an array, but a string separated by whitespaces. |
|
||||
| `<oc:size />` | Similar to `getcontentlength` but it also works for folders. | `10` bytes |
|
||||
| `<oc:shareid />` | The ID of the share if the resource is part of such. | `storage-1$27475553-7fb7-4689-b4cf-bbb635daff79!27475553-7fb7-4689-b4cf-bbb635daff79` |
|
||||
| `<oc:shareroot />` | The root path of the shared resource if the resource is part of such. | `/shared-folder` |
|
||||
| `<oc:remoteItemId />` | The ID of the shared resource if the resource is part of such. | `storage-1$27475553-7fb7-4689-b4cf-bbb635daff79!27475553-7fb7-4689-b4cf-bbb635daff79` |
|
||||
| `<oc:public-link-item-type />` | The type of the resource if it's a public link. | `folder` |
|
||||
| `<oc:public-link-permission />` | The share permissions of the resource if it's a public link. | `1` |
|
||||
| `<oc:public-link-expiration />` | The expiration date of the public link. | `Tue, 14 May 2024 12:44:29 GMT` |
|
||||
| `<oc:public-link-share-datetime />` | The date the public link was created. | `Tue, 14 May 2024 12:44:29 GMT` |
|
||||
| `<oc:public-link-share-owner />` | The username of the user who created the public link. | `admin` |
|
||||
| `<oc:trashbin-original-filename />` | The original name of the resource before it was deleted. | `some-file.txt` |
|
||||
| `<oc:trashbin-original-location />` | The original location of the resource before it was deleted. | `some-file.txt` |
|
||||
| `<oc:trashbin-delete-datetime />` | The date the resource was deleted. | `Tue, 14 May 2024 12:44:29 GMT` |
|
||||
| `<oc:audio />` | Audio meta data if the resource contains such. | `<oc:artist>Metallica</oc:artist><oc:album>Metallica</oc:album><oc:title>Enter Sandman</oc:title>` |
|
||||
| `<oc:location />` | Location meta data if the resource contains such. | `<oc:latitude>51.504106</oc:latitude><oc:longitude>-0.074575</oc:latitude>` |
|
||||
|
||||
### Request Headers
|
||||
|
||||
A client executing a `PROPFIND` request MUST submit a Depth Header value. In practice, support for infinite-depth requests MAY be disabled, due to the performance and security concerns associated with this behavior. Servers SHOULD treat a
|
||||
request without a Depth header as if a `Depth: infinity` header was included. Infinite depth requests are disabled by default in ocis.
|
||||
|
||||
| Name | Value |
|
||||
|-------------------------------------------|---------------------------------------------------------------------------------------|
|
||||
| Depth | `0` = Only return the desired resource. |
|
||||
| | `1` = Return the desired resource and all resources one level below in the hierarchy. |
|
||||
| | `infinity` = Return all resources below the root. |
|
||||
|
||||
{{< hint type=caution title="Use the Depth header with caution" >}}
|
||||
**Depth: infinity**
|
||||
|
||||
Using the `Depth: infinity` header value can cause heavy load on the server, depending on the size of the file tree.
|
||||
|
||||
The request can run into a timeout and the server performance could be affected for other users.
|
||||
|
||||
{{< /hint >}}
|
||||
|
||||
## Create a Directory
|
||||
|
||||
Clients create directories (WebDAV collections) by executing a `MKCOL` request at the location specified by the request url.
|
||||
|
||||
{{< tabs "create-folder" >}}
|
||||
{{< tab "Curl" >}}
|
||||
```shell
|
||||
curl -L -X MKCOL 'https://localhost:9200/dav/spaces/storage-users-1%24some-admin-user-id-0000-000000000000/NewFolder/' \
|
||||
-H 'Authorization: Basic YWRtaW46YWRtaW4='
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab "HTTP" >}}
|
||||
```shell
|
||||
MKCOL /dav/spaces/storage-users-1%24some-admin-user-id-0000-000000000000/NewFolder/ HTTP/1.1
|
||||
Host: localhost:9200
|
||||
Authorization: Basic YWRtaW46YWRtaW4=
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
### Response
|
||||
|
||||
{{< tabs "response create folder" >}}
|
||||
{{< tab "201 - Created" >}}
|
||||
This indicates that the Resource has been created successfully.
|
||||
|
||||
#### Body
|
||||
|
||||
The response has no body.
|
||||
{{< /tab >}}
|
||||
{{< tab "403 - Forbidden" >}}
|
||||
|
||||
#### Body
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns">
|
||||
<s:exception>Sabre\DAV\Exception\Forbidden</s:exception>
|
||||
<s:message></s:message>
|
||||
</d:error>
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab "405 - Method not allowed" >}}
|
||||
|
||||
#### Body
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns">
|
||||
<s:exception>Sabre\DAV\Exception\MethodNotAllowed</s:exception>
|
||||
<s:message>The resource you tried to create already exists</s:message>
|
||||
</d:error>
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
## Upload File
|
||||
|
||||
To upload files to the remote server, clients can use the `PUT` method to create or fully replace the content of the remote file.
|
||||
|
||||
### Request Headers
|
||||
|
||||
| Name | Usage |
|
||||
|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `X-OC-Mtime` | Send the last modified <br> time of the file to the server in unixtime format. The server applies this mtime to the resource rather than the actual time. |
|
||||
| `OC-Checksum` | Provide the checksum of the <br> file content to the server. <br> This is used to prevent corrupted data transfers. |
|
||||
| `If-Match` | The If-Match request-header field is used with a method to make it <br> conditional. A client that has one or more entities previously <br> obtained from the resource can verify that one of those entities is <br> current by including a list of their associated entity tags in the <br> If-Match header field. |
|
||||
|
||||
{{< tabs "upload-file" >}}
|
||||
{{< tab "Curl" >}}
|
||||
```shell
|
||||
curl -L -X PUT 'https://localhost:9200/dav/spaces/storage-users-1%24some-admin-user-id-0000-000000000000/test.txt' \
|
||||
-H 'X-OC-Mtime: 1692369418' \
|
||||
-H 'OC-Checksum: SHA1:40bd001563085fc35165329ea1ff5c5ecbdbbeef' \
|
||||
-H 'If-Match: "4436aef907f41f1ac7dfd1ac3d0d455f"' \
|
||||
-H 'Content-Type: text/plain' \
|
||||
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
|
||||
-d '123'
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab "HTTP" >}}
|
||||
```shell
|
||||
PUT /dav/spaces/storage-users-1%24some-admin-user-id-0000-000000000000/test.txt HTTP/1.1
|
||||
Host: localhost:9200
|
||||
X-OC-Mtime: 1692369418
|
||||
OC-Checksum: SHA1:40bd001563085fc35165329ea1ff5c5ecbdbbeef
|
||||
If-Match: "4436aef907f41f1ac7dfd1ac3d0d455f"
|
||||
Content-Type: text/plain
|
||||
Authorization: Basic YWRtaW46YWRtaW4=
|
||||
Content-Length: 3
|
||||
|
||||
123
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
### Response
|
||||
|
||||
{{< tabs "response upload file" >}}
|
||||
{{< tab "201 - Created" >}}
|
||||
This indicates that the Resource has been created successfully.
|
||||
|
||||
#### Body
|
||||
|
||||
The response has no body.
|
||||
|
||||
#### Headers
|
||||
|
||||
```yaml
|
||||
Oc-Etag: "4436aef907f41f1ac7dfd1ac3d0d455f"
|
||||
Oc-Fileid: storage-users-1$some-admin-user-id-0000-000000000000!07452b22-0ba9-4539-96e1-3511aff7fd2f
|
||||
Last-Modified: Fri, 18 Aug 2023 14:36:58 +0000
|
||||
X-Oc-Mtime: accepted
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab "204 - No Content" >}}
|
||||
This indicates that the Resource has been updated successfully.
|
||||
|
||||
#### Body
|
||||
|
||||
The response has no body.
|
||||
|
||||
#### Headers
|
||||
|
||||
```yaml
|
||||
Oc-Etag: "4436aef907f41f1ac7dfd1ac3d0d455f"
|
||||
Oc-Fileid: storage-users-1$some-admin-user-id-0000-000000000000!07452b22-0ba9-4539-96e1-3511aff7fd2f
|
||||
Last-Modified: Fri, 18 Aug 2023 14:36:58 +0000
|
||||
X-Oc-Mtime: accepted
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab "400 - Bad Request" >}}
|
||||
This indicates that the checksum, which was sent by the client, does not match the computed one after all bytes have been received by the server.
|
||||
|
||||
#### Body
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns">
|
||||
<s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
|
||||
<s:message>The computed checksum does not match the one received from the client.</s:message>
|
||||
</d:error>
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab "403 - Forbidden" >}}
|
||||
|
||||
The user cannot create files in that remote location.
|
||||
{{< /tab >}}
|
||||
{{< tab "404 - Not Found" >}}
|
||||
|
||||
The remote target space cannot be found.
|
||||
{{< /tab >}}
|
||||
{{< tab "409 - Conflict" >}}
|
||||
|
||||
This error can occur when the request cannot be executed due to a missing precondition. One example is a PUT into a non-existing remote folder. It can also happen when the client sends the wrong etag in the `If-Match` header.
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
@@ -1,13 +0,0 @@
|
||||
---
|
||||
title: Architecture
|
||||
date: 2023-12-06T13:00:00+01:00
|
||||
weight: 10
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/architecture
|
||||
geekdocFilePath: _index.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
In the architecture part of the documentation we collect useful developer documentation on different aspects of the architecture. We are using mermaid.js to collaborate on the necessary diagrams.
|
||||
|
||||
*Pictures tell more than a thousand words.*
|
||||
@@ -1,111 +0,0 @@
|
||||
---
|
||||
title: "Collaborative Storage"
|
||||
date: 2023-11-09T12:35:00+01:00
|
||||
weight: 30
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/ocis/storage-backends/
|
||||
geekdocFilePath: collaborative-storage.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
One of the envisioned design goals of Infinite Scale is to work with so called _collaborative storage_, which means that the file system it is running on is not exclusive for Infinite Scale, but can be manipulated in parallel through third party tools. Infinite Scale is expected to monitor the changes that happen independently and react in a consistent and user friendly way.
|
||||
|
||||
A real world example of that would be a third party "data producer" that submits data directly into a file system path, not going through Infinite Scale APIs.
|
||||
|
||||
This document outlines a few challenges and design concepts for collaborative storage. It is also the base "checklist" for custom storage provider implementations for certain storages, ie. for Ceph- or IBM Storage Scale which provide features that allow more sophisticated and efficient implementations of this goal.
|
||||
|
||||
|
||||
# Storage Driver Components
|
||||
|
||||
This discusses a few components and sub functions of the storage driver that have relevance for the collaborative storage.
|
||||
|
||||
## Path Locations
|
||||
|
||||
What is called "the oCIS file system" is defined as the entire filetree underneath a special path in the local POSIX file system, which might either be a real local file system or a mounted net filesystem. It is expected that oCIS is the only consumer of that file tree, except what is expected behaviour with a collaborative file system, that adds and edits files in that tree.
|
||||
|
||||
Underneath the oCIS file system root, there is an collection of different folders containing oCIS specific data. Specific storage driver data is in the directory `storage/users`, organized by spaces.
|
||||
(TODO: Check again how different storage drivers work together without overwriting data of each other)
|
||||
|
||||
## Spaces
|
||||
|
||||
Infinite Scale provides spaces as an additional organization organizational unit for data. Each space is a separate entity with its own attributes such as access patterns and quota.
|
||||
|
||||
A storage driver has to model the separation of spaces and provide a list of spaces in general and also a list of spaces a user can access. Furthermore, it needs to be able to create different types of spaces (Home- or Project space).
|
||||
|
||||
On POSIX, each space could for example be mapped to it's own directory in a special spaces folder under the oCIS root folder.
|
||||
|
||||
## ID to Path Lookup
|
||||
|
||||
Infinite Scale uses file IDs to efficiently identify files within a file tree. The lookup from a given ID to a path within the oCIS file tree is a very basic function that more or less defines the Infinite Scale performance. The functionality to for example query the file path for a given Inode number (which is the nearest equivalent for the Infinite Scale file ID) can not be done with standard POSIX system calls.
|
||||
|
||||
The interface defining the collaborative storage needs an abstraction for this particular function, returning the file id for a given path, and returning the path for given id.
|
||||
|
||||
## Change Notification
|
||||
|
||||
When a file is changed by a process outside of oCIS, this needs to be monitored by oCIS to quickly maintain internal caches and data structures as required.
|
||||
|
||||
The collaborative storage driver needs a way to achieve that. The easiest way for an POSIX based collaborative storage is inotify, that needs to be set up recursively on a file tree to record changes. Additional it is a challenge to destinguish between changes that were done from external activity and the ones that oCIS creates by its own file operations.
|
||||
|
||||
For GPFS, there is a subsystem called delivering that:
|
||||
|
||||
https://www.ibm.com/docs/en/storage-scale/5.1.9?topic=reference-clustered-watch-folder]
|
||||
|
||||
## ETag Propagation
|
||||
|
||||
ownCloud requires that changes which happen "down" in a tree, can be detected in the root element of the tree. That happens through the change of the ETag metadata of each file and/or directory. An ETag is a random, text based tag, that only has one requirement: It has to change its content if a resource further down in the file tree has changed either its content or its metadata. (See [this issue](https://github.com/owncloud/ocis/issues/3782) for further discussion about the ETag/CTag).
|
||||
|
||||
POSIX file systems do not maintain a change flag like the ETag by default. The file time stamps (atime, ctime, mtime) in general are not fine granular enough (only seconds for some file systems) and depend on the server time, which renders them useless in a distributed environment.
|
||||
|
||||
Infinite Scale needs to implement ETag propagation "up". For the collaborative storage, that needs to be combined with the change notification described above.
|
||||
|
||||
Certain file systems implement this functionality either independently from Infinite Scale (EOS) or at least support proper change notifications (Ceph, GPFS?).
|
||||
|
||||
## Metadata Management
|
||||
|
||||
Metadata are data "snippets" that are as tightly attached to files as ever possible. In best case, a rename of a file silently keeps the metadata as well. In POSIX, this can be achieved by extended file attributes with certain limitations.
|
||||
|
||||
## Quota
|
||||
|
||||
Each space has it's own quota, thus a storage driver implementation needs to consider that.
|
||||
|
||||
For GPFS for example, there is support for quota handling in the file system.
|
||||
|
||||
https://www.ibm.com/docs/en/gpfs/4.1.0.4?topic=interfaces-gpfs-quotactl-subroutine
|
||||
|
||||
Other systems store quota data in the metadata storage and implement propagation of used quota similar to the ETag propagation.
|
||||
|
||||
## User Management
|
||||
|
||||
With user management it is meant how to handle the users and groups within oCIS and how that reflects to the file system where data is stored.
|
||||
|
||||
### Exclusive Environment
|
||||
|
||||
In exclusive environments (aka. decomposedFS) all files of oCIS (ie. the entire oCIS filetree) belongs to a system user with the name `ocis` typically.
|
||||
|
||||
### Collaborative Storage
|
||||
|
||||
For collaborative storages, the approach described above does not longer work because users are supposed to be able to manipulate data in "their" file tree parts, and that is identified by ACLs and the owner of the files.
|
||||
|
||||
That requires a few prerequisites that have to be fulfilled:
|
||||
|
||||
1. oCIS as one "client" changing data and the system that allows to access the file tree directly have to use the same user provider, to ensure that each user that is available on a shell is also available in oCIS. That ensures that changes are authenticated through system ACLs and users. LDAP based authentication on the system via PAM and the same LDAP as source for the oCIS IDP should be a sufficient setup.
|
||||
2. oCIS must be able to write as a "different" user than the ocis system user. That means that we somehow have to impersonate file changing ooperations and run these as the user that is authenticated in oCIS.
|
||||
|
||||
Example: There is a user ben. It has to have an entry in the LDAP that is used by IDP which oCIS is running "behind". With that, ben is able to authenticate through the IDP and work in the oCIS web app. The oCIS linux process will do writes and other changes impersonated as user ben.
|
||||
|
||||
For the access of data on the commandline, the logins to the linux system must be authenticated against the same LDAP - so that ben can authenticate on a terminal using username and password. With that, the user can interactively change data that belongs to user ben (simplified said).
|
||||
|
||||
To give permissions to groups, the linux group management must work accordingly. The same is true for file permissions.
|
||||
|
||||
## Trashbin
|
||||
|
||||
When a user deletes a file in oCIS it is moved to a so called trashbin that allows to restore the file if the deletion was accidentailly.
|
||||
|
||||
## Versions
|
||||
|
||||
When an existing file is changed, the former file state is to be preserved with data and metadata by oCIS. Some file system types provide this functionality via snapshots on partition or even file level. Other do not and have to implement that via a hidden directory keeping old file versions.
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,202 +0,0 @@
|
||||
---
|
||||
title: "Efficient Stat Polling"
|
||||
date: 2020-03-03T10:31:00+01:00
|
||||
weight: 30
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/architecture
|
||||
geekdocFilePath: efficient-stat-polling.md
|
||||
---
|
||||
|
||||
The fallback sync mechanism uses the ETag to determine which part of a sync tree needs to be checked by recursively descending into folders whose ETag has changed. The ETag can be calculated using a `stat()` call in the filesystem and we are going to explore how many `stat()` calls are necessary and how the number might be reduced.
|
||||
|
||||
## ETag propagation
|
||||
|
||||
What does ETag propagation mean? Whenever a file changes its content or metadata the ETag or "entity tag" changes. In the early days of ownCloud it was decided to extend this behavior to folders as well, which is outside of any WebDAV RFC specification. Nevertheless, here we are, using the ETag to reflect changes, not only on WebDAV resources but also WebDAV collections. The server will propagate the ETag change up to the root of the tree.
|
||||
|
||||
{{<mermaid class="text-center">}}
|
||||
graph TD
|
||||
linkStyle default interpolate basis
|
||||
|
||||
subgraph final ETag propagation
|
||||
ert3(( etag:N )) --- el3(( etag:O )) & er3(( etag:N ))
|
||||
er3 --- erl3(( etag:O )) & err3(( etag:N ))
|
||||
end
|
||||
|
||||
subgraph first ETag propagation
|
||||
ert2(( etag:O )) --- el2(( etag:O )) & er2(( etag:N ))
|
||||
er2 --- erl2(( etag:O )) & err2(( etag:N ))
|
||||
end
|
||||
|
||||
subgraph initial file change
|
||||
ert(( etag:O )) --- el(( etag:O )) & er(( etag:O ))
|
||||
er --- erl(( etag:O )) & err(( etag:N ))
|
||||
end
|
||||
{{</mermaid>}}
|
||||
|
||||
The old `etag:O` is replaced by propagating the new `etag:N` up to the root, where the client will pick it up and explore the tree by comparing the old ETags known to him with the state of the current ETags on the server. This form of sync is called *state based sync*.
|
||||
|
||||
## Single user sync
|
||||
To let the client detect changes in the drive (a tree of files and folders) of a user, we rely on the ETag of every node in the tree. The discovery phase starts at the root of the tree and checks if the ETag has changed since the last discovery:
|
||||
- if it is still the same nothing has changed inside the tree
|
||||
- if it changed the client will compare the ETag of all immediate children and recursively descend into every node that changed
|
||||
|
||||
This works, because the server side will propagate ETag changes in the tree up to the root.
|
||||
|
||||
{{<mermaid class="text-center">}}
|
||||
graph TD
|
||||
linkStyle default interpolate basis
|
||||
|
||||
ec( client ) -->|"stat()"|ert
|
||||
|
||||
subgraph
|
||||
ert(( )) --- el(( )) & er(( ))
|
||||
er --- erl(( )) & err(( ))
|
||||
end
|
||||
{{</mermaid>}}
|
||||
|
||||
## Multiple users
|
||||
On an ocis server there is not one user but many. Each of them may have one or more clients running. In the worst case all of them polling the ETag of his home root node every 30 seconds.
|
||||
|
||||
Keep in mind that etags are only propagated inside each distinct tree. No sharing is considered yet.
|
||||
|
||||
{{<mermaid class="text-center">}}
|
||||
graph TD
|
||||
linkStyle default interpolate basis
|
||||
|
||||
ec( client ) -->|"stat()"|ert
|
||||
|
||||
subgraph
|
||||
ert(( )) --- el(( )) & er(( ))
|
||||
er --- erl(( )) & err(( ))
|
||||
end
|
||||
|
||||
mc( client ) -->|"stat()"|mrt
|
||||
|
||||
subgraph
|
||||
mrt(( )) --- ml(( )) & mr(( ))
|
||||
mr --- mrl(( )) & mrr(( ))
|
||||
end
|
||||
|
||||
fc( client ) -->|"stat()"|frt
|
||||
|
||||
subgraph
|
||||
frt(( )) --- fl(( )) & fr(( ))
|
||||
fr --- frl(( )) & frr(( ))
|
||||
end
|
||||
{{</mermaid>}}
|
||||
|
||||
## Sharing
|
||||
*Storage providers* are responsible for persisting shares as close to the storage as possible.
|
||||
|
||||
One implementation may persist shares using ACLs, another might use custom extended attributes. The chosen implementation is storage specific and always a tradeoff between various requirements. Yet, the goal is to treat the storage provider as the single source of truth for all metadata.
|
||||
|
||||
If users can bypass the storage provider using e.g. `ssh` additional mechanisms needs to make sure no inconsistencies arise:
|
||||
- the ETag must still be propagated in a tree, eg using inotify, a policy engine or workflows triggered by other means
|
||||
- deleted files should land in the trash (e.g. `rm` could be wrapped to move files to trash)
|
||||
- overwriting files should create a new version ... other than a fuse fs I see no way of providing this for normal posix filesystems. Other storage backends that use the s3 protocol might provide versions natively.
|
||||
|
||||
The storage provider is also responsible for keeps track of references e.g. using a shadow tree that users normally cannot see or representing them as symbolic links in the filesystem (Beware of symbolic link cycles. The clients are currently unaware of them and would flood the filesystem).
|
||||
|
||||
To prevent write amplification ETags must not propagate across references. When a file that was shared by einstein changes the ETag must not be propagated into any share recipients tree.
|
||||
|
||||
{{<mermaid class="text-center">}}
|
||||
graph TD
|
||||
linkStyle default interpolate basis
|
||||
|
||||
|
||||
ec( einsteins client ) -->|"stat()"|ert
|
||||
|
||||
subgraph
|
||||
ml --- mlr(( ))
|
||||
mrt(( )) --- ml(( )) & mr(( ))
|
||||
mr --- mrl(( )) & mrr(( ))
|
||||
end
|
||||
|
||||
mlr -. reference .-> er
|
||||
|
||||
subgraph
|
||||
ert(( )) --- el(( )) & er(( ))
|
||||
er --- erl(( )) & err(( ))
|
||||
end
|
||||
|
||||
mc( maries client ) -->|"stat()"|mrt
|
||||
|
||||
{{</mermaid>}}
|
||||
|
||||
But how can Marie's client detect the change?
|
||||
|
||||
We are trading writes for reads: the client needs to stat the own tree & all shares or entry points into other storage trees.
|
||||
|
||||
It would require client changes that depend on the server side actually having an endpoint that can efficiently list all entry points into storages a user has access to including their current etag.
|
||||
|
||||
But having to list n storages might become a bottleneck anyway, so we are going to have the gateway calculate a virtual root ETag for all entry points a user has access to and cache that.
|
||||
|
||||
## Server Side Stat Polling
|
||||
Every client polls the virtual root ETag (every 30 sec). The gateway will cache the virtual root ETag of every storage for 30 sec as well. That way every storage provider is only stated once every 30 sec (can be throttled dynamically to adapt to storage io load).
|
||||
|
||||
|
||||
{{<mermaid class="text-center">}}
|
||||
graph TD
|
||||
linkStyle default interpolate basis
|
||||
|
||||
ec( client ) -->|"stat()"|evr
|
||||
|
||||
subgraph gateway caching virtual etags
|
||||
evr(( ))
|
||||
mvr(( ))
|
||||
fvr(( ))
|
||||
end
|
||||
|
||||
evr --- ert
|
||||
mvr --- mrt
|
||||
fvr --- frt
|
||||
|
||||
subgraph
|
||||
ert(( )) --- el(( )) & er(( ))
|
||||
er --- erl(( )) & err(( ))
|
||||
end
|
||||
|
||||
mc( client ) -->|"stat()"|mvr
|
||||
|
||||
subgraph
|
||||
mrt(( )) --- ml(( )) & mr(( ))
|
||||
ml --- mlm(( ))
|
||||
mr --- mrl(( )) & mrr(( ))
|
||||
end
|
||||
|
||||
mlm -.- er
|
||||
mvr -.- er
|
||||
|
||||
fc( client ) -->|"stat()"|fvr
|
||||
|
||||
subgraph
|
||||
frt(( )) --- fl(( )) & fr(( ))
|
||||
fr --- frl(( )) & frr(( ))
|
||||
end
|
||||
|
||||
{{</mermaid>}}
|
||||
|
||||
Since the active clients will poll the etag for all active users the gateway will have their ETag cached. This is where sharing comes into play: The gateway also needs to stat the ETag of all other entry points ... or mount points. That may increase the number of stat like requests to storage providers by an order of magnitude.
|
||||
|
||||
### Ram considerations
|
||||
|
||||
For a single machine using a local posix storage the linux kernel already caches the inodes that contain the metadata that is necessary to calculate the ETag (even extended attributes are supported). With 4k inodes 256 nodes take 1Mb of RAM, 1k inodes take 4Mb and 1M inodes take 4Gb to completely cache the file metadata. For distributed filesystems a dedicated cache might make sense to prevent hammering it with stat like requests to calculate ETags.
|
||||
|
||||
### Bandwidth considerations
|
||||
|
||||
The bandwidth for a single machine might be another bottleneck. Consider a propfind request with roughly 500 bytes and a response with roughly 800 bytes in size:
|
||||
- At 100Mbit (~10Mb/s) you can receive 20 000 PROPFIND requests
|
||||
- At 1000Mbit (~100Mb/s) you can receive 200 000 PROPFIND requests
|
||||
- At 10Gbit (~1Gb/s) you can receive 2 000 000 PROPFIND requests
|
||||
|
||||
This can be scaled by adding more gateways and sharding users because these components are stateless.
|
||||
|
||||
## Share mount point polling cache
|
||||
What can we do to reduce the number of stat calls to storage providers. Well, the gateway queries the share manager for all mounted shares of a user (or all entry points, not only the users own root/home). The share references contain the storage provider that contains the share. If every user has its own storage provider id the gateway could check in its own cache if the storage root etag has changed. It will be up-to-date because another client likely already polled for its etag.
|
||||
This would reduce the number of necessary stat requests to active storages.
|
||||
|
||||
### Active share node cache invalidation
|
||||
We can extend the lifetime of share ETag cache entries and only invalidate them when the root of the storage that contains them changes its ETag. That would reduce the number of stat requests to the number of active users.
|
||||
|
||||
### Push notifications
|
||||
We can further enhance this by sending push notifications when the root of a storage changes. Which is becoming increasingly necessary for mobile devices anyway.
|
||||
@@ -1,207 +0,0 @@
|
||||
---
|
||||
title: "PosixFS Storage Driver"
|
||||
date: 2024-05-27T14:31:00+01:00
|
||||
weight: 30
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/architecture
|
||||
geekdocFilePath: posixfs-storage-driver.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
The Posix FS Storage Driver is a new storage driver for Infinite Scale.
|
||||
|
||||
The scope of this document is to give a high level overview to the technical aspects of the Posix FS Storage Driver and guide the setup.
|
||||
|
||||
## Introduction
|
||||
|
||||
The Posix FS Storage Driver is a backend component that manages files on the server utilizing a "real" file tree that represents the data with folders and files in the file system as users are used to it. That is the big difference compared to Decomposed FS which is the default storage driver in Infinite Scale.
|
||||
|
||||
This does not mean that Infinite Scale is trading any of its benefits to this new feature: It still implements simplicity by running without a database, it continues to store metadata in the file system and adds them transparently to caches and search indexes, and it also features the full spaces concept as before, just to name a few examples.
|
||||
|
||||
The architecture of Infinite Scale allows configuring different storage drivers for specific storage types and purposes on a space granularity. The Posix FS Storage Driver is an alternative to the default driver called Decomposed FS.
|
||||
|
||||
However, the clarity of the file structure in the underlying file system is not the only benefit of the Posix FS Storage Driver. This new technology allows users to manipulate the data directly in the file system, and any changes made to files outside of Infinite Scale are monitored and directly reflected in Infinite Scale. For example, a scanner could store its output directly to the Infinite Scale file system, which immediately gets picked up in Infinite Scale.
|
||||
|
||||
For the first time ever with feature rich open source file sync & share systems, users can either choose to work with their data through the clients of the system, its APIs or even directly in the underlying file system on the server.
|
||||
|
||||
That is another powerful vector for integration and enables a new spectrum of use cases across all domains.
|
||||
|
||||
## Technical Aspects
|
||||
|
||||
The Posix FS Storage Driver uses a few features of the underlying file system, which are mandatory and directly contributing to the performance of the system.
|
||||
|
||||
While the simplest form of Posix FS Storage Driver runs with default file systems of every modern Linux system which are directly mounted and thus support inotify, the full power of this unfolds with more capable file systems such as IBM Storage Scale or Ceph. These are recommended as reliable foundations for big installations of Infinite Scale.
|
||||
|
||||
This chapter describes some technical aspects of this storage driver.
|
||||
|
||||
### Path Locations
|
||||
|
||||
The file tree that is used as storage path for both data and metadata is located under the local path on the machine that is running Infinite Scale. That might either be a real local file system or a mounted net filesystem. It is expected that oCIS is the only consumer of that file tree, except what is expected behaviour with a collaborative file system, that works with files in that tree.
|
||||
|
||||
Underneath the Infinite Scale file system root, there is a collection of different folders containing Infinite Scale specific data storing personal spaces, project spaces and indexes.
|
||||
|
||||
### Metadata
|
||||
|
||||
Infinite Scale is highly dependent on the efficient usage of meta data which are attached to file resources, but also logical elements such as spaces.
|
||||
|
||||
Metadata is stored in extended attributes (as also supported by decompsed FS) which poses the benefit that metadata is always directly attached to the actual resources. As a result, care has to be taken that extended attributes are considered when working with the file tree however, e.g. when creating or restoring backups.
|
||||
|
||||
Note: The maximum number and size of extended attributes are limited depending on the filesystem and block size. See [GPFS Specifics](#gpfs-specifics) for more details on GPFS file systems.
|
||||
|
||||
All indexing and caching of metadata is implemented in higher system levels than the storage driver, and thus are not different to the components used with other storage drivers like the decomposed FS.
|
||||
|
||||
### Monitoring
|
||||
|
||||
To get information about changes such as new files added, files edited or removed, Infinite Scale uses a monitoring system to directly watch the file system. This starts with the Linux inotify system and ranges to much more sophisticated services as for example in Spectrum Scale (see [GPFS Specifics](#gpfs-specifics) for more details on GPFS file systems).
|
||||
|
||||
Based on the information transmitted by the watching service, Infinite Scale is able to "register" new or changed files into its own caches and internal management structures. This enables Infinite Scale to deliver resource changes through the "traditional" channels such as APIs and clients.
|
||||
|
||||
Since the most important metadata is the file tree structure itself, it is impossible for the "split brain" situation between data and metadata to cause trouble.
|
||||
|
||||
### Automatic ETag Propagation
|
||||
|
||||
The ETag of a resource can be understood as a content fingerprint of any file- or folder resource in Infinite Scale. It is mainly used by clients to detect changes of resources. The rule is, that if the content of a file changed the ETag has to change as well, as well as the ETag of all parent folders up to the root of the space.
|
||||
|
||||
Infinite Scale uses a built in mechanism to maintain the ETag for each resource in the file meta data, and also propagates it automatically.
|
||||
|
||||
A sophisticated underlying file system could provide an attribute that fulfills this requirement and changes whenever content or metadata of a resource changes, and - which is most important - also changes the attribute of the parent resource and the parent of the parent etc.
|
||||
|
||||
### Automatic Tree Size Propagation
|
||||
|
||||
Similar to the ETag propagation described before, Infinite Scale also tracks the accumulated tree size in all nodes of the file tree. A change to any file requires a re-calculation of the size attribute in all parent folders.
|
||||
|
||||
Infinite Scale would benefit from file systems with native tree size propagation.
|
||||
|
||||
### Quota
|
||||
|
||||
Each space has it's own quota, thus every storage driver implementation needs to consider that.
|
||||
|
||||
For example, IBM Spectrum Scale supports quota handling directly in the file system.
|
||||
|
||||
Other systems store quota data in the metadata storage and implement propagation of used quota similar to the tree size propagation.
|
||||
|
||||
### File ID Resolution
|
||||
|
||||
Infinite Scale uses an ID based approach to work with resources, rather than a file path based mechanism. The reason for that is, that ID based lookups can be done way more efficiently compared to tree traversals, just to name one reason.
|
||||
|
||||
The most important component of the ID is a unique file ID that identifies the resource within a space. Ideally the Inode of a file could be used here. However, some file systems re-use inodes which must be avoided. Infinite Scale thus does not use the file Inode, but generates a UUID instead.
|
||||
|
||||
ID based lookups utilize an ID cache which needs to be shared between all storageprovider and dataprovider instances. During startup a scan of the whole file tree is performed to detect and cache new entities.
|
||||
|
||||
In the future a powerful underlying file system could support Infinite Scale by providing an API that
|
||||
|
||||
1. Provides the ID for a given file path referenced resource
|
||||
2. Provides the path for a given ID.
|
||||
|
||||
These two operations are very crucial for the performance of the entire system.
|
||||
|
||||
### User Management
|
||||
|
||||
With the requirement that data can be manipulated either through the filesystem or the Infinite Scale system, the question under which UID the manipulation happens is important.
|
||||
|
||||
There are a few possible ways for user management:
|
||||
1. Changes can either be only accepted by the same user that Infinite Scale is running under, for example the user `ocis`. All manipulations in the filesystem have to be done by, and only by this user.
|
||||
2. Group based: All users who should be able to manipulate files have to be in a unix group. The Infinite Scale user has also to be member of that group. The default umask in the directory used has to allow group writing all over the place.
|
||||
3. Impersonation: Infinite Scale impersonates the user who owns the folder on the file system to mimic the access as the user.
|
||||
|
||||
All possibilities have pros and cons for operations.
|
||||
|
||||
One for all, it seems reasonable to use LDAP to manage users which is the base for the Infinite Scale IDP as well as the system login system via PAM.
|
||||
|
||||
### GID Based Space Access
|
||||
|
||||
The Posix FS Storage Driver supports GID based space access to support the problem that project spaces might have to be accessible by multiple users on disk. In order to enable this feature the `ocis` binary needs to have the `setgid` capability and `STORAGE_USERS_POSIX_USE_SPACE_GROUPS` needs to be set to `true`. Inifinite Scale will then use the space GID (the gid of the space root) for all file system access using the `setfsgid` syscall, i.e. all files and directories created by Infinite Scale will belong to the same group as the space root.
|
||||
|
||||
## Advanced Features
|
||||
|
||||
Depending on the capabilities of the underlying file system, the Posix FS Storage Driver can benefit from more advanced functionality described here.
|
||||
|
||||
### Versioning
|
||||
|
||||
If the underlying file system is able to create versions of single resources (imagine a git based file system) this functionality could directly be used by Infinite Scale.
|
||||
|
||||
In the current state of the Posix FS Storage Driver, versioning is not supported.
|
||||
|
||||
### Trashbin
|
||||
|
||||
If the underlying file system handles deleted files in a trash bin that allows restoring of previously removed files, this functionality could directly be used by Infinite Scale.
|
||||
|
||||
If not available it will follow the [the Free Desktop Trash specificaton](https://specifications.freedesktop.org/trash-spec/trashspec-latest.html).
|
||||
|
||||
## Limitations
|
||||
|
||||
As of Q2/2024 the Posix FS Storage Driver is not officially supported and in technical preview state.
|
||||
|
||||
The tech preview comes with the following limitations:
|
||||
|
||||
1. Only inotify and GPFS file system change notification methods are supported
|
||||
1. Versioning is not supported yet
|
||||
1. The space/project folders in the filesystem are named after the UUID, not the real space name
|
||||
1. No CephFS support yet
|
||||
1. Postprocessing (ie. anti virus check) does not happen for file actions outside of Infinite Scale
|
||||
|
||||
## Setup
|
||||
|
||||
This describes the steps to use the Posix FS Storage Driver storage driver with Infinite Scale.
|
||||
|
||||
It is possible to use different storage drivers in the same Infinite Scale installation. For example it is possible to set up one space running on Posix FS Storage Driver while others run Decomposed FS.
|
||||
|
||||
### Prerequisites
|
||||
|
||||
To use the Posix FS Storage Driver, the following prerequisites have to be fulfilled:
|
||||
|
||||
1. There must be storage available to store meta data and blobs, available under a root path.
|
||||
1. When using inotify, the storage must be local on the same machine. Network mounts do not work with inotify. `inotifywait` needs to be installed.
|
||||
1. The storage root path must be writeable and executable by the same user Infinite Scale is running under.
|
||||
1. An appropiate version of Infinite Scale is installed, version number 5.0.5 and later.
|
||||
1. `nats-js-kv` as cache service
|
||||
|
||||
|
||||
### Setup Configuration
|
||||
|
||||
This is an example configuration with environment variables that configures Infinite Scale to use Posix FS Storage Driver for all spaces it works with, ie. Personal and Project Spaces:
|
||||
|
||||
```
|
||||
export STORAGE_USERS_DRIVER="posix"
|
||||
export STORAGE_USERS_POSIX_ROOT="/home/kf/tmp/posix-storage"
|
||||
export STORAGE_USERS_POSIX_WATCH_TYPE="inotifywait"
|
||||
export STORAGE_USERS_ID_CACHE_STORE="nats-js-kv"
|
||||
export STORAGE_USERS_ID_CACHE_STORE_NODES="localhost:9233"
|
||||
|
||||
# Optionally enable gid based space access
|
||||
export STORAGE_USERS_POSIX_USE_SPACE_GROUPS="true"
|
||||
```
|
||||
|
||||
## GPFS Specifics
|
||||
|
||||
When using GPFS as the underlying filesystem the machine running the according `storage-users` service needs to have the GPFS filesystem mounted locally. The mount path is given to ocis as the `STORAGE_USERS_POSIX_ROOT` path.
|
||||
|
||||
Other than that there a few other points to consider:
|
||||
|
||||
### Extended Attributes
|
||||
|
||||
As described above metadata is stored as extended attributes of the according entities and thus is suspect to their limitations. In GPFS extended attributes are first stored in the inode itself but can then also use an overflow block which is at least 64KB and up to the metadata block size. Inode and metadata block size should be chosen accordingly.
|
||||
|
||||
### FS Watcher
|
||||
|
||||
The Posix FS Storage Driver supports two different watchers for detecting changes to the filesystem. The watchfolder watcher is better tested and supported at that point.
|
||||
|
||||
#### GPFS File Audit Logging
|
||||
|
||||
The `gpfsfileauditlogging` watcher tails a GPFS file audit log and parses the JSON events to detect relevant changes.
|
||||
|
||||
```
|
||||
export STORAGE_USERS_POSIX_WATCH_TYPE="gpfsfileauditlogging"
|
||||
export STORAGE_USERS_POSIX_WATCH_PATH="/path/to/current/audit/log"
|
||||
```
|
||||
|
||||
#### GPFS Watchfolder
|
||||
|
||||
The `gpfswatchfolder` watcher connects to a kafka cluster which is being filled with filesystem events by the GPFS watchfolder service.
|
||||
|
||||
```
|
||||
export STORAGE_USERS_POSIX_WATCH_TYPE="gpfswatchfolder"
|
||||
export STORAGE_USERS_POSIX_WATCH_PATH="fs1_audit" # the kafka topic to watch
|
||||
export STORAGE_USERS_POSIX_WATCH_FOLDER_KAFKA_BROKERS="192.168.1.180:29092"
|
||||
```
|
||||
@@ -1,200 +0,0 @@
|
||||
---
|
||||
title: "Protocol changes"
|
||||
date: 2022-05-17T08:46:00+01:00
|
||||
weight: 30
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/architecture
|
||||
geekdocFilePath: protocol-changes.md
|
||||
---
|
||||
|
||||
The spaces concept allows clients to look up the space endpoints a user has access to and then do individual sync discoveries. Technically, we introduce an indirection that allows clients to rely on server provided URLs instead of hardcoded `/webdav` or `/dav/files/{username}` paths, that may change over time.
|
||||
|
||||
## Space discovery
|
||||
|
||||
{{<mermaid class="text-center">}}
|
||||
%%{init: {"sequence": { "showSequenceNumbers":true, "messageFontFamily":"courier", "messageFontWeight":"normal", "messageFontSize":"11"}}}%%
|
||||
%% font weight is a css bug: https://github.com/mermaid-js/mermaid/issues/1976
|
||||
%% edit this diagram by pasting it into eg. https://mermaid.live
|
||||
sequenceDiagram
|
||||
participant Client
|
||||
participant Graph
|
||||
participant SpaceA
|
||||
participant SpaceB
|
||||
links Client: {"web": "https://owncloud.dev/clients/web/", "RClone": "https://owncloud.dev/clients/rclone/"}
|
||||
link Graph: Documentation @ https://owncloud.dev/extensions/graph/
|
||||
|
||||
Note left of Client: First, a clients looks<br/>up the spaces a user has access to
|
||||
opt space lookup
|
||||
Client->>+Graph: GET /me/drives
|
||||
Graph-->>-Client: 200 OK JSON list of spaces, say A, B and C,<br/> each with a dedicated webDavURL, etag and quota
|
||||
end
|
||||
|
||||
Note left of Client: Then it can do a parallel<br/>sync discovery on spaces<br/>whose etag changed
|
||||
par Client to Space A
|
||||
Client->>+SpaceA: PROPFIND {webDavURL for Space A}
|
||||
SpaceA-->>-Client: 207 Multistatus PROPFIND response
|
||||
and Client to Space B
|
||||
Client->>+SpaceB: PROPFIND {webDavURL for space B}
|
||||
SpaceB-->>-Client: 207 Multistatus PROPFIND response
|
||||
end
|
||||
{{</mermaid>}}
|
||||
|
||||
### New /dav/spaces/{spaceid} endpoint with spaceid and a relative path
|
||||
|
||||
The ocDAV service is responsible for translating ownCloud flavoured WebDAV into CS3 API calls.
|
||||
|
||||
**General view**
|
||||
|
||||
A PROPFIND finds its way to a storage provider like this:
|
||||
|
||||
{{<mermaid class="text-center">}}
|
||||
%%{init: {"sequence": { "showSequenceNumbers":true, "messageFontFamily":"courier", "messageFontWeight":"normal", "messageFontSize":"11"}}}%%
|
||||
%% font weight is a css bug: https://github.com/mermaid-js/mermaid/issues/1976
|
||||
%% edit this diagram by pasting it into eg. https://mermaid.live
|
||||
sequenceDiagram
|
||||
participant Client
|
||||
participant ocDAV
|
||||
participant StorageProvider
|
||||
|
||||
Note right of Client: {spaceid} identifies the space<br>{relative/path} is relative to the space root
|
||||
Client->>+ocDAV: PROPFIND /dav/space/{spaceid}/{relative/path}
|
||||
Note right of ocDAV: translate ownCloud flavoured webdav<br>into CS3 API requests
|
||||
ocDAV->>+StorageProvider: ListContainer({spaceid}, path: {relative/path})
|
||||
StorageProvider-->>-ocDAV: []ResourceInfo
|
||||
ocDAV-->>-Client: 207 Multistatus
|
||||
{{</mermaid>}}
|
||||
|
||||
While the above is a simplification to get an understanding of what needs to go where, there are several places where sharding can happen.
|
||||
|
||||
**Proxy can do user based routing**
|
||||
|
||||
The ocis proxy authenticates requests and can forward requests to different backends, depending on the logged-in user or cookies. For example multiple ocdav services can be configured to shard users based on username or affiliation.
|
||||
|
||||
{{<mermaid class="text-center">}}
|
||||
%%{init: {"sequence": { "showSequenceNumbers":true, "messageFontFamily":"courier", "messageFontWeight":"normal", "messageFontSize":"11"}}}%%
|
||||
%% font weight is a css bug: https://github.com/mermaid-js/mermaid/issues/1976
|
||||
%% edit this diagram by pasting it into eg. https://mermaid.live
|
||||
sequenceDiagram
|
||||
participant Client
|
||||
participant proxy
|
||||
participant ocDAV1 as ocDAV [a-k]
|
||||
participant ocDAV2 as ocDAV [l-z]
|
||||
|
||||
Note right of Client: {spaceid} identifies the space<br>{relative/path} is relative to the space root
|
||||
Client->>+proxy: PROPFIND /dav/space/{spaceid}/{relative/path}
|
||||
|
||||
alt username starting with a-k
|
||||
proxy->>+ocDAV1: PROPFIND /dav/space/{spaceid}/{relative/path}
|
||||
Note right of ocDAV1: translate ownCloud flavoured webdav<br>into CS3 API requests
|
||||
ocDAV1-->>-Client: 207 Multistatus
|
||||
else username starting with l-z
|
||||
proxy->>+ocDAV2: PROPFIND /dav/space/{spaceid}/{relative/path}
|
||||
ocDAV2-->>-Client: 207 Multistatus
|
||||
end
|
||||
{{</mermaid>}}
|
||||
|
||||
**Gateway can do path or storage provider id based routing**
|
||||
|
||||
The reva gateway acts as a facade to multiple storage providers that can be configured with the storage registry:
|
||||
|
||||
{{<mermaid class="text-center">}}
|
||||
%%{init: {"sequence": { "showSequenceNumbers":true, "messageFontFamily":"courier", "messageFontWeight":"normal", "messageFontSize":"11"}}}%%
|
||||
%% font weight is a css bug: https://github.com/mermaid-js/mermaid/issues/1976
|
||||
%% edit this diagram by pasting it into eg. https://mermaid.live
|
||||
sequenceDiagram
|
||||
participant ocDAV
|
||||
participant Gateway
|
||||
participant StorageRegistry
|
||||
participant StorageProvider1 as StorageProvider [a-k]
|
||||
participant StorageProvider2 as StorageProvider [l-z]
|
||||
|
||||
Note right of ocDAV: translate ownCloud flavoured webdav<br>into CS3 API requests
|
||||
ocDAV->>+Gateway: ListContainer({spaceid}, path: {relative/path})
|
||||
Note right of Gateway: find address of the storage provider<br>that is responsible for the space
|
||||
Gateway->>+StorageRegistry: ListStorageProviders({spaceid})
|
||||
StorageRegistry-->>-Gateway: []ProviderInfo
|
||||
Note right of Gateway: forward request to<br>correct storage provider
|
||||
alt username starting with a-k
|
||||
Gateway->>+StorageProvider1: ListContainer({spaceid}, path: {relative/path})
|
||||
StorageProvider1-->>-Gateway: []ResourceInfo
|
||||
else username starting with l-z
|
||||
Gateway->>+StorageProvider2: ListContainer({spaceid}, path: {relative/path})
|
||||
StorageProvider2-->>-Gateway: []ResourceInfo
|
||||
end
|
||||
Gateway-->>-ocDAV: []ResourceInfo
|
||||
{{</mermaid>}}
|
||||
|
||||
|
||||
### Old /dav/files/{username} endpoint with username and a path relative to the users home
|
||||
|
||||
**PROPFIND request against old webdav endpoints**
|
||||
|
||||
To route a PROPFIND request against the old webdav endpoints like `/dav/files/username`, ocdav first has to build a CS3 namespace prefix, e.g. `/users/{{.Id.OpaqueId}}` to the users home.
|
||||
|
||||
{{<mermaid class="text-center">}}
|
||||
%%{init: {"sequence": { "showSequenceNumbers":true, "messageFontFamily":"courier", "messageFontWeight":"normal", "messageFontSize":"11"}}}%%
|
||||
%% font weight is a css bug: https://github.com/mermaid-js/mermaid/issues/1976
|
||||
%% edit this diagram by pasting it into eg. https://mermaid.live
|
||||
sequenceDiagram
|
||||
participant Client
|
||||
participant ocDAV
|
||||
participant Gateway
|
||||
|
||||
opt old /dav/files/{username} endpoint with username and a path relative to the users home
|
||||
Note right of Client: translate ownCloud flavoured webdav<br>into CS3 API requests
|
||||
Client->>+ocDAV: PROPFIND /dav/files/{username}/{relative/path}
|
||||
Note right of ocDAV: translate ownCloud flavoured webdav<br>into CS3 API requests
|
||||
ocDAV->>+Gateway: GetUser({username})
|
||||
Gateway-->>-ocDAV: User
|
||||
Note right of ocDAV: build path prefix to user home
|
||||
ocDAV->>+ocDAV: {namespace/prefix} = ApplyLayout({path layout}, User), eg. /users/e/einstein
|
||||
Note right of ocDAV: look up the space responsible for a path
|
||||
ocDAV->>+Gateway: ListStorageSpaces(path: {namespace/prefix}/{relative/path})
|
||||
Gateway-->>-ocDAV: []StorageSpace
|
||||
Note right of ocDAV: make actual request with space and relative path
|
||||
ocDAV->>+Gateway: ListContainer({spaceid}, path: {relative/path})
|
||||
Gateway-->>-ocDAV: []ResourceInfo
|
||||
ocDAV-->>-Client: 207 Multistatus
|
||||
end
|
||||
{{</mermaid>}}
|
||||
|
||||
**Handling legacy global namespace webdav endpoints**
|
||||
|
||||
The reason ocis uses a path based lookup instead of looking up the current users home using the user id and a space type filter is, because there are deployments that use a global namespace at the legacy `/webdav` endpoint. To support these use cases, the gateway allows looking up spaces using their mount path.
|
||||
|
||||
{{<mermaid class="text-center">}}
|
||||
%%{init: {"sequence": { "showSequenceNumbers":true, "messageFontFamily":"courier", "messageFontWeight":"normal", "messageFontSize":"11"}}}%%
|
||||
%% font weight is a css bug: https://github.com/mermaid-js/mermaid/issues/1976
|
||||
%% edit this diagram by pasting it into eg. https://mermaid.live
|
||||
sequenceDiagram
|
||||
participant Client
|
||||
participant ocDAV
|
||||
participant Gateway
|
||||
|
||||
Note right of Client: translate ownCloud flavoured webdav<br>into CS3 API requests
|
||||
alt old /dav/files/{username} endpoint with username and a path relative to the users home
|
||||
Client->>+ocDAV: PROPFIND /dav/files/{username}/{relative/path}
|
||||
Note right of ocDAV: look up {username} in URL path
|
||||
ocDAV->>+Gateway: GetUser({username})
|
||||
Gateway-->>-ocDAV: User
|
||||
Note right of ocDAV:build namespace prefix to user home
|
||||
ocDAV->>+ocDAV: {namespace/prefix} = ApplyLayout({namespace layout}, User), eg. /users/e/einstein
|
||||
else legacy /webdav/ endpoint with a path relative to the users home
|
||||
Client->>+ocDAV: PROPFIND /webdav/{relative/path}
|
||||
Note right of ocDAV: use currently logged in user
|
||||
ocDAV->>+ocDAV: ContextGetUser()
|
||||
Note right of ocDAV: build namespace prefix to user home
|
||||
ocDAV->>+ocDAV: {namespace/prefix} = ApplyLayout({namespace layout}, User), eg. /users/e/einstein
|
||||
else legacy /webdav/ endpoint with a path relative to a global namespace
|
||||
Client->>+ocDAV: PROPFIND /webdav/{relative/path}
|
||||
Note right of ocDAV: omit namespace prefix by using empty layout template
|
||||
ocDAV->>+ocDAV: {namespace/prefix} = ApplyLayout("/", u), always returns "/"
|
||||
end
|
||||
Note right of ocDAV: look up the space responsible for a path
|
||||
ocDAV->>+Gateway: ListStorageSpaces(path: {namespace/prefix}/{relative/path})
|
||||
Gateway-->>-ocDAV: []StorageSpace
|
||||
Note right of ocDAV: make actual request with space and relative path
|
||||
ocDAV->>+Gateway: ListContainer({spaceid}, path: {relative/path})
|
||||
Gateway-->>-ocDAV: []ResourceInfo
|
||||
ocDAV-->>-Client: 207 Multistatus
|
||||
{{</mermaid>}}
|
||||
@@ -1,10 +0,0 @@
|
||||
---
|
||||
title: "Services Communication"
|
||||
date: 2022-02-15T11:26:00+01:00
|
||||
weight: 30
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/architecture
|
||||
geekdocFilePath: services-communication.md
|
||||
---
|
||||
|
||||
{{< figure src="/ocis/static/ocis-services-communication.drawio.svg" >}}
|
||||
@@ -1,133 +0,0 @@
|
||||
---
|
||||
title: "Upload processing"
|
||||
date: 2022-07-06T12:47:00+01:00
|
||||
weight: 30
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/architecture
|
||||
geekdocFilePath: upload-processing.md
|
||||
---
|
||||
|
||||
Uploads are handled by a dedicated service that uses TUS.io for resumable uploads. When all bytes have been transferred the upload is finalized by making the file available in file listings and for download.
|
||||
|
||||
The finalization may be asynchronous when mandatory workflow steps are involved.
|
||||
|
||||
## Legacy PUT upload
|
||||
|
||||
{{<mermaid class="text-center">}}
|
||||
|
||||
%%{init: {"sequence": { "showSequenceNumbers":true, "messageFontFamily":"courier", "messageFontWeight":"normal", "messageFontSize":"11"}}}%%
|
||||
%% font weight is a css bug: https://github.com/mermaid-js/mermaid/issues/1976
|
||||
%% edit this diagram by pasting it into eg. https://mermaid.live
|
||||
sequenceDiagram
|
||||
participant Client
|
||||
participant ocdav
|
||||
participant storageprovider
|
||||
participant dataprovider
|
||||
|
||||
Client->>+ocdav: PUT /dav/spaces/{spaceid}/newfile.bin
|
||||
ocdav->>+storageprovider: InitiateFileUpload
|
||||
storageprovider-->>-ocdav: OK, Protocol simple, UploadEndpoint: /data, Token: {jwt}
|
||||
Note right of ocdav: The {jwt} contains the internal actual target, eg.: http://localhost:9158/data/simple/91cc9882-db71-4b37-b694-a522850fcee1
|
||||
ocdav->>+dataprovider: PUT /data
|
||||
Note right of dataprovider: X-Reva-Transfer: {jwt}
|
||||
dataprovider-->>-ocdav: 201 Created
|
||||
ocdav-->>-Client: 201 Created
|
||||
|
||||
{{</mermaid>}}
|
||||
|
||||
## TUS upload
|
||||
|
||||
{{<mermaid class="text-center">}}
|
||||
|
||||
%%{init: {"sequence": { "showSequenceNumbers":true, "messageFontFamily":"courier", "messageFontWeight":"normal", "messageFontSize":"11"}}}%%
|
||||
%% font weight is a css bug: https://github.com/mermaid-js/mermaid/issues/1976
|
||||
%% edit this diagram by pasting it into eg. https://mermaid.live
|
||||
sequenceDiagram
|
||||
participant Client
|
||||
participant ocdav
|
||||
participant storageprovider
|
||||
participant datagateway
|
||||
participant dataprovider
|
||||
|
||||
Client->>+ocdav: POST /dav/spaces/{spaceid}\nUpload-Metadata: {base64 encoded filename etc}\nTUS-Resumable: 1.0.0
|
||||
ocdav->>+storageprovider: InitiateFileUpload
|
||||
storageprovider-->>-ocdav: OK, Protocol tus, UploadEndpoint: /data, Token: {jwt}
|
||||
Note right of ocdav: The {jwt} contains the internal actual target, eg.:\nhttp://localhost:9158/data/tus/24d893f5-b942-4bc7-9fb0-28f49f980160
|
||||
ocdav-->>-Client: 201 Created\nLocation: /data/{jwt}\nTUS-Resumable: 1.0.0
|
||||
|
||||
Client->>+datagateway: PATCH /data/{jwt}\nTUS-Resumable: 1.0.0\nUpload-Offset: 0
|
||||
Note over datagateway: unwrap the {jwt} target
|
||||
datagateway->>+dataprovider: PATCH /data/tus/24d893f5-b942-4bc7-9fb0-28f49f980160\nX-Reva-Transfer: {jwt}
|
||||
Note over dataprovider: storage driver\nhandles request
|
||||
dataprovider-->>-datagateway: 204 No Content\nTUS-Resumable: 1.0.0\nUpload-Offset: 363976
|
||||
datagateway-->>-Client: 204 No Content\nTUS-Resumable: 1.0.0\nUpload-Offset: 363976
|
||||
|
||||
{{</mermaid>}}
|
||||
|
||||
|
||||
## TUS upload with async postprocessing
|
||||
|
||||
|
||||
|
||||
{{<mermaid class="text-center">}}
|
||||
|
||||
%%{init: {"sequence": { "showSequenceNumbers":true, "messageFontFamily":"courier", "messageFontWeight":"normal", "messageFontSize":"11"}}}%%
|
||||
%% font weight is a css bug: https://github.com/mermaid-js/mermaid/issues/1976
|
||||
%% edit this diagram by pasting it into eg. https://mermaid.live
|
||||
sequenceDiagram
|
||||
participant Client
|
||||
participant ocdav
|
||||
participant storageprovider
|
||||
participant datagateway
|
||||
participant dataprovider
|
||||
participant nats
|
||||
participant processing
|
||||
|
||||
Client->>+ocdav: POST /dav/spaces/{spaceid}
|
||||
Note left of Client: Upload-Metadata: {base64 encoded filename etc}\nTUS-Resumable: 1.0.0
|
||||
ocdav->>+storageprovider: InitiateFileUpload
|
||||
storageprovider-->>-ocdav: OK, Protocol tus, UploadEndpoint: /data, Token: {jwt}
|
||||
Note right of ocdav: The {jwt} contains the internal actual target, eg.: http://localhost:9158/data/tus/24d893f5-b942-4bc7-9fb0-28f49f980160
|
||||
ocdav-->>-Client: 201 Created
|
||||
Note right of Client: Location: /data/{jwt}
|
||||
Note right of Client: TUS-Resumable: 1.0.0
|
||||
|
||||
Client->>+datagateway: PATCH /data/{jwt}
|
||||
Note right of datagateway: TUS-Resumable: 1.0.0\nUpload-Offset: 0
|
||||
|
||||
Note over datagateway: unwrap the {jwt} target
|
||||
datagateway->>+dataprovider: PATCH /data/tus/24d893f5-b942-4bc7-9fb0-28f49f980160
|
||||
Note over dataprovider: X-Reva-Transfer: {jwt}
|
||||
Note over dataprovider: storage driver
|
||||
Note over dataprovider: handles request
|
||||
dataprovider-)nats: emit all-bytes-received event
|
||||
nats-)processing: all-bytes-received({uploadid}) event
|
||||
Note over dataprovider: TODO: A lot of time may pass here, we could use the `Prefer: respond-async` header to return early with a 202 Accepted status and a Location header to a websocket endpoint
|
||||
alt success
|
||||
processing-)nats: emit processing-finished({uploadid}) event
|
||||
nats-)dataprovider: processing-finished({uploadid}) event
|
||||
dataprovider-->>-datagateway: 204 No Content
|
||||
Note over datagateway: TUS-Resumable: 1.0.0\nUpload-Offset: 363976
|
||||
datagateway-->>-Client: 204 No Content
|
||||
Note over Client: TUS-Resumable: 1.0.0\nUpload-Offset: 363976
|
||||
else failure
|
||||
activate dataprovider
|
||||
activate datagateway
|
||||
processing-)nats: emit processing-aborted({uploadid}) event
|
||||
nats-)dataprovider: processing-aborted({uploadid}) event
|
||||
Note over dataprovider: FIXME: What HTTP status code should we report?
|
||||
Note over dataprovider: 422 Unprocessable Content is just a proposal
|
||||
Note over dataprovider: see https://httpwg.org/specs/rfc9110.html#status.422
|
||||
dataprovider-->>-datagateway: 422 Unprocessable Content
|
||||
Note over datagateway: TUS-Resumable: 1.0.0\nUpload-Offset: 363976
|
||||
datagateway-->>-Client: 422 Unprocessable Content
|
||||
Note over Client: TUS-Resumable: 1.0.0\nUpload-Offset: 363976
|
||||
end
|
||||
|
||||
{{</mermaid>}}
|
||||
|
||||
|
||||
## Async TUS upload with postprocessing
|
||||
This might be a TUS extension or a misunderstanding on our side of what tus can do for us. Clients should send a `Prefer: respond-async` header to allow the server to return early when postprocessing might take longer. The PATCH requests can then return status `202 Accepted` and a `Location` header to a websocket that clients can use to track the processing / upload progress.
|
||||
|
||||
TODO there is a conflict with the TUS.io POST request with the creation extension, as that also returns a `Location` header which carries the upload URL. We would need another header to transport the websocket location. Maybe `Websocket-Location` or `Progress-Location`?
|
||||
@@ -0,0 +1,53 @@
|
||||
{{ $allVersions := . }}
|
||||
{{- range $index, $changes := . }}{{ with $changes -}}
|
||||
{{ if gt (len $allVersions) 1 -}}
|
||||
# Changelog for [{{ .Version }}] ({{ .Date }})
|
||||
|
||||
The following sections list the changes for {{ .Version }}.
|
||||
|
||||
{{/* creating version compare links */ -}}
|
||||
{{ $next := add1 $index -}}
|
||||
{{ if ne (len $allVersions) $next -}}
|
||||
{{ $previousVersion := (index $allVersions $next).Version -}}
|
||||
{{ if eq .Version "unreleased" -}}
|
||||
[{{ .Version }}]: https://github.com/owncloud/ocis/compare/v{{ $previousVersion }}...master
|
||||
|
||||
{{ else -}}
|
||||
[{{ .Version }}]: https://github.com/owncloud/ocis/compare/v{{ $previousVersion }}...v{{ .Version }}
|
||||
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
|
||||
{{- /* last version managed by calens, end of the loop */ -}}
|
||||
{{ if eq .Version "0.1.0" -}}
|
||||
[{{ .Version }}]: https://github.com/owncloud/ocis/compare/94f19e653e30cdf16dcf23dbaf36c6d753d37ae9...v{{ .Version }}
|
||||
|
||||
{{ end -}}
|
||||
{{ else -}}
|
||||
# Changes in {{ .Version }}
|
||||
|
||||
{{ end -}}
|
||||
|
||||
## Summary
|
||||
{{ range $entry := .Entries }}{{ with $entry }}
|
||||
* {{ .Type }} - {{ .Title }}: [#{{ .PrimaryID }}]({{ .PrimaryURL }})
|
||||
{{- end }}{{ end }}
|
||||
|
||||
## Details
|
||||
{{ range $entry := .Entries }}{{ with $entry }}
|
||||
* {{ .Type }} - {{ .Title }}: [#{{ .PrimaryID }}]({{ .PrimaryURL }})
|
||||
{{ range $par := .Paragraphs }}
|
||||
{{ wrapIndent $par 80 3 }}
|
||||
{{ end -}}
|
||||
{{ range $url := .IssueURLs }}
|
||||
{{ $url -}}
|
||||
{{ end -}}
|
||||
{{ range $url := .PRURLs }}
|
||||
{{ $url -}}
|
||||
{{ end -}}
|
||||
{{ range $url := .OtherURLs }}
|
||||
{{ $url -}}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}{{ end -}}
|
||||
{{ end }}{{ end -}}
|
||||
@@ -0,0 +1,6 @@
|
||||
# Changelog
|
||||
|
||||
We are using [calens](https://github.com/restic/calens) to properly generate a
|
||||
changelog before we are tagging a new release. To get an idea how this could
|
||||
look like <https://github.com/restic/restic/tree/master/changelog> would be the
|
||||
best reference.
|
||||
@@ -0,0 +1,11 @@
|
||||
Bugfix: Fix behavior for foobar (in present tense)
|
||||
|
||||
We've fixed the behavior for foobar, a long-standing annoyance for users. The
|
||||
text should be wrapped at 80 characters length.
|
||||
|
||||
The text in the paragraphs is written in past tense. The last section is a list
|
||||
of issue URLs, PR URLs and other URLs. The first issue ID (or the first PR ID,
|
||||
in case there aren't any issue links) is used as the primary ID.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/1234
|
||||
https://github.com/owncloud/ocis/pull/55555
|
||||
Whitespace-only changes.
@@ -0,0 +1,5 @@
|
||||
Enhancement: Document how to run OCIS on top of EOS
|
||||
|
||||
We have added rules to the Makefile that use the official [eos docker images](https://gitlab.cern.ch/eos/eos-docker) to boot an eos cluster and configure OCIS to use it.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/172
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: add missing env vars to docker compose
|
||||
|
||||
Without setting `REVA_FRONTEND_URL` and `REVA_DATAGATEWAY_URL` uploads would default to locahost and fail if `OCIS_DOMAIN` was used to run ocis on a remote host.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/392
|
||||
@@ -0,0 +1,5 @@
|
||||
Change: add the thumbnails command
|
||||
|
||||
Added the thumbnails command so that the thumbnails service can get started via ocis.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/156
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Don't enforce empty external apps slice
|
||||
|
||||
The command for ocis-phoenix enforced an empty external apps configuration. This was removed, as it was blocking a new set of default external apps in ocis-phoenix.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/473
|
||||
@@ -0,0 +1,4 @@
|
||||
Change: Integrate import command from ocis-migration
|
||||
|
||||
https://github.com/owncloud/ocis/pull/249
|
||||
https://github.com/owncloud/ocis-migration
|
||||
@@ -0,0 +1,6 @@
|
||||
Change: Initial release of basic version
|
||||
|
||||
Just prepared an initial basic version which simply embeds the minimum of
|
||||
required services in the context of the ownCloud Infinite Scale project.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/2
|
||||
@@ -0,0 +1,11 @@
|
||||
Change: Add cli-commands to manage accounts
|
||||
|
||||
COMMANDS:
|
||||
- list, ls List existing accounts
|
||||
- add, create Create a new account
|
||||
- update Make changes to an existing account
|
||||
- remove, rm Removes an existing account
|
||||
- inspect Show detailed data on an existing account
|
||||
- help, h Shows a list of commands or help for one command
|
||||
|
||||
https://github.com/owncloud/product/issues/115
|
||||
@@ -0,0 +1,6 @@
|
||||
Change: Start ocis-accounts with the ocis server command
|
||||
|
||||
Starts ocis-accounts in single binary mode (./ocis server). This service stores the user-account information.
|
||||
|
||||
https://github.com/owncloud/product/issues/25
|
||||
https://github.com/owncloud/ocis/pull/239/files
|
||||
@@ -0,0 +1,7 @@
|
||||
Change: Switch over to a new custom-built runtime
|
||||
|
||||
We moved away from using the go-micro runtime and are now using [our own runtime](https://github.com/refs/pman).
|
||||
This allows us to spawn service processes even when they are using different versions of go-micro. On top of that we
|
||||
now have the commands `ocis list`, `ocis kill` and `ocis run` available for service runtime management.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/287
|
||||
@@ -0,0 +1,21 @@
|
||||
Change: Account management permissions for Admin role
|
||||
|
||||
We created an `AccountManagement` permission and added it to the default admin role. There are permission
|
||||
checks in place to protected http endpoints in ocis-accounts against requests without the permission.
|
||||
All existing default users (einstein, marie, richard) have the default user role now (doesn't have the
|
||||
`AccountManagement` permission). Additionally, there is a new default Admin user with credentials `moss:vista`.
|
||||
|
||||
Known issue: for users without the `AccountManagement` permission, the accounts UI extension is still available
|
||||
in the ocis-web app switcher, but the requests for loading the users will fail (as expected). We are working
|
||||
on a way to hide the accounts UI extension if the user doesn't have the `AccountManagement` permission.
|
||||
|
||||
https://github.com/owncloud/product/issues/124
|
||||
https://github.com/owncloud/ocis-settings/pull/59
|
||||
https://github.com/owncloud/ocis-settings/pull/66
|
||||
https://github.com/owncloud/ocis-settings/pull/67
|
||||
https://github.com/owncloud/ocis-settings/pull/69
|
||||
https://github.com/owncloud/ocis-proxy/pull/95
|
||||
https://github.com/owncloud/ocis-pkg/pull/59
|
||||
https://github.com/owncloud/ocis-accounts/pull/95
|
||||
https://github.com/owncloud/ocis-accounts/pull/100
|
||||
https://github.com/owncloud/ocis-accounts/pull/102
|
||||
@@ -0,0 +1,6 @@
|
||||
Bugfix: Fix director selection in proxy
|
||||
|
||||
We fixed a bug in ocis-proxy where simultaneous requests could be executed on the wrong backend.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/521
|
||||
https://github.com/owncloud/ocis-proxy/pull/99
|
||||
@@ -0,0 +1,5 @@
|
||||
Change: Make ocis-settings available
|
||||
|
||||
This version delivers `settings` as a new service. It is part of the array of services in the `server` command.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/287
|
||||
@@ -0,0 +1,5 @@
|
||||
Change: Update ocis-settings to v0.2.0
|
||||
|
||||
This version delivers `settings` v0.2.0 and versions of accounts (v0.3.0) and phoenix (v0.15.0) needed for it.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/467
|
||||
@@ -0,0 +1,8 @@
|
||||
Enhancement: Simplify tracing config
|
||||
|
||||
We now apply the oCIS tracing config to all services which have tracing. With this it is possible
|
||||
to set one tracing config for all services at the same time.
|
||||
|
||||
https://github.com/owncloud/product/issues/92
|
||||
https://github.com/owncloud/ocis/pull/329
|
||||
https://github.com/owncloud/ocis/pull/409
|
||||
@@ -0,0 +1,7 @@
|
||||
Change: Start ocis-proxy with the ocis server command
|
||||
|
||||
Starts the proxy in single binary mode (./ocis server) on port 9200. The proxy serves as a single-entry point
|
||||
for all http-clients.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/119
|
||||
https://github.com/owncloud/ocis/issues/136
|
||||
@@ -0,0 +1,5 @@
|
||||
Change: Update ocis-accounts to v0.4.0
|
||||
|
||||
Provides a web UI for role assignment.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/479
|
||||
@@ -0,0 +1,7 @@
|
||||
Enhancement: Add new REVA config variables to docs
|
||||
|
||||
With the default setup of running oCIS with ocis-proxy we need to set `REVA_DATAGATEWAY_URL` and
|
||||
`REVA_FRONTEND_URL` environment variables. We added those to the configuration instructions in
|
||||
the dev docs.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/345
|
||||
@@ -0,0 +1,11 @@
|
||||
Enhancement: Update extensions
|
||||
|
||||
We've updated various extensions to a tagged release:
|
||||
- ocis-phoenix v0.4.0 (phoenix v0.7.0)
|
||||
- ocis-pkg v2.2.0
|
||||
- ocis-proxy v0.3.1
|
||||
- ocis-reva v0.1.1
|
||||
- ocis-thumbnails v0.1.0
|
||||
- ocis-webdav v0.1.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/180
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Update extensions 2020-07-01
|
||||
|
||||
- ocis-reva 0.9.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/357
|
||||
@@ -0,0 +1,7 @@
|
||||
Enhancement: Update extensions 2020-09-02
|
||||
|
||||
- ocis-accounts 0.4.2-0.20200828150703-2ca83cf4ac20
|
||||
- ocis-ocs 0.3.1
|
||||
- ocis-settings 0.3.2-0.20200828130413-0cc0f5bf26fe
|
||||
|
||||
https://github.com/owncloud/ocis/pull/516
|
||||
@@ -0,0 +1,8 @@
|
||||
Enhancement: Update extensions
|
||||
|
||||
We've updated various extensions:
|
||||
- ocis-konnectd v0.3.1
|
||||
- ocis-phoenix v0.5.0 (phoenix v0.8.0)
|
||||
- ocis-reva v0.2.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/209
|
||||
@@ -0,0 +1,11 @@
|
||||
Enhancement: Update extensions
|
||||
|
||||
We've updated various extensions to a tagged release:
|
||||
- ocis-konnectd v0.2.0
|
||||
- ocis-glauth v0.4.0
|
||||
- ocis-phoenix v0.3.0 (phoenix v0.6.0)
|
||||
- ocis-pkg v2.1.0
|
||||
- ocis-proxy v0.1.0
|
||||
- ocis-reva v0.1.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/151
|
||||
@@ -0,0 +1,6 @@
|
||||
Enhancement: Update extensions 2020-07-10
|
||||
|
||||
- ocis-reva 0.10.0
|
||||
- ocis-phoenix 0.9.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/376
|
||||
@@ -0,0 +1,7 @@
|
||||
Enhancement: Update extensions
|
||||
|
||||
We've updated various extensions:
|
||||
- ocis-thumbnails v0.1.2 (tag)
|
||||
- ocis-reva v0.3.0 (tag)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/290
|
||||
@@ -0,0 +1,6 @@
|
||||
Enhancement: Update ocis-reva to 0.4.0
|
||||
|
||||
Brings in fixes for trashbin and TUS upload.
|
||||
Also adds partial implementation of public shares.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/295
|
||||
@@ -0,0 +1,10 @@
|
||||
Enhancement: Update extensions
|
||||
|
||||
We've updated various extensions:
|
||||
- ocis-konnectd v0.3.1
|
||||
- ocis-phoenix v0.6.0
|
||||
- ocis-reva v0.2.1
|
||||
- ocis-pkg v2.2.1
|
||||
- ocis-thumbnails v0.1.2
|
||||
|
||||
https://github.com/owncloud/ocis/pull/209
|
||||
@@ -0,0 +1,8 @@
|
||||
Enhancement: Update extensions 2020-06-29
|
||||
|
||||
- ocis-proxy 0.4.0
|
||||
- ocis-migration 0.2.0
|
||||
- ocis-reva 0.8.0
|
||||
- ocis-phoenix 0.8.1
|
||||
|
||||
https://github.com/owncloud/ocis/pull/334
|
||||
@@ -0,0 +1,6 @@
|
||||
Enhancement: Update proxy and reva
|
||||
|
||||
- ocis-reva contains a lot of sharing, eos and trash fixes
|
||||
- ocis-proxy contains fixes to use ocis on top of eos
|
||||
|
||||
https://github.com/owncloud/ocis/pull/466
|
||||
@@ -0,0 +1,5 @@
|
||||
Change: Update ocis-ocs to v0.3.0
|
||||
|
||||
This change updates ocis-ocs to version 0.3.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/500
|
||||
@@ -0,0 +1,5 @@
|
||||
Change: Update ocis-phoenix to v0.13.0
|
||||
|
||||
This version delivers ocis-phoenix v0.13.0.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/487
|
||||
@@ -0,0 +1,5 @@
|
||||
Change: Update ocis-proxy to v0.7.0
|
||||
|
||||
This version delivers ocis-proxy v0.7.0.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/476
|
||||
@@ -0,0 +1,5 @@
|
||||
Change: Update ocis-reva to 0.13.0
|
||||
|
||||
This version delivers ocis-reva v0.13.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/496
|
||||
@@ -0,0 +1,3 @@
|
||||
Enhancement: Update proxy to v0.2.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/167
|
||||
@@ -0,0 +1,9 @@
|
||||
Change: Update reva config
|
||||
|
||||
- EOS homes are not configured with an enable-flag anymore, but with a dedicated storage driver.
|
||||
- We're using it now and adapted default configs of storages
|
||||
|
||||
https://github.com/owncloud/ocis/pull/336
|
||||
https://github.com/owncloud/ocis/pull/337
|
||||
https://github.com/owncloud/ocis/pull/338
|
||||
https://github.com/owncloud/ocis-reva/pull/891
|
||||
@@ -0,0 +1,5 @@
|
||||
Change: Update ocis-settings to v0.3.0
|
||||
|
||||
This version delivers ocis-settings v0.3.0.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/490
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: build docker images with alpine:latest instead of alpine:edge
|
||||
|
||||
ARM builds were failing when built on alpine:edge, so we switched to alpine:latest instead.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/416
|
||||
@@ -1,14 +0,0 @@
|
||||
---
|
||||
title: oCIS CLI Commands
|
||||
date: 2025-11-13T00:00:00+00:00
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/cli-commands/
|
||||
geekdocFilePath: _index.md
|
||||
geekdocCollapseSection: true
|
||||
weight: 20
|
||||
---
|
||||
|
||||
{{< toc-tree >}}
|
||||
|
||||
CLI commands can either be embedded in a service or operate independently.
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
---
|
||||
title: Create a New CLI Command
|
||||
date: 2025-11-13T00:00:00+00:00
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/cli-commands/
|
||||
geekdocFilePath: create-new-cli-command.md
|
||||
weight: 20
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
{{< hint info >}}
|
||||
Existing commands should be checked for commonly used options whenever a new CLI command is created, regardless of whether it is embedded in a service or not. For an example you can see the [Service Independent CLI]({{< ref "./service_independent_cli.md" >}}) documentation.
|
||||
{{< /hint >}}
|
||||
|
||||
## CLI Embedded in a Service
|
||||
|
||||
These commands are usually located in the `<service-name>/pkg/command` subfolder.
|
||||
|
||||
## CLI Independent of a Service
|
||||
|
||||
These commands are located in the `ocis/pkg/command` subfolder.
|
||||
@@ -1,33 +0,0 @@
|
||||
---
|
||||
title: Document CLI Commands
|
||||
date: 2025-11-13T00:00:00+00:00
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/cli-commands/
|
||||
geekdocFilePath: document-cli-commands.md
|
||||
weight: 20
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
Any CLI command that is added to Infinite Scale must be documented here in the dev docs and the [admin docs](https://doc.owncloud.com/ocis/latest/maintenance/commands/commands.html). Note that the admin docs primarily distinguish between online and offline commands because the structure of the documentation is different. Typically, any command documented in the developer documentation is integrated into the admin documentation and adapted according to the target audience. The description here is for developers; the admin docs are derived from it.
|
||||
|
||||
{{< hint info >}}
|
||||
Note that any CLI command requires documentation. However, it may be decided that a CLI command will not be included in the admin documentation. In such a case, the reasons should be valid.
|
||||
{{< /hint >}}
|
||||
|
||||
## Type of CLI Commands
|
||||
|
||||
There are three types of CLI commands that require different documentation locations:
|
||||
|
||||
1. Commands that are embedded in a service such as:\
|
||||
`ocis storage-users uploads`
|
||||
2. Commands that are service independent such as:\
|
||||
`ocis trash purge-empty-dirs` or `ocis revisions purge`
|
||||
3. `curl` commands that can be one of the above.
|
||||
|
||||
## Rules
|
||||
|
||||
* **Service dependent** CLI commands:\
|
||||
Add any CLI command into the repsective `README.md` **of the service**. Use as "template" an existing one such as in `services/storage-users/README.md` or `services/auth-app/README.md`. The content created will be transferred automatically to the service in the [Services]({{< ref "../services/" >}}) section.
|
||||
* **Service independent** CLI commands:\
|
||||
Add any CLI command into the [Service Independent CLI]({{< ref "./service_independent_cli.md" >}}) documentation. See the link for an example how to do so.
|
||||
@@ -1,41 +0,0 @@
|
||||
---
|
||||
title: Service Dependent CLI
|
||||
date: 2025-11-13T00:00:00+00:00
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/cli-commands/
|
||||
geekdocFilePath: service_dependent_cli.md
|
||||
---
|
||||
|
||||
This document describes ocis CLI commands that are **embedded in a service**.
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Common Parameters
|
||||
|
||||
The ocis package offers a variety of CLI commands for monitoring or repairing ocis installations. Most of these commands have common parameters such as:
|
||||
|
||||
* `--help` (or `-h`)\
|
||||
Use to print all available options.
|
||||
|
||||
* `--basePath` (or `-p`)\
|
||||
Needs to point to a storage provider, paths can vary depending on your ocis installation. Example paths are:
|
||||
```bash
|
||||
.ocis/storage/users # bare metal installation
|
||||
/var/tmp/ocis/storage/users # docker installation
|
||||
...
|
||||
```
|
||||
|
||||
* `--dry-run`\
|
||||
This parameter, when available, defaults to `true` and must explicitly set to `false`.
|
||||
|
||||
* `--verbose` (or `-v`)\
|
||||
Get a more verbose output.
|
||||
|
||||
## List of CLI Commands
|
||||
|
||||
For CLI commands that are **embedded in a service**, see the following services:
|
||||
|
||||
* [Auth-App]({{< ref "../services/auth-app/" >}})
|
||||
* [Graph]({{< ref "../services/graph/" >}})
|
||||
* [Postprocessing]({{< ref "../services/postprocessing/" >}})
|
||||
* [Storage-Users]({{< ref "../services/storage-users/" >}})
|
||||
@@ -1,226 +0,0 @@
|
||||
---
|
||||
title: Service Independent CLI
|
||||
date: 2025-11-13T00:00:00+00:00
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/cli-commands/
|
||||
geekdocFilePath: service_independent_cli.md
|
||||
---
|
||||
|
||||
This document describes ocis CLI commands that are **service independent**.
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
For **service dependent** CLI commands, see the following services:
|
||||
|
||||
* [Auth-App]({{< ref "../services/auth-app/" >}})
|
||||
* [Graph]({{< ref "../services/graph/" >}})
|
||||
* [Postprocessing]({{< ref "../services/postprocessing/" >}})
|
||||
* [Storage-Users]({{< ref "../services/storage-users/" >}})
|
||||
|
||||
## Common Parameters
|
||||
|
||||
The ocis package offers a variety of CLI commands for monitoring or repairing ocis installations. Most of these commands have common parameters such as:
|
||||
|
||||
* `--help` (or `-h`)\
|
||||
Use to print all available options.
|
||||
|
||||
* `--basePath` (or `-p`)\
|
||||
Needs to point to a storage provider, paths can vary depending on your ocis installation. Example paths are:
|
||||
```bash
|
||||
.ocis/storage/users # bare metal installation
|
||||
/var/tmp/ocis/storage/users # docker installation
|
||||
...
|
||||
```
|
||||
|
||||
* `--dry-run`\
|
||||
This parameter, when available, defaults to `true` and must explicitly set to `false`.
|
||||
|
||||
* `--verbose` (or `-v`)\
|
||||
Get a more verbose output.
|
||||
|
||||
## List of CLI Commands
|
||||
|
||||
### Backup CLI
|
||||
|
||||
The backup command allows inspecting the consistency of an ocis storage:
|
||||
|
||||
```bash
|
||||
ocis backup consistency -p /base/path/storage/users
|
||||
```
|
||||
|
||||
This will check the consistency of the storage and output a list of inconsistencies. Inconsistencies can be:
|
||||
|
||||
* **Orphaned Blobs**\
|
||||
A blob in the blobstore that is not referenced by any file metadata.
|
||||
* **Missing Blobs**\
|
||||
A blob referenced by file metadata that is not present in the blobstore.
|
||||
* **Missing Nodes**\
|
||||
A node that is referenced by a symlink but doesn't exist.
|
||||
* **Missing Link**\
|
||||
A node that is not referenced by any symlink but should be.
|
||||
* **Missing Files**\
|
||||
A node that is missing essential files (such as the `.mpk` metadata file).
|
||||
* **Missing/Malformed Metadata**\
|
||||
A node that doesn't have any (or malformed) metadata.
|
||||
|
||||
This command provides additional options:
|
||||
|
||||
* `-b` / `--blobstore`\
|
||||
Allows specifying the blobstore to use. Defaults to `ocis`. Empty blobs will not be checked. Can also be switched to `s3ng`, but needs addtional envvar configuration (see the `storage-users` service for more details).
|
||||
* `--fail`\
|
||||
Exits with non-zero exit code if inconsistencies are found. Useful for automation.
|
||||
|
||||
### Cleanup Orphaned Grants
|
||||
|
||||
Detect and optionally delete storage grants that have no corresponding share-manager entry.
|
||||
|
||||
Sharing in ocis relies on two truths. The share manager and the grants. When a share is created, ocis will
|
||||
|
||||
1. Create a grant for the specific file or folder.\
|
||||
This grant is _checked when access to the file is requested_.
|
||||
|
||||
2. Create an entry in the `created.json`/`received.json` files of the specific user.\
|
||||
These files are _checked whenever shares are listed_.
|
||||
|
||||
The process for creating a share is as follows: first, ocis creates the grant, and then adds the share entry. The reverse order is followed when deleting a share. This means that if the second step fails, the grant will still be present. This can be visually confirmed in the webUI. The webUI details of the "share" section will show an error fetching information for orphan grants.
|
||||
|
||||
The following command fixes the problem of orhaned grants.
|
||||
|
||||
Usage:
|
||||
```bash
|
||||
ocis shares clean-orphaned-grants \
|
||||
--service-account-id "<id>" \
|
||||
--service-account-secret "<secret>" \
|
||||
[--force] \
|
||||
[--space-id "<space-opaque-id>"] \
|
||||
[--dry-run=false]
|
||||
```
|
||||
|
||||
Notes:
|
||||
- `--dry-run`\
|
||||
Defaults to `true` (no deletions). Set to `false` to remove orphaned grants.
|
||||
- `--space-id`\
|
||||
Limit the scan to a specific storage space (opaque ID).
|
||||
- `--force`\
|
||||
Force removal of suspected orphans even when listing shares fails.
|
||||
- Public links are not touched.
|
||||
|
||||
### Cleanup Orphaned Shares
|
||||
|
||||
When a shared space or directory got deleted, use the `shares cleanup` command to remove those share orphans. This can't be done automatically at the moment.
|
||||
|
||||
```bash
|
||||
ocis shares cleanup
|
||||
```
|
||||
|
||||
### List Unified Roles
|
||||
|
||||
This command simplifies the process of finding out which UID belongs to which role. The command using markdown as output format is:
|
||||
|
||||
```bash
|
||||
ocis graph list-unified-roles --output-format md
|
||||
```
|
||||
|
||||
The output of this command includes the following information for each role:
|
||||
|
||||
* `Name`\
|
||||
The human readable name of the role.
|
||||
* `UID`\
|
||||
The unique identifier of the role.
|
||||
* `Enabled`\
|
||||
Whether the role is enabled or not.
|
||||
* `Description`\
|
||||
A short description of the role.
|
||||
* `Condition`
|
||||
* `Allowed Resource Actions`
|
||||
|
||||
**Example output (shortned)**
|
||||
|
||||
| # | LABEL | UID | ENABLED | DESCRIPTION | CONDITION | ALLOWED RESOURCE ACTIONS |
|
||||
|:--:|:--------------------------------:|:------------------------------------:|:--------:|:------------------------------------------------------------------------------------:|:---------------------------------------------------------:|:----------------------------------------:|
|
||||
| 1 | Viewer | b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5 | enabled | View and download. | exists @Resource.File | libre.graph/driveItem/path/read |
|
||||
| | | | | | exists @Resource.Folder | libre.graph/driveItem/quota/read |
|
||||
| | | | | | exists @Resource.File && @Subject.UserType=="Federated" | libre.graph/driveItem/content/read |
|
||||
| | | | | | exists @Resource.Folder && @Subject.UserType=="Federated" | libre.graph/driveItem/children/read |
|
||||
| | | | | | | libre.graph/driveItem/deleted/read |
|
||||
| | | | | | | libre.graph/driveItem/basic/read |
|
||||
| 2 | ViewerListGrants | d5041006-ebb3-4b4a-b6a4-7c180ecfb17d | disabled | View, download and show all invite
|
||||
|
||||
### Move Stuck Uploads
|
||||
|
||||
In some cases of saturated disk usage, Infinite Scale metadata may become stuck. This can occur when file metadata is being moved to its final destination after file operations. This issue was primarily seen with shares, where uploaded files could not be accessed. The required filename parameter aligns with Infinite Scale's internal processes and is used to complete the formerly stuck move action.
|
||||
|
||||
```bash
|
||||
ocis shares move-stuck-upload-blobs [--dry-run=false] -p /base/path/storage/users
|
||||
```
|
||||
|
||||
This command provides additional options:
|
||||
|
||||
* `--dry-run` (default: `true`)\
|
||||
Only print found files stuck in transition.\
|
||||
Note: This is a safety measure. You must specify `--dry-run=false` for the command to be effective.
|
||||
|
||||
* `--filename` value (default: "received.json")\
|
||||
File to move from `uploads/` to share manager metadata `blobs/`
|
||||
|
||||
### Revisions CLI
|
||||
|
||||
The revisions command allows removing the revisions of files in the storage.
|
||||
|
||||
```bash
|
||||
ocis revisions purge -p /base/path/storage/users
|
||||
```
|
||||
|
||||
It takes the `--resource-id` (or `--r`) parameter which specify the scope of the command:
|
||||
|
||||
* An empty string (default) removes all revisions from all spaces.
|
||||
* A spaceID (like `d419032c-65b9-4f4e-b1e4-0c69a946181d\$44b5a63b-540c-4002-a674-0e9c833bbe49`) removes all revisions in that space.
|
||||
* A resourceID (e.g. `d419032c-65b9-4f4e-b1e4-0c69a946181d\$44b5a63b-540c-4002-a674-0e9c833bbe49\!e8a73d49-2e00-4322-9f34-9d7f178577b2`) removes all revisions from that specific file.
|
||||
|
||||
This command provides additional options:
|
||||
|
||||
* `--dry-run` (default: `true`)\
|
||||
Do not remove any revisions but print the revisions that would be removed.
|
||||
* `-b` / `--blobstore`\
|
||||
Allows specifying the blobstore to use. Defaults to `ocis`. Can be switched to `s3ng` but needs addtional envvar configuration (see the `storage-users` service for more details).
|
||||
* `-v` / `--verbose`\
|
||||
Prints additional information about the revisions that are removed.
|
||||
* `--glob-mechanism` (default: `glob`\
|
||||
(advanced) Allows specifying the mechanism to use for globbing. Can be `glob`, `list` or `workers`. In most cases the default `glob` does not need to be changed. If large spaces need to be purged, `list` or `workers` can be used to improve performance at the cost of higher cpu and ram usage. `list` will spawn 10 threads that list folder contents in parallel. `workers` will use a special globbing mechanism and multiple threads to achieve the best performance for the highest cost.
|
||||
|
||||
### Service Health
|
||||
|
||||
The service health CLI command allows checking the health status of a service. If there are no issues found, nothing health related will get printed.
|
||||
|
||||
```bash
|
||||
ocis <service-name> health
|
||||
```
|
||||
|
||||
**Examples**
|
||||
|
||||
* The `collaboration` service has been started but not configured and is therefore not in a healthy state:
|
||||
```bash
|
||||
ocis collaboration health
|
||||
|
||||
The WOPI secret has not been set properly in your config for collaboration. Make sure your /root/.ocis/config config contains the proper values (e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in the config/corresponding environment variable).
|
||||
```
|
||||
|
||||
* The `antivirus` service has not been started, the health check responds accordingly:
|
||||
```bash
|
||||
ocis antivirus health
|
||||
|
||||
{"level":"fatal","service":"antivirus","error":"Get \"http://127.0.0.1:9277/healthz\": dial tcp 127.0.0.1:9277: connect: connection refused","time":"2024-10-28T17:47:54+01:00","message":"Failed to request health check"}
|
||||
```
|
||||
|
||||
### Trash CLI
|
||||
|
||||
The trash cli allows removing empty folders from the trashbin. This should be used to speed up trash bin operations.
|
||||
|
||||
```bash
|
||||
ocis trash purge-empty-dirs -p /base/path/storage/users
|
||||
```
|
||||
|
||||
This command provides additional options:
|
||||
|
||||
* `--dry-run` (default: `true`)\
|
||||
Do not remove any empty folders but print the empty folders that would be removed.
|
||||
@@ -1,9 +0,0 @@
|
||||
---
|
||||
title: Clients
|
||||
date: 2023-12-06T13:00:00+01:00
|
||||
weight: 10
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/clients/
|
||||
geekdocFilePath: _index.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
@@ -1,25 +0,0 @@
|
||||
---
|
||||
title: Rclone
|
||||
date: 2021-11-17T00:00:00+00:00
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/clients/rclone
|
||||
geekdocFilePath: _index.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
## About Rclone
|
||||
|
||||
{{< hint ok >}}
|
||||
Rclone is a command line program to manage files on cloud storage. It is a feature rich alternative to cloud vendors' web storage interfaces. Over 40 cloud storage products support rclone including S3 object stores, business & consumer file storage services, as well as standard transfer protocols.
|
||||
|
||||
Rclone has powerful cloud equivalents to the unix commands rsync, cp, mv, mount, ls, ncdu, tree, rm, and cat. Rclone's familiar syntax includes shell pipeline support, and --dry-run protection. It is used at the command line, in scripts or via its API.
|
||||
|
||||
Users call rclone "The Swiss army knife of cloud storage", and "Technology indistinguishable from magic".
|
||||
{{< /hint >}}
|
||||
|
||||
Source: [Rclone project website](https://rclone.org/)
|
||||
|
||||
## Table of Contents
|
||||
|
||||
{{< toc-tree >}}
|
||||
@@ -1,46 +0,0 @@
|
||||
---
|
||||
title: WebDAV with Basic Authentication
|
||||
date: 2021-11-17T00:00:00+00:00
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/clients/rclone
|
||||
geekdocFilePath: webdav-sync-basic-auth.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
|
||||
## WebDAV with Basic Authentication
|
||||
|
||||
{{< hint danger >}}
|
||||
Basic Authentication is disabled by default in oCIS because of security considerations. In order to make the following Rclone commands work the oCIS administrator needs to enable Basic Authentication e.g. by setting the environment variable `PROXY_ENABLE_BASIC_AUTH` to `true`.
|
||||
|
||||
Please consider to use [Rclone with OpenID Connect]({{< ref "webdav-sync-oidc.md" >}}) instead.
|
||||
{{< /hint >}}
|
||||
|
||||
For the usage of a WebDAV remote with Rclone see also the [Rclone documentation](https://rclone.org/webdav/)
|
||||
|
||||
## Configure the WebDAV remote
|
||||
|
||||
First of all we need to set up our credentials and the WebDAV remote for Rclone. In this example we do this by setting environment variables. You might also set up a named remote or use command line options to achieve the same.
|
||||
|
||||
``` bash
|
||||
export RCLONE_WEBDAV_VENDOR=owncloud
|
||||
export RCLONE_WEBDAV_URL=https://ocis.owncloud.test/remote.php/webdav/
|
||||
export RCLONE_WEBDAV_USER=einstein
|
||||
export RCLONE_WEBDAV_PASS=$(rclone obscure relativity)
|
||||
```
|
||||
|
||||
{{< hint info >}}
|
||||
Please note that `RCLONE_WEBDAV_PASS` is not set to the actual password, but to the value returned by `rclone obscure <password>`.
|
||||
{{< /hint >}}
|
||||
|
||||
We now can use Rclone to sync the local folder `/tmp/test` to `/test` in your oCIS home folder.
|
||||
|
||||
|
||||
### Sync to the WebDAV remote
|
||||
|
||||
``` bash
|
||||
rclone sync :local:/tmp :webdav:/test
|
||||
```
|
||||
|
||||
If your oCIS doesn't use valid SSL certificates, you may need to use `rclone --no-check-certificate sync ...`.
|
||||
@@ -1,77 +0,0 @@
|
||||
---
|
||||
title: WebDAV with OpenID Connect
|
||||
date: 2021-11-17T00:00:00+00:00
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/clients/rclone
|
||||
geekdocFilePath: webdav-sync-oidc.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
|
||||
## WebDAV with OpenID Connect
|
||||
|
||||
Rclone itself is not able to open and maintain an OpenID Connect session. But it is able to still use OpenID Connect for authentication by leveraging a so called OIDC-agent.
|
||||
|
||||
### Setting up the OIDC-agent
|
||||
|
||||
You need to install the [OIDC-agent](https://github.com/indigo-dc/oidc-agent) from your OS' package repository (e.g. [Debian](https://github.com/indigo-dc/oidc-agent#debian-packages) or [MacOS](https://github.com/indigo-dc/oidc-agent#debian-packages)).
|
||||
|
||||
|
||||
### Configuring the OIDC-agent
|
||||
|
||||
Run the following command to add a OpenID Connect profile to your OIDC-agent. It will open the login page of OpenID Connect identity provider where you need to log in if you don't have an active session.
|
||||
|
||||
``` bash
|
||||
oidc-gen \
|
||||
--client-id=oidc-agent \
|
||||
--client-secret="" \
|
||||
--pub \
|
||||
--issuer https://ocis.owncloud.test \
|
||||
--redirect-uri=http://localhost:12345 \
|
||||
--scope max \
|
||||
einstein-ocis-owncloud-test
|
||||
```
|
||||
|
||||
If you have dynamic client registration enabled on your OpenID Connect identity provider, you can skip the `--client-id`, `--client-secret` and `--pub` options.
|
||||
|
||||
If you're using a dedicated OpenID Connect client for the OIDC-agent, we recommend a public one with the following two redirect URIs: `http://127.0.0.1:*` and `http://localhost:*`. Alternatively you also may use the already existing OIDC client of the ownCloud Desktop Client (`--client-id=xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69` and `--client-secret=UBntmLjC2yYCeHwsyj73Uwo9TAaecAetRwMw0xYcvNL9yRdLSUi0hUAHfvCHFeFh`, no `--pub` set, request specific scope for offline access), e.g.:
|
||||
``` bash
|
||||
oidc-gen \
|
||||
--client-id=xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69 \
|
||||
--client-secret=UBntmLjC2yYCeHwsyj73Uwo9TAaecAetRwMw0xYcvNL9yRdLSUi0hUAHfvCHFeFh \
|
||||
--issuer https://cloud.ocis.test \
|
||||
--redirect-uri=http://localhost:12345 \
|
||||
--scope="openid offline_access profile email" \
|
||||
my-client
|
||||
```
|
||||
|
||||
When using a self signed certificate you have to provide the certificate chain using `--cp /etc/ssl/certs/test.cert.pem`. In case oidc-gen cannot determine the flow try with `--flow=code`.
|
||||
|
||||
Please also note that the OIDC-agent will listen on your localhost interface on port 12345 for the time of the initial authentication. If that port is already occupied on your machine, you can easily change that by setting the `--redirect-uri` parameter to a different value.
|
||||
|
||||
After a successful login or an already existing session you will be redirected to success page of the OIDC-agent.
|
||||
You will now be asked for a password for your account configuration, so that your OIDC session is secured and cannot be used by other people with access to your computer.
|
||||
|
||||
|
||||
|
||||
## Configure the WebDAV remote
|
||||
|
||||
First of all we need to set up our credentials and the WebDAV remote for Rclone. In this example we do this by setting environment variables. You might also set up a named remote or use command line options to achieve the same.
|
||||
|
||||
``` bash
|
||||
export RCLONE_WEBDAV_VENDOR=owncloud
|
||||
export RCLONE_WEBDAV_URL=https://ocis.owncloud.test/remote.php/webdav/
|
||||
export RCLONE_WEBDAV_BEARER_TOKEN_COMMAND="oidc-token einstein-ocis-owncloud-test"
|
||||
```
|
||||
|
||||
|
||||
### Sync to the WebDAV remote
|
||||
|
||||
We now can use Rclone to sync the local folder `/tmp/test` to `/test` in your oCIS home folder.
|
||||
|
||||
``` bash
|
||||
rclone sync :local:/tmp :webdav:/test
|
||||
```
|
||||
|
||||
If your oCIS doesn't use valid SSL certificates, you may need to use `rclone --no-check-certificate sync ...`.
|
||||
@@ -0,0 +1,13 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/owncloud/ocis/pkg/command"
|
||||
)
|
||||
|
||||
func main() {
|
||||
if err := command.Execute(); err != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "owncloud/ocis",
|
||||
"config" : {
|
||||
"platform": {
|
||||
"php": "7.2"
|
||||
}
|
||||
},
|
||||
"require": {
|
||||
},
|
||||
"require-dev": {
|
||||
"bamarni/composer-bin-plugin": "^1.4"
|
||||
},
|
||||
"extra": {
|
||||
"bamarni-bin": {
|
||||
"bin-links": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
*
|
||||
!example.json
|
||||
!example.yml
|
||||
@@ -0,0 +1,12 @@
|
||||
EOS_MQ_URL=mq-master.testnet
|
||||
EOS_MGM_ALIAS=mgm-master.testnet
|
||||
EOS_QDB_NODES=quark-1.testnet:7777 quark-2.testnet:7777 quark-3.testnet:7777
|
||||
EOS_LDAP_HOST=ocis.testnet:9125
|
||||
EOS_GEOTAG=test
|
||||
EOS_INSTANCE_NAME=eostest
|
||||
EOS_MAIL_CC=eos@localhost
|
||||
EOS_USE_QDB=1
|
||||
EOS_USE_QDB_MASTER=1
|
||||
EOS_NS_ACCOUNTING=1
|
||||
EOS_SYNCTIME_ACCOUNTING=1
|
||||
EOS_UTF8=1
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
|
||||
...
|
||||
Loaded 100 of 651 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user