You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

object.go 1.4 kB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package coordinator
  2. import (
  3. "gitlink.org.cn/cloudream/common/pkg/mq"
  4. coormsg "gitlink.org.cn/cloudream/storage-common/pkgs/mq/message/coordinator"
  5. )
  6. type ObjectService interface {
  7. GetObjectsByDirName(msg *coormsg.GetObjectsByDirName) (*coormsg.GetObjectsResp, *mq.CodeMessage)
  8. PreDownloadObject(msg *coormsg.PreDownloadObject) (*coormsg.PreDownloadObjectResp, *mq.CodeMessage)
  9. PreUploadRepObject(msg *coormsg.PreUploadRepObject) (*coormsg.PreUploadResp, *mq.CodeMessage)
  10. CreateRepObject(msg *coormsg.CreateRepObject) (*coormsg.CreateObjectResp, *mq.CodeMessage)
  11. PreUpdateRepObject(msg *coormsg.PreUpdateRepObject) (*coormsg.PreUpdateRepObjectResp, *mq.CodeMessage)
  12. UpdateRepObject(msg *coormsg.UpdateRepObject) (*coormsg.UpdateRepObjectResp, *mq.CodeMessage)
  13. PreUploadEcObject(msg *coormsg.PreUploadEcObject) (*coormsg.PreUploadEcResp, *mq.CodeMessage)
  14. CreateEcObject(msg *coormsg.CreateEcObject) (*coormsg.CreateObjectResp, *mq.CodeMessage)
  15. DeleteObject(msg *coormsg.DeleteObject) (*coormsg.DeleteObjectResp, *mq.CodeMessage)
  16. }
  17. func init() {
  18. Register(ObjectService.GetObjectsByDirName)
  19. Register(ObjectService.PreDownloadObject)
  20. Register(ObjectService.PreUploadRepObject)
  21. Register(ObjectService.CreateRepObject)
  22. Register(ObjectService.PreUpdateRepObject)
  23. Register(ObjectService.UpdateRepObject)
  24. Register(ObjectService.PreUploadEcObject)
  25. Register(ObjectService.CreateEcObject)
  26. Register(ObjectService.DeleteObject)
  27. }

本项目旨在将云际存储公共基础设施化,使个人及企业可低门槛使用高效的云际存储服务(安装开箱即用云际存储客户端即可,无需关注其他组件的部署),同时支持用户灵活便捷定制云际存储的功能细节。