diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2023-08-02 14:34:57 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-02 14:34:57 +1000 |
| commit | a7d8057c28063c9676e70023b58624d6fd8c7d99 (patch) | |
| tree | bffb7e718ea65215dce762a734bcff4df5587a37 /internal/configuration/types.go | |
| parent | 514ab24841fef905d7810c3bdb0d4fdf9b5caeb3 (diff) | |
test(configuration): add several scenarios (#5708)
This adds several tests to current expected scenarios and makes some minor adjustments specifically for testability and consistency. The tests are intended to cover a specific scenario which was described by a user which cannot be replicated at this stage.
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/configuration/types.go')
| -rw-r--r-- | internal/configuration/types.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/internal/configuration/types.go b/internal/configuration/types.go index 198e829a1..ad80eaa10 100644 --- a/internal/configuration/types.go +++ b/internal/configuration/types.go @@ -18,7 +18,14 @@ type Source interface { type FileSource struct { koanf *koanf.Koanf path string - filters []FileFilter + filters []BytesFilter +} + +// BytesSource is a raw bytes configuration.Source. +type BytesSource struct { + koanf *koanf.Koanf + data []byte + filters []BytesFilter } // EnvironmentSource is a configuration.Source which loads values from the environment. |
