DockerCLI/cli/config
Sebastiaan van Stijn 555aba27af
cli/config/credentials: refactor DetectDefaultStore and add tests
Refactor the DetectDefaultStore to allow testing it cross-platform, and
without the actual helpers installed.

This also makes a small change in the logic for detecting the preferred
helper. Previously, it only detected the "helper" binary ("pass"), but
would fall back to using plain-text if the pass credentials-helper was
not installed.

With this patch, it falls back to the platform default (secretservice),
before falling back to using no credentials helper (and storing unencrypted).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-10-28 23:25:47 +01:00
..
configfile test spring-cleaning 2024-07-04 01:35:12 +02:00
credentials cli/config/credentials: refactor DetectDefaultStore and add tests 2024-10-28 23:25:47 +01:00
types Remove docker api dependency from cli/config 2019-01-31 21:25:43 +00:00
config.go cli/config: improve error when failing to parse config file 2024-10-21 18:26:02 +02:00
config_test.go cli/config: improve error when failing to parse config file 2024-10-21 18:26:02 +02:00