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.

modelarts.go 1.5 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package impl
  2. import (
  3. "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/scheduler/service/collector"
  4. "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/scheduler/service/executor"
  5. "gitlink.org.cn/jcce-pcm/pcm-participant-modelarts/client/imagesservice"
  6. "gitlink.org.cn/jcce-pcm/pcm-participant-modelarts/client/modelartsservice"
  7. )
  8. type ModelArtsExecutor struct {
  9. Name string
  10. pageIndex int32
  11. pageSize int32
  12. ModelArtsRpc modelartsservice.ModelArtsService
  13. ModelArtsImgRpc imagesservice.ImagesService
  14. }
  15. func NewModelartsExecutor(modelArtsRpc modelartsservice.ModelArtsService, modelArtsImgRpc imagesservice.ImagesService, name string) *ModelArtsExecutor {
  16. return &ModelArtsExecutor{Name: name, ModelArtsRpc: modelArtsRpc, ModelArtsImgRpc: modelArtsImgRpc, pageIndex: 1, pageSize: 100}
  17. }
  18. func (m ModelArtsExecutor) QueryImageList() ([]executor.Image, error) {
  19. //TODO implement me
  20. panic("implement me")
  21. }
  22. func (m ModelArtsExecutor) SubmitTask(imageId string, cmd string, envs []string, params []string, resourceId string) (executor.Task, error) {
  23. //TODO implement me
  24. panic("implement me")
  25. }
  26. func (m ModelArtsExecutor) QueryTask(taskId string) (executor.Task, error) {
  27. //TODO implement me
  28. panic("implement me")
  29. }
  30. func (m ModelArtsExecutor) QuerySpecs() (executor.Spec, error) {
  31. //TODO implement me
  32. panic("implement me")
  33. }
  34. func (a *ModelArtsExecutor) GetResourceSpecs() (*collector.ResourceSpecs, error) {
  35. return nil, nil
  36. }

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.