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.

openi.go 1.7 kB

11 months ago
11 months ago
11 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. package storeLink
  2. import (
  3. "context"
  4. "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/collector"
  5. )
  6. type OpenI struct {
  7. Host string
  8. }
  9. func NewOpenI(host string) *OpenI {
  10. return &OpenI{
  11. Host: host,
  12. }
  13. }
  14. func (o OpenI) GetResourceStats(ctx context.Context) (*collector.ResourceStats, error) {
  15. //TODO implement me
  16. panic("implement me")
  17. }
  18. func (o OpenI) GetDatasetsSpecs(ctx context.Context) ([]*collector.DatasetsSpecs, error) {
  19. //TODO implement me
  20. panic("implement me")
  21. }
  22. func (o OpenI) GetAlgorithms(ctx context.Context) ([]*collector.Algorithm, error) {
  23. //TODO implement me
  24. panic("implement me")
  25. }
  26. func (o OpenI) GetTrainingTaskLog(ctx context.Context, taskId string, instanceNum string) (string, error) {
  27. //TODO implement me
  28. panic("implement me")
  29. }
  30. func (o OpenI) GetTrainingTask(ctx context.Context, taskId string) (*collector.Task, error) {
  31. //TODO implement me
  32. panic("implement me")
  33. }
  34. func (o OpenI) DownloadAlgorithmCode(ctx context.Context, resourceType string, card string, taskType string, dataset string, algorithm string) (string, error) {
  35. //TODO implement me
  36. panic("implement me")
  37. }
  38. func (o OpenI) UploadAlgorithmCode(ctx context.Context, resourceType string, card string, taskType string, dataset string, algorithm string, code string) error {
  39. //TODO implement me
  40. panic("implement me")
  41. }
  42. func (o OpenI) GetComputeCards(ctx context.Context) ([]string, error) {
  43. //TODO implement me
  44. panic("implement me")
  45. }
  46. func (o OpenI) GetUserBalance(ctx context.Context) (float64, error) {
  47. //TODO implement me
  48. panic("implement me")
  49. }
  50. func (o OpenI) GetResourceSpecs(ctx context.Context) (*collector.ResourceSpec, error) {
  51. //TODO implement me
  52. panic("implement me")
  53. }

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.