MCPcopy Create free account
hub / github.com/cloudbase/garm / composeControllerWatcherFilters

Function composeControllerWatcherFilters

workers/scaleset/util.go:22–37  ·  view source on GitHub ↗
(entity params.ForgeEntity)

Source from the content-addressed store, hash-verified

20)
21
22func composeControllerWatcherFilters(entity params.ForgeEntity) dbCommon.PayloadFilterFunc {
23 return watcher.WithAny(
24 watcher.WithAll(
25 watcher.WithEntityScaleSetFilter(entity),
26 watcher.WithAny(
27 watcher.WithOperationTypeFilter(dbCommon.CreateOperation),
28 watcher.WithOperationTypeFilter(dbCommon.UpdateOperation),
29 watcher.WithOperationTypeFilter(dbCommon.DeleteOperation),
30 ),
31 ),
32 watcher.WithAll(
33 watcher.WithEntityFilter(entity),
34 watcher.WithOperationTypeFilter(dbCommon.UpdateOperation),
35 ),
36 )
37}

Callers 1

StartMethod · 0.70

Calls 5

WithAnyFunction · 0.92
WithAllFunction · 0.92
WithEntityScaleSetFilterFunction · 0.92
WithOperationTypeFilterFunction · 0.92
WithEntityFilterFunction · 0.92

Tested by

no test coverage detected