Skip to content

Commit

Permalink
Switch config values to use slicestring json parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
thequailman committed Mar 19, 2024
1 parent 80d8a07 commit d5cf1fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/candiddev/shared/go/errs"
"github.com/candiddev/shared/go/jsonnet"
"github.com/candiddev/shared/go/logger"
"github.com/candiddev/shared/go/types"
)

var (
Expand All @@ -27,11 +28,11 @@ type cfg struct {
Algorithms cfgAlgorithms `json:"algorithms"`
CLI cli.Config `json:"cli"`
DecryptKeys map[string]cfgDecryptKey `json:"decryptKeys"`
Keys []string `json:"keys"`
Keys types.SliceString `json:"keys"`
KeyPath string `json:"keyPath"`
PrivateKey cryptolib.Key[cryptolib.KeyProviderPrivate] `json:"privateKey,omitempty"`
PublicKey cryptolib.Key[cryptolib.KeyProviderPublic] `json:"publicKey"`
Unmask []string `json:"unmask"`
Unmask types.SliceString `json:"unmask"`
Values map[string]cfgValue `json:"values"`

keys cryptolib.Keys[cryptolib.KeyProviderPrivate] //nolint:revive
Expand Down

0 comments on commit d5cf1fb

Please sign in to comment.