Add metadata!
This commit is contained in:
10
README.md
10
README.md
@@ -10,13 +10,15 @@ Read access is public.
|
||||
Write access is controlled by tokens.
|
||||
|
||||
- Objects are access via a label and tag, or via their hash. For example:
|
||||
- `wget http://dtr.jde.nz/object/squashkiwi:latest`
|
||||
- `wget http://dtr.jde.nz/object/4528400792837739857`
|
||||
- `wget http://localhost:8123/object/squashkiwi:latest`
|
||||
- `wget http://localhost:8123/object/4528400792837739857`
|
||||
- The hash is calculated using `uint64_t hash_file(const std::string &path);` in hash.hpp.
|
||||
- You can retrieve the hash for a given labvel and tag with, e.g.:
|
||||
- `curl http://dtr.jde.nz/hash/squashkiwi:latest`
|
||||
- `curl http://localhost:8123/hash/squashkiwi:latest`
|
||||
- you can get a full list of {label:tag,hash} entries (one tag per entry) with:
|
||||
- `curl http://dtr.jde.nz/dir`
|
||||
- `curl http://localhost:8123/dir`
|
||||
- get all metadata for a tag:
|
||||
- `curl http://localhost:8123/meta/squashkiwi:latest`
|
||||
- a simple welcome page is served at `/index.html` for those browsing to the site.
|
||||
- to upload a file (via http put)
|
||||
- `curl -T object_file http://dtr.jde.nz/WRITE_TOKEN/LABEL:TAG`
|
||||
|
Reference in New Issue
Block a user