Skip to content

Commit

Permalink
config: Refactor AgentConfig Source trait implementation
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ansasaki committed Oct 15, 2024
1 parent 31fda1a commit b1501dd
Show file tree
Hide file tree
Showing 4 changed files with 501 additions and 679 deletions.
Loading

0 comments on commit b1501dd

Please sign in to comment.