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.

temp.go 1.0 kB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package coordinator
  2. import (
  3. "gitlink.org.cn/cloudream/common/pkgs/mq"
  4. cdssdk "gitlink.org.cn/cloudream/common/sdks/storage"
  5. stgmod "gitlink.org.cn/cloudream/storage/common/models"
  6. )
  7. // 删除Object
  8. var _ = Register(Service.GetDatabaseAll)
  9. type GetDatabaseAll struct {
  10. mq.MessageBodyBase
  11. UserID cdssdk.UserID `json:"userID"`
  12. }
  13. type GetDatabaseAllResp struct {
  14. mq.MessageBodyBase
  15. Buckets []cdssdk.Bucket `json:"buckets"`
  16. Packages []cdssdk.Package `json:"packages"`
  17. Objects []stgmod.ObjectDetail `json:"objects"`
  18. }
  19. func ReqGetDatabaseAll(userID cdssdk.UserID) *GetDatabaseAll {
  20. return &GetDatabaseAll{
  21. UserID: userID,
  22. }
  23. }
  24. func RespGetDatabaseAll(buckets []cdssdk.Bucket, packages []cdssdk.Package, objects []stgmod.ObjectDetail) *GetDatabaseAllResp {
  25. return &GetDatabaseAllResp{
  26. Buckets: buckets,
  27. Packages: packages,
  28. Objects: objects,
  29. }
  30. }
  31. func (client *Client) GetDatabaseAll(msg *GetDatabaseAll) (*GetDatabaseAllResp, error) {
  32. return mq.Request(Service.GetDatabaseAll, client.rabbitCli, msg)
  33. }

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