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.

model.go 1.3 kB

3 months ago
3 months ago
123456789101112131415161718192021222324252627282930313233343536373839
  1. package cloud
  2. type RespErr struct {
  3. Code int32 `json:"code"`
  4. Message string `json:"message"`
  5. }
  6. type Resp struct {
  7. Code int32 `json:"code"`
  8. Message string `json:"msg"`
  9. Data interface{} `json:"data"`
  10. }
  11. type CreateParam struct {
  12. ContainerGroupName string `json:"containerGroupName"`
  13. Description string `json:"description,omitempty"`
  14. Name string `json:"name"`
  15. Image string `json:"image"`
  16. Cpu string `json:"cpu,omitempty"`
  17. Memory string `json:"memory,omitempty"`
  18. Port int32 `json:"port,omitempty"`
  19. NodePort int32 `json:"nodePort,omitempty"`
  20. MountPath string `json:"mountPath,omitempty"`
  21. Args []string `json:"args,omitempty"`
  22. Envs []struct {
  23. Name string `json:"name,omitempty"`
  24. Value string `json:"value,omitempty"`
  25. } `json:"envs,omitempty"`
  26. CreateParameter interface{} `json:"createParameter,omitempty"`
  27. }
  28. type DeleteParam struct {
  29. Name string `json:"name,omitempty"`
  30. DeleteParameter interface{} `json:"deleteParameter,omitempty"`
  31. }
  32. type GetParam struct {
  33. Name string `json:"name,omitempty"`
  34. GetParameter interface{} `json:"getParameter,omitempty"`
  35. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.