Documentation ¶
Index ¶
- func FolderChecks(folder []hcl.ParsedFile, config config.ConfigurationLayer) bool
- func MainChecks(conf config.TfvConfig, workDir string) bool
- func VerifyFile(parsedFile hcl.ParsedFile, pattern string, authorizedBlocks []string, ...) bool
- func VerifyMandatoryFilesPresent(parsedFolder []hcl.ParsedFile, mandatoryFiles []string) bool
- func VerifyProvidersVersion(parsedFolder []hcl.ParsedFile) bool
- func VerifyTerraformVersion(parsedFolder []hcl.ParsedFile) bool
- func VerifyVariablesOutputsDescritions(parsedFile hcl.ParsedFile, verifyVariables bool, verifyOutputs bool) (errs []error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FolderChecks ¶
func FolderChecks(folder []hcl.ParsedFile, config config.ConfigurationLayer) bool
FolderChecks run the check inside the given folder
func MainChecks ¶
MainChecks in the main function that will check an entire folder
func VerifyFile ¶
func VerifyFile(parsedFile hcl.ParsedFile, pattern string, authorizedBlocks []string, verifyVariables bool, verifyOutputs bool) bool
VerifyFile launch every check that are file dependant (block names and authorized blocks)
func VerifyMandatoryFilesPresent ¶
func VerifyMandatoryFilesPresent(parsedFolder []hcl.ParsedFile, mandatoryFiles []string) bool
VerifyMandatoryFilesPresent ensure that the mandatory files are present
func VerifyProvidersVersion ¶
func VerifyProvidersVersion(parsedFolder []hcl.ParsedFile) bool
VerifyProvidersVersion ensure that all providers have a version
func VerifyTerraformVersion ¶
func VerifyTerraformVersion(parsedFolder []hcl.ParsedFile) bool
VerifyTerraformVersion ensure that the terraform version is set
func VerifyVariablesOutputsDescritions ¶
func VerifyVariablesOutputsDescritions(parsedFile hcl.ParsedFile, verifyVariables bool, verifyOutputs bool) (errs []error)
VerifyVariablesOutputsDescritions ensure that all the variables and outputs blocks have a descrition
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.