Files
trivy/analyzer/config/const.go
aprp 493a70b45c feat(config): support HCL files (fanal#158)
* 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>
2021-03-11 11:09:11 +02:00

11 lines
158 B
Go

package config
const (
YAML = "yaml"
JSON = "json"
TOML = "toml"
Dockerfile = "dockerfile"
HCL1 = "hcl1"
HCL2 = "hcl2"
)