(lcuuid string)
| 77 | } |
| 78 | |
| 79 | func (m *Manager) GetCloudResource(lcuuid string) (model.Resource, error) { |
| 80 | var cloudResource model.Resource |
| 81 | |
| 82 | m.mutex.RLock() |
| 83 | defer m.mutex.RUnlock() |
| 84 | task, ok := m.taskMap[lcuuid] |
| 85 | if !ok { |
| 86 | return model.Resource{}, errors.New(fmt.Sprintf("domain (%s) not found", lcuuid)) |
| 87 | } |
| 88 | cloudResource = task.Cloud.GetResource() |
| 89 | return cloudResource, nil |
| 90 | } |
| 91 | |
| 92 | func (m *Manager) TriggerDomain(lcuuid string) error { |
| 93 | m.mutex.RLock() |
no test coverage detected