diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2022-06-02 09:18:45 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-02 09:18:45 +1000 |
| commit | 2037a0ee4fd24138e57ca31eadfbf6ed15e52070 (patch) | |
| tree | 72cc8eabd08fc46e169d05bde0e3130a9fc61358 /internal/configuration/types.go | |
| parent | 0d3ee8e730b8735d37099fc6ee082fb28fac361f (diff) | |
fix(commands): hash-password usage instructions (#3437)
This fixes the hash-password usage instructions and ensures it uses mostly a configuration source based config. In addition it updates our recommended argon2id parameters with the RFC recommendations.
Diffstat (limited to 'internal/configuration/types.go')
| -rw-r--r-- | internal/configuration/types.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/configuration/types.go b/internal/configuration/types.go index fe5787be5..90dbaa63c 100644 --- a/internal/configuration/types.go +++ b/internal/configuration/types.go @@ -40,3 +40,9 @@ type CommandLineSource struct { flags *pflag.FlagSet callback func(flag *pflag.Flag) (string, interface{}) } + +// MapSource loads configuration from the command line flags. +type MapSource struct { + m map[string]interface{} + koanf *koanf.Koanf +} |
