SetToolScopeMapFromInventory builds and stores a tool scope map from an inventory. This should be called after building the inventory to make scopes available for middleware.
(inv *inventory.Inventory)
| 20 | // SetToolScopeMapFromInventory builds and stores a tool scope map from an inventory. |
| 21 | // This should be called after building the inventory to make scopes available for middleware. |
| 22 | func SetToolScopeMapFromInventory(inv *inventory.Inventory) { |
| 23 | globalToolScopeMap = GetToolScopeMapFromInventory(inv) |
| 24 | } |
| 25 | |
| 26 | // SetGlobalToolScopeMap sets the global tool scope map directly. |
| 27 | // This is useful for testing when you don't have a full inventory. |
no test coverage detected