Move config validation code to it's own, non ENT specific file (#11579)

* Move config validation code to it's own, non ENT specific file

* Fix imports

* import order
This commit is contained in:
Scott Miller
2021-05-11 11:59:08 -05:00
committed by GitHub
parent 3c845deaf9
commit d21e60eaa9
3 changed files with 62 additions and 59 deletions

View File

@@ -4,7 +4,6 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/hashicorp/hcl/hcl/token"
"io"
"io/ioutil"
"os"
@@ -23,7 +22,7 @@ import (
// Config is the configuration for the vault server.
type Config struct {
UnusedKeys map[string][]token.Pos `hcl:",unusedKeyPositions"`
UnusedKeys configutil.UnusedKeyMap `hcl:",unusedKeyPositions"`
entConfig
*configutil.SharedConfig `hcl:"-"`