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.

mount.go 829 B

7 months ago
1234567891011121314151617181920212223242526272829303132333435363738
  1. package api
  2. import (
  3. "net/http"
  4. "gitlink.org.cn/cloudream/common/sdks"
  5. "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount"
  6. )
  7. type MountService struct {
  8. *Client
  9. }
  10. func (c *Client) Mount() *MountService {
  11. return &MountService{
  12. Client: c,
  13. }
  14. }
  15. const MountDumpStatusPath = "/v1/mount/dumpStatus"
  16. type MountDumpStatus struct{}
  17. func (r *MountDumpStatus) MakeParam() *sdks.RequestParam {
  18. return sdks.MakeQueryParam(http.MethodGet, MountDumpStatusPath, r)
  19. }
  20. type MountDumpStatusPathResp struct {
  21. mount.MountStatus
  22. }
  23. func (r *MountDumpStatusPathResp) ParseResponse(resp *http.Response) error {
  24. return sdks.ParseCodeDataJSONResponse(resp, r)
  25. }
  26. func (c *MountService) DumpStatus(req MountDumpStatus) (*MountDumpStatusPathResp, error) {
  27. return JSONAPI(c.cfg, http.DefaultClient, &req, &MountDumpStatusPathResp{})
  28. }

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