MCPcopy Create free account
hub / github.com/BishopFox/cloudfox / executeChecks

Method executeChecks

aws/lambda.go:229–248  ·  view source on GitHub ↗
(r string, wg *sync.WaitGroup, semaphore chan struct{}, dataReceiver chan Lambda)

Source from the content-addressed store, hash-verified

227}
228
229func (m *LambdasModule) executeChecks(r string, wg *sync.WaitGroup, semaphore chan struct{}, dataReceiver chan Lambda) {
230 defer wg.Done()
231
232 // Use shared ServiceMap instance if provided, otherwise create a new one
233 servicemap := m.ServiceMap
234 if servicemap == nil {
235 servicemap = &awsservicemap.AwsServiceMap{
236 JsonFileSource: "DOWNLOAD_FROM_AWS",
237 }
238 }
239 res, err := servicemap.IsServiceInRegion("lambda", r)
240 if err != nil {
241 m.modLog.Error(err)
242 }
243 if res {
244 m.CommandCounter.IncrTotal()
245 wg.Add(1)
246 m.getLambdasPerRegion(r, wg, semaphore, dataReceiver)
247 }
248}
249
250func (m *LambdasModule) Receiver(receiver chan Lambda, receiverDone chan bool) {
251 defer close(receiverDone)

Callers 1

PrintLambdasMethod · 0.95

Calls 4

getLambdasPerRegionMethod · 0.95
ErrorMethod · 0.80
IncrTotalMethod · 0.80
AddMethod · 0.80

Tested by

no test coverage detected