MCPcopy Index your code
hub / github.com/deepflowio/deepflow / GetSubDomainResource

Method GetSubDomainResource

server/controller/manager/manager.go:118–128  ·  view source on GitHub ↗
(lcuuid, subDomainLcuuid string)

Source from the content-addressed store, hash-verified

116}
117
118func (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
130func (m *Manager) GetKubernetesGatherResource(lcuuid, subDomainLcuuid string) (gathermodel.KubernetesGatherResource, error) {
131 m.mutex.RLock()

Callers 1

Calls 1

ErrorfMethod · 0.45

Tested by

no test coverage detected