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.

octopus.go 1.2 kB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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-octopus/octopusclient"
  6. )
  7. type OctopusExecutor struct {
  8. Name string
  9. pageIndex int32
  10. pageSize int32
  11. OctopusRpc octopusclient.Octopus
  12. }
  13. func NewOctopusExecutor(OctopusRpc octopusclient.Octopus, name string) *OctopusExecutor {
  14. return &OctopusExecutor{OctopusRpc: OctopusRpc, Name: name, pageIndex: 1, pageSize: 100}
  15. }
  16. func (o OctopusExecutor) QueryImageList() ([]executor.Image, error) {
  17. //TODO implement me
  18. panic("implement me")
  19. }
  20. func (o OctopusExecutor) SubmitTask(imageId string, cmd string, envs []string, params []string, resourceId string) (executor.Task, error) {
  21. //TODO implement me
  22. panic("implement me")
  23. }
  24. func (o OctopusExecutor) QueryTask(taskId string) (executor.Task, error) {
  25. //TODO implement me
  26. panic("implement me")
  27. }
  28. func (o OctopusExecutor) QuerySpecs() (executor.Spec, error) {
  29. //TODO implement me
  30. panic("implement me")
  31. }
  32. func (a *OctopusExecutor) GetResourceSpecs() (*collector.ResourceSpecs, error) {
  33. return nil, nil
  34. }

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.