Skip to main content

Module connection

Module connection 

Source
Expand description

Static checks of a profile entry’s connection settings, from the fields a plugin declares: a required field missing, an unknown key, a value of the wrong FieldKind or not one of its choices. The SDK runs them for validate_connection and before open and deliver, then the plugin’s own rules, so dre validate and dre run say the same thing. Nothing here touches the network.

Structs§

Checked
What the checks found: errors stop a run; warnings (an unknown key) don’t.

Constants§

CORE_KEYS
Keys of a profile entry that core reads, which a plugin may ignore.

Functions§

check
Check connection against fields. Keys in unresolved (an unset env_var()) count as set but aren’t checked. Messages name fields, never values.
closest
The declared name closest to key, if it’s near enough to be a typo.
redact
messages with every secret field’s value replaced by *****, so a plugin’s rule that quotes a value can’t leak it.