Commit Graph

31 Commits

Author SHA1 Message Date
e08dd2f2e8 sync: Allow empty files 2024-10-11 14:55:28 +02:00
c3353572e6 sync: Export DownloadExerciceFile function 2024-04-19 11:48:58 +02:00
1f833d39fc admin: Export more importer functions 2024-04-19 11:48:57 +02:00
1d4b79bf90 sync: Handle remote challenge files 2024-04-19 11:48:57 +02:00
f097c029f3 Security fix: Incorrect permission assignment for critical resource 2024-04-19 11:48:55 +02:00
c5a059bd3b sync: Expose sync.Exists function 2024-04-19 11:46:53 +02:00
257c594dbe sync: Expose GetFileSize 2024-04-19 11:46:51 +02:00
6ca71230c1 Refactor sync file reading 2024-04-19 11:46:51 +02:00
541e32e10b sync: Return the reader from importer instead of writing to a given Writer 2024-04-19 11:46:51 +02:00
11a12e1d44 Import logos from challenge.json
Some checks are pending
continuous-integration/drone/push Build is running
2022-06-06 20:42:46 +02:00
aab66bf612 sync: Implement writable importer 2022-05-24 22:57:16 +02:00
560110ba5e sync: Expose GetFile and GetFileContent functions 2022-05-24 21:52:58 +02:00
2c76b5c7a3 admin: Add link to forge 2022-05-24 21:25:51 +02:00
4a190f51c5 admin: Fix video route 2022-05-24 12:03:00 +02:00
2645109839 admin: Display commit ID in admin interface 2022-01-21 08:02:23 +01:00
c7569b5e54 Use pointer receiver more offen 2021-12-11 11:20:44 +01:00
aebfb7bf96 sync: Add Init and Sync functions
Init initializes the directory/repository before the first use.
Sync is called to unsure the directory is up-to-date.
2021-11-14 17:30:29 +01:00
adb424ea03 Use fmt.Errorf 2020-04-15 07:39:38 +02:00
aee3500fdf sync: avoid depending on database when importing files 2020-01-23 18:26:30 +01:00
3f55845374 sync: Extract function that import files from importer 2019-07-06 04:08:29 +02:00
6042f9b477 sync: check video file size during import process 2019-01-21 09:58:36 +01:00
492ab72dcd sync: read UTF8 string, don't expect sane encoding from imported files, just force it 2018-05-13 14:16:06 +02:00
dcb67fba63 Docs, docs, docs! 2018-05-13 14:15:07 +02:00
bcc598ebd5 Write docs! 2018-05-11 15:03:09 +02:00
62aea5413e use more official blake2b checksum 2018-05-11 05:27:51 +02:00
db9077a85c admin/sync: add stat method to importer 2018-01-18 12:08:12 +01:00
68bb0e6b21 admin/sync: hide full URI from error message 2018-01-17 18:52:43 +01:00
8ed23ddc7a admin: localimporter can make symlink instead of copying whole files 2018-01-17 18:52:42 +01:00
3d59042802 admin: sync.ImportFile takes Importer as first arg 2018-01-17 18:52:41 +01:00
a033f81f5f admin: new function to retrieve file content 2018-01-17 18:52:40 +01:00
8f7de926d3 admin: Implement sychronization backends
We are now able, depending on configuration, to retrieve files from either WebDAV or local file system.
2018-01-17 18:52:39 +01:00