tflint

package
v0.50.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 10 Imported by: 0

README

tflint

This package allows us to embed tflint in Terragrunt, enabling it to be natively executed from the before and after hooks without having to install tflint separately. Since tflint is licensed with MPL, we are required to let you know where you can find its source code: https://github.com/terraform-linters/tflint. }

Documentation

Index

Constants

View Source
const (
	// TFVarPrefix Prefix to use for terraform variables set with environment variables.
	TFVarPrefix      = "TF_VAR_"
	ArgVarPrefix     = "-var="
	ArgVarFilePrefix = "-var-file="
	TFExternalTFLint = "--terragrunt-external-tflint"
)

Variables

This section is empty.

Functions

func RunTflintWithOpts

func RunTflintWithOpts(terragruntOptions *options.TerragruntOptions, terragruntConfig *config.TerragruntConfig, hook config.Hook) error

RunTflintWithOpts runs tflint with the given options and returns an error if there are any issues.

Types

type ConfigNotFound

type ConfigNotFound struct {
	// contains filtered or unexported fields
}

func (ConfigNotFound) Error

func (err ConfigNotFound) Error() string

type ErrorRunningTflint

type ErrorRunningTflint struct {
	// contains filtered or unexported fields
}

func (ErrorRunningTflint) Error

func (err ErrorRunningTflint) Error() string

type IssuesFound

type IssuesFound struct{}

func (IssuesFound) Error

func (err IssuesFound) Error() string

type UnknownError

type UnknownError struct {
	// contains filtered or unexported fields
}

func (UnknownError) Error

func (err UnknownError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL