# README
Forked Terraform packages
This directory contains a subset of code from Terraform's internal packages. However, the implementation is not exactly the same, it is just a fork, and simplifications and changes have been made according to our project.
Previously, TFLint uses Terraform as a library, but due to the package internalization, it is no longer possible to import from external packages such as TFLint. This is why TFLint has its own fork.
This package provides functionality for static analysis of Terraform Language.
# Packages
No description provided by the author
No description provided by the author
Package ipaddr is a fork of a subset of the Go standard "net" package which retains parsing behaviors from Go 1.16 or earlier.
No description provided by the author
No description provided by the author
Package tfhcl is a fork of hcl/ext/dynblock.
# Functions
No description provided by the author
BuildConfig constructs a Config from a root module by loading all of its descendent modules via the given ModuleWalker.
DefaultVariableValues returns InputValues using the default values of variables declared in the configuration.
EnvironmentVariableValues looks up `TF_VAR_*` env variables and returns InputValues.
NewEmptyConfig constructs a single-node configuration tree with an empty root module.
No description provided by the author
NewLoader creates and returns a loader that reads configuration from the given filesystem.
NewParser creates and returns a new Parser that reads files from the given filesystem.
ParseVariableValues parses the variable values passed as CLI flags and returns InputValues.
VariableValues returns a value map based on configuration, environment variables, and external input values.
No description provided by the author
# Constants
CallAllModule calls all (local/remote) modules.
CallLocalModule calls only local modules.
CallNoModule does not call any modules.
VariableParseHCL is a variable parsing mode that attempts to parse the given string as an HCL expression and returns the result.
VariableParseLiteral is a variable parsing mode that just takes the given string directly as a cty.String value.
# Structs
A Config is a node in the tree of modules within a configuration.
No description provided by the author
No description provided by the author
No description provided by the author
Loader is a fork of configload.Loader.
No description provided by the author
No description provided by the author
No description provided by the author
ModuleRequest is used with the ModuleWalker interface to describe a child module that must be loaded.
Parser is a fork of configs.Parser.
No description provided by the author
No description provided by the author
# Interfaces
A ModuleWalker knows how to find and load a child module given details about the module to be loaded and a reference to its partially-loaded parent Config.
# Type aliases
CallModuleType is a type of module to call.
No description provided by the author
ModuleWalkerFunc is an implementation of ModuleWalker that directly wraps a callback function, for more convenient use of that interface.
VariableParsingMode defines how values of a particular variable given by text-only mechanisms (command line arguments and environment variables) should be parsed to produce the final value.