Skip to content

Commit ea19b54

Browse files
ansasakiematery
authored andcommitted
config: Refactor AgentConfig Source trait implementation
Instead of using explicit dedicated transformations for each option in the configuration structure, use an intermediary JSON structure to implement the collect() method in a more generic way. This makes it easier to add new configuration options and simplifies maintenance. Also, instead of duplicating the AgentConfig structure to receive the options set in the environment variables, use the built-in Environment Source trait implementation with a small change to make it possible to use as a source for a KeylimeConfig structure. Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]> Signed-off-by: Eugen Matery <[email protected]>
1 parent ff448ec commit ea19b54

File tree

4 files changed

+501
-679
lines changed

4 files changed

+501
-679
lines changed

0 commit comments

Comments
 (0)