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

Method AddVPC

server/controller/recorder/cache/tool/data_set.go:374–378  ·  view source on GitHub ↗
(item *metadbmodel.VPC)

Source from the content-addressed store, hash-verified

372}
373
374func (t *DataSet) AddVPC(item *metadbmodel.VPC) {
375 t.vpcLcuuidToID[item.Lcuuid] = item.ID
376 t.vpcIDToLcuuid[item.ID] = item.Lcuuid
377 t.GetLogFunc()(addToToolMap(ctrlrcommon.RESOURCE_TYPE_VPC_EN, item.Lcuuid), t.metadata.LogPrefixes)
378}
379
380func (t *DataSet) DeleteVPC(lcuuid string) {
381 id, _ := t.GetVPCIDByLcuuid(lcuuid)

Callers 2

GetVPCIDByLcuuidMethod · 0.95
GetVPCLcuuidByIDMethod · 0.95

Calls 2

addToToolMapFunction · 0.85
GetLogFuncMethod · 0.45

Tested by

no test coverage detected