ConfigPatch is an interface that can be implemented to patch one or more aspects of a configuration that exists in one or more connector configurations. For instance the importance for all "ssl."-prefix configuration keys can be lowered to "LOW", across all connector plugins that report this configu
| 23 | // the importance for all "ssl."-prefix configuration keys can be lowered to "LOW", |
| 24 | // across all connector plugins that report this configuration. |
| 25 | type ConfigPatch interface { |
| 26 | // IsMatch determines if the definition and value shall be patched for a given |
| 27 | // configuration key or connector class. |
| 28 | IsMatch(configKey, connectorClass string) bool |
| 29 | |
| 30 | // PatchDefinition lets you change the definition. |
| 31 | PatchDefinition(definition model.ConfigDefinition, connectorClass string) model.ConfigDefinition |
| 32 | } |
| 33 | |
| 34 | // IncludeExcludeSelector is a selector consisting of two regexes that you can use |
| 35 | // to match a string. The Include regex is used to match results that generally qualify |
no outgoing calls
no test coverage detected
searching dependent graphs…