9 Commits

Author SHA1 Message Date
Rob Watson
c7d5541379 Refactor response handling.
- Add FileSystem implementation to handle HTTP index files but constrain
  directory listings
- Refactor server implementation into a dedicated handler struct
- Add test coverage
2022-01-10 18:45:10 +01:00
Rob Watson
176a1cd8c1 Revert "FileStore.PutObject: Accept io.ReadCloser"
This turned out to actually make testing more difficult, as the
FileStore objects are generally mocked themselves and moving the Close()
call inside them introduced IO problems in the test suite.

This reverts commit a063f85eca5dd3f983bc9b790fd68108820cc730.
2022-01-03 13:32:39 +01:00
Rob Watson
a063f85eca FileStore.PutObject: Accept io.ReadCloser
All checks were successful
continuous-integration/drone/push Build is passing
Accepting a ReadCloser in place of a Reader allows the FileSystem
implementation to handle closing the reader, which in turn simplifies
downstream code.
2022-01-03 09:57:49 +01:00
Rob Watson
9ef4cc5853 Fix flaky test
All checks were successful
continuous-integration/drone/push Build is passing
2021-12-31 19:53:46 +01:00
Rob Watson
57516c738e Add staticcheck to CI steps
All checks were successful
continuous-integration/drone/push Build is passing
2021-12-13 21:30:37 +01:00
Rob Watson
4ef5dc4189 Add test coverage for filestore package
All checks were successful
continuous-integration/drone/push Build is passing
2021-12-13 21:13:11 +01:00
Rob Watson
fb3a497119 Add base URL to serve file system store objects over HTTP 2021-12-09 04:05:34 +01:00
Rob Watson
4168cb150c Add FileSystemStore file store 2021-12-08 20:58:13 +01:00
Rob Watson
f2d7af0860 Extract S3 code to S3FileStore
Re: #5
2021-12-07 20:58:11 +01:00