MCPcopy Create free account
hub / github.com/deepflowio/deepflow / GetSubDomainResource

Method GetSubDomainResource

server/controller/cloud/cloud.go:265–277  ·  view source on GitHub ↗
(lcuuid string)

Source from the content-addressed store, hash-verified

263}
264
265func (c *Cloud) GetSubDomainResource(lcuuid string) model.Resource {
266 sResource := model.Resource{}
267 if c.basicInfo.Type == common.KUBERNETES {
268 return sResource
269 }
270 cResource := c.resource
271 if !cResource.Verified {
272 cResource = c.getOwnDomainResource()
273 }
274 sResource.SubDomainResources = c.getSubDomainDataByLcuuid(lcuuid, cResource)
275 sResource = c.appendResourceProcess(sResource)
276 return sResource
277}
278
279func (c *Cloud) GetKubernetesGatherTaskMap() map[string]*KubernetesGatherTask {
280 return c.kubernetesGatherTaskMap

Callers 2

GetSubDomainResourceFunction · 0.45
getSubDomainResourceFunction · 0.45

Calls 3

getOwnDomainResourceMethod · 0.95
appendResourceProcessMethod · 0.95

Tested by

no test coverage detected