Local storage driver
Is there a storage driver that could use the local filesystem? Or a remote S3 like one (e.g. minio)?
Keppel currently only supports swift and in-memory (for testing only) storage drivers.
If you would want to implement a local or s3 storage driver it would need to implement this interface. You can take a look at the trivial storage driver and swift driver for an implementation of that interface. At the time of writing we don't have plans to implement a new driver because so far we had no requirement for it.
Thanks for the pointers. I will try to implement an s3 one. Would this be something that would be acceptable as a PR?
I've actually started with the filesystem driver.
Can you have a look at https://github.com/rgl/keppel/pull/1? If you agree, I can make a PR to this repository instead.
Would this be something that would be acceptable as a PR?
I need to double check that with a colleague but since the added code is rather small and it could be handy for local testing and debugging I thinking positively about it. But without the docker-compose part since we wouldn't be using and testing it.
I can make a PR to this repository instead.
Feel to do that already.
Should we also modify the trivial driver to use a memory fs (afero.NewMemMapFs())? Or do that in another PR?
I would put that back for now. We may explore replacing the trivial driver completely with the filesystem driver because it should make debugging much easier but we haven't decided on that yet.