mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 15:37:50 -08:00
* feat(config): support HCL1 files * feat(config): support HCL2 files * feat(hcl): add Version() * feat(config): support HCL files - combine HCL2.0 and HCL1.0 parsing, checking for conformation to HCL2.0 spec first - checks for HCL1.0 conformation if content does not comply with HCL2.0 spec - parsing returns an error only if file content does not comply with BOTH HCL2.0 and HCL1.0 * add Type() test Co-authored-by: knqyf263 <knqyf263@gmail.com>
11 lines
158 B
Go
11 lines
158 B
Go
package config
|
|
|
|
const (
|
|
YAML = "yaml"
|
|
JSON = "json"
|
|
TOML = "toml"
|
|
Dockerfile = "dockerfile"
|
|
HCL1 = "hcl1"
|
|
HCL2 = "hcl2"
|
|
)
|