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.

cluster.go 694 B

12345678910111213141516171819202122232425262728293031323334
  1. package api
  2. import (
  3. "net/http"
  4. "gitlink.org.cn/cloudream/common/sdks"
  5. )
  6. type ClusterService struct {
  7. *Client
  8. }
  9. func (c *Client) Cluster() *ClusterService {
  10. return &ClusterService{c}
  11. }
  12. var ClusterStatusPath = "/cluster/status"
  13. type ClusterStatus struct{}
  14. func (r *ClusterStatus) MakeParam() *sdks.RequestParam {
  15. return sdks.MakeJSONParam(http.MethodGet, ClusterStatusPath, r)
  16. }
  17. type ClusterStatusResp struct {
  18. }
  19. func (r *ClusterStatusResp) ParseResponse(resp *http.Response) error {
  20. return sdks.ParseCodeDataJSONResponse(resp, r)
  21. }
  22. func (c *ClusterService) Status(req ClusterStatus) (*ClusterStatusResp, error) {
  23. return JSONAPI(&c.cfg, c.httpCli, &req, &ClusterStatusResp{})
  24. }

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