dragonfly/hack
Eryu Guan 65fa8a1680
feat: define and implement new dfdaemon APIs to make dragonfly2 work as a distributed cache (#1227)
Introduce a new dfcache command which uses dfcache SDK interface to
interactive with dfdaemon and operate on P2P cache system.

For example:
- add a file into cache system
  dfcache import --cid sha256:xxxxxx --tag testtag /path/to/file

- check if a file exists in cache system
  dfcache stat --cid testid --local  # only check local cache
  dfcache stat --cid testid          # check other peers as well

- export/download a file from cache system
  dfcache export --cid testid -O /path/to/output

- delete a file from cache system, both local cache and P2P network
  dfcache delete -i testid -t testtag

Signed-off-by: Gaius <gaius.qi@gmail.com>
Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>

Co-authored-by: Jim Ma <majinjing3@gmail.com>
Co-authored-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:33:13 +08:00
..
build.sh feat: define and implement new dfdaemon APIs to make dragonfly2 work as a distributed cache (#1227) 2023-06-28 17:33:13 +08:00
cdn-nginx.conf Merge branch main-rc to branch main 2023-06-28 17:20:20 +08:00
docker-build.sh chore: use buildx to build docker images in e2e (#1018) 2023-06-28 17:32:54 +08:00
docker-push.sh Merge branch main-rc to branch main 2023-06-28 17:20:20 +08:00
env.sh chore: unify binary directory (#828) 2023-06-28 17:32:37 +08:00
gen-buildx.sh chore: use buildx to build docker images in e2e (#1018) 2023-06-28 17:32:54 +08:00
install-e2e-test.sh chore: upgrade to ginkgo v2 (#1036) 2023-06-28 17:32:54 +08:00
install.sh chore: unify binary directory (#828) 2023-06-28 17:32:37 +08:00
kind-load.sh chore: support multi daemons e2e test (#896) 2023-06-28 17:32:44 +08:00
markdownlint.sh docs: move document from /docs to d7y.io (#1229) 2023-06-28 17:33:12 +08:00
protoc.sh feat: generate grpc protos in namely/protoc-all image (#1187) 2023-06-28 17:33:08 +08:00
start-cdn.sh chore: unify binary directory (#828) 2023-06-28 17:32:37 +08:00
update-kustomize-native.sh Feature: add kustomize yaml for deploying (#349) 2023-06-28 17:27:59 +08:00
update-version-gorelease.sh chore: update gorelease ldflags (#1086) 2023-06-28 17:32:58 +08:00