(domainLcuuid, subDomainLcuuid string, version int)
| 145 | } |
| 146 | |
| 147 | func (m *Manager) TriggerKubernetesRefresh(domainLcuuid, subDomainLcuuid string, version int) error { |
| 148 | m.mutex.RLock() |
| 149 | defer m.mutex.RUnlock() |
| 150 | cloudTask, ok := m.taskMap[domainLcuuid] |
| 151 | if !ok { |
| 152 | return errors.New(fmt.Sprintf("domain (%s) not found", domainLcuuid)) |
| 153 | } |
| 154 | k8sGatherTaskMap := cloudTask.Cloud.GetKubernetesGatherTaskMap() |
| 155 | gather, ok := k8sGatherTaskMap[subDomainLcuuid] |
| 156 | if !ok { |
| 157 | return errors.New(fmt.Sprintf("domain (%s) not found gather (%s)", domainLcuuid, subDomainLcuuid)) |
| 158 | } |
| 159 | return gather.PutRefreshSignal(version) |
| 160 | } |
| 161 | |
| 162 | func (m *Manager) GetRecorder(domainLcuuid string) (recorder.Recorder, error) { |
| 163 | m.mutex.RLock() |
no test coverage detected