docs icon indicating copy to clipboard operation
docs copied to clipboard

[question] Request for docs: conan_server StorageAdapter

Open knzivid opened this issue 3 years ago • 2 comments

https://docs.conan.io/en/latest/uploading_packages/running_your_server.html mentions

Conan has implemented an extensible storage backend based on the abstract class StorageAdapter. Currently, the server only supports storage on disk. The folder in which the uploaded packages are stored (i.e., the folder you would want to backup) is defined in the disk_storage_path.

Where can I find more documentation on the StorageAdapter interface? I did not find it in the source under https://github.com/conan-io/conan/tree/develop/conans/server/store.

Any help is appreciated :)

knzivid avatar Aug 16 '22 10:08 knzivid

This is an issue for the docs, transferring it to the right repo.

memsharded avatar Aug 16 '22 15:08 memsharded

There is no documentation for the StorageAdapter, and I think documenting such parts of the code explicitly will be unlikely a priority in the short term, we still have lots of document of much more urgent parts, specially 2.0.

The current implementation of this Adapter is ServerDiskAdapter, and it is only around 90 lines of relatively straightforward code, so I would recommend having a look at the code directly.

memsharded avatar Aug 16 '22 15:08 memsharded