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.

main.go 682 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
12345678910111213141516171819202122232425262728293031323334353637383940
  1. package main
  2. import (
  3. //"context"
  4. //"io"
  5. "fmt"
  6. "os"
  7. //"path/filepath"
  8. //"sync"
  9. "strconv"
  10. //agentcaller "proto"
  11. //"github.com/pborman/uuid"
  12. //"github.com/streadway/amqp"
  13. //"google.golang.org/grpc"
  14. _ "google.golang.org/grpc/balancer/grpclb"
  15. )
  16. func main() {
  17. args := os.Args
  18. arg_num := len(os.Args)
  19. for i := 0; i < arg_num; i++ {
  20. fmt.Println(args[i])
  21. }
  22. switch args[1] {
  23. case "ecWrite":
  24. EcWrite(args[2], args[3], args[4], args[5])
  25. case "write":
  26. numRep, _ := strconv.Atoi(args[5])
  27. RepWrite(args[2], args[3], args[4], numRep)
  28. case "read":
  29. Read(args[2], args[3], args[4])
  30. case "move":
  31. Move(args[2], args[3], args[4]) //bucket object destination
  32. }
  33. }

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

Contributors (1)