Commit Graph

1283 Commits

Author SHA1 Message Date
Derrick Hammer 201c9b992f
fix: need to deref r to replace it 2024-03-03 07:17:46 -05:00
Derrick Hammer 4483ad7ec5
dep: update libs5 2024-03-03 07:17:14 -05:00
Derrick Hammer 9d25784a6e
fix: we need to pin the files after upload 2024-03-03 06:50:24 -05:00
Derrick Hammer d2c9f8e38a
fix: strip out any port 2024-03-03 06:40:50 -05:00
Derrick Hammer 53f9a8fb32
refactor: add UploadPinned and have DNSLinkExists ensure the upload exists, the dnslink exists, and the upload is pinned 2024-03-03 06:16:01 -05:00
Derrick Hammer 82ae0d3ef7
refactor: add UploadID to UploadMetadata 2024-03-03 06:10:03 -05:00
Derrick Hammer ecf2532974
dep: update libs5 2024-03-03 05:36:47 -05:00
Derrick Hammer b03af65418
fix: need to manually cast errorPages to webappErrorPages 2024-03-03 05:24:03 -05:00
Derrick Hammer c2483aa7a9
dep: update libs5 2024-03-03 05:23:40 -05:00
Derrick Hammer c5b03ffd9e
dep: update libs5 2024-03-03 04:43:00 -05:00
Derrick Hammer 4c91b0c2e7
dep: update libs5 2024-03-03 04:34:40 -05:00
Derrick Hammer 1688cf39f8
dep: update libs5 2024-03-03 04:29:32 -05:00
Derrick Hammer e71a160f46
dep: update libs5 2024-03-03 04:01:54 -05:00
Derrick Hammer 3d55254916
fix: update use of webApp.Paths 2024-03-03 03:41:30 -05:00
Derrick Hammer 9f65b1b455
dep: update libs5 2024-03-03 03:41:03 -05:00
Derrick Hammer c8124c0739
dep: update libs5 2024-03-03 03:36:08 -05:00
Derrick Hammer b2a2e13496
dep: update libs5 2024-03-03 03:28:22 -05:00
Derrick Hammer 37514a742f
fix: errorFiles is really errorPages 2024-03-03 03:03:15 -05:00
Derrick Hammer 4db07d5170
fix: need to pass tus 2024-03-02 06:24:12 -05:00
Derrick Hammer 2e9694149b
fix: wrong tag option for unique index 2024-03-02 06:19:31 -05:00
Derrick Hammer f98b0f48bd
fix: use hash provided by constructor 2024-03-02 06:12:29 -05:00
Derrick Hammer dde5d255a6
fix: debug api needs cors support 2024-03-02 06:08:23 -05:00
Derrick Hammer 845de39049
dep: update libs5 2024-03-02 05:54:36 -05:00
Derrick Hammer b5c3d99568
dep: update libs5 2024-03-02 05:42:50 -05:00
Derrick Hammer ca06919764
dep: update libs5 2024-03-02 05:24:57 -05:00
Derrick Hammer 3654607f3f
refactor: replace debug apu auth middlewares with proxy middlewares 2024-03-02 05:01:21 -05:00
Derrick Hammer a96fc8682f
fix: return error not S5Error 2024-03-02 04:55:04 -05:00
Derrick Hammer 7315f8e694
fix: need to manually extract the multipart filename because goes internals strips file paths 2024-03-02 04:54:29 -05:00
Derrick Hammer 0c0cdfd2b1
fix: fix parsing of app upload settings, as they are json, and errorPages needs to be errorFiles 2024-03-02 04:51:28 -05:00
Derrick Hammer a9c2ecade0
fix: if we get an ErrUnexpectedEOF due to being less than512 bytes, read it all instead 2024-03-02 04:45:09 -05:00
Derrick Hammer 8a112a8c12
refactor: make S5File implement fs.ReadDirFile and fs.DirEntry 2024-03-01 23:30:06 -05:00
Derrick Hammer 1dff84accf
refactor: make resolveDirCid a utility function 2024-03-01 23:28:05 -05:00
Derrick Hammer b87ba1e6bf
feat: add support for webapp and dir cid's in dnslink 2024-03-01 22:50:22 -05:00
Derrick Hammer 8e2adba1eb
feat: add initial fs interfaces for webapp and dir 2024-03-01 22:49:47 -05:00
Derrick Hammer 3dbd791314
feat: add S5FileInfo struct and refactorings needed to be used as a fs.File and in a fs.Fs 2024-03-01 22:49:17 -05:00
Derrick Hammer 022d6a94cc
dep: update libs5 2024-03-01 22:46:51 -05:00
Derrick Hammer f79a0dd448
fix: need to use hashBytes and an optional type 2024-03-01 22:46:42 -05:00
Derrick Hammer a1f36df8b9
refactor: change newFile to take the params struct directly and fill in the blanks 2024-03-01 21:59:49 -05:00
Derrick Hammer 65548e8ec7
refactor: pass cidType to new S5File 2024-03-01 21:44:02 -05:00
Derrick Hammer f63d567b53
refactor: add support for using a passed cid type 2024-03-01 21:32:06 -05:00
Derrick Hammer 217bb78b3b
fix: ExistingUploadID no longer needed 2024-03-01 20:56:22 -05:00
Derrick Hammer ddc21014a8
dep: update libs5 2024-03-01 20:55:16 -05:00
Derrick Hammer a28bd6b11e
refactor: add db index on bucket/key 2024-03-01 20:44:55 -05:00
Derrick Hammer 454deeae21
refactor: change renter UploadObjectMultipart to use a db table like we do with s3 to track multipart uploads persistently and generically so we can resume later 2024-03-01 20:42:42 -05:00
Derrick Hammer aefe9efaaa
fix: export struct and add json tags 2024-03-01 10:30:08 -05:00
Derrick Hammer aacdd48428
fix: we need to track when the queue is finished ourselves 2024-03-01 10:11:03 -05:00
Derrick Hammer b272e32185
fix: dont send an empty buffer to bao 2024-03-01 06:23:31 -05:00
Derrick Hammer d5e2770135
refactor: don't use a buffered chan 2024-03-01 05:14:47 -05:00
Derrick Hammer b46e12b972
fix: if for some edge case reason an upload id no longer exists, start over, but use db Save so we can update the record if we have an ID 2024-03-01 05:09:57 -05:00
Derrick Hammer 56100e5d50
fix: shadow cid 2024-03-01 04:55:46 -05:00