(lcuuid, subDomainLcuuid string)
| 116 | } |
| 117 | |
| 118 | func (m *Manager) GetSubDomainResource(lcuuid, subDomainLcuuid string) (model.SubDomainResource, error) { |
| 119 | m.mutex.RLock() |
| 120 | defer m.mutex.RUnlock() |
| 121 | cloudTask, ok := m.taskMap[lcuuid] |
| 122 | if !ok { |
| 123 | return model.SubDomainResource{}, fmt.Errorf("domain (%s) not found", lcuuid) |
| 124 | } |
| 125 | cResource := cloudTask.Cloud.GetSubDomainResource(subDomainLcuuid) |
| 126 | |
| 127 | return cResource.SubDomainResources[subDomainLcuuid], nil |
| 128 | } |
| 129 | |
| 130 | func (m *Manager) GetKubernetesGatherResource(lcuuid, subDomainLcuuid string) (gathermodel.KubernetesGatherResource, error) { |
| 131 | m.mutex.RLock() |
no test coverage detected