Documentation ¶
Index ¶
- Variables
- func Functions(target fs.FS, baseDir string) map[string]function.Function
- type ModuleDefinition
- type ModuleResolver
- type Option
- func OptionStopOnHCLError(stop bool) Option
- func OptionWithConfigsFS(fsys fs.FS) Option
- func OptionWithDownloads(allowed bool) Option
- func OptionWithSkipCachedModules(b bool) Option
- func OptionWithSkipDirs(dirs []string) Option
- func OptionWithSkipFiles(files []string) Option
- func OptionWithTFVarsPaths(paths ...string) Option
- func OptionWithWorkspaceName(workspaceName string) Option
- func OptionsWithTfVars(vars map[string]cty.Value) Option
- type Parser
- func (p *Parser) EvaluateAll(ctx context.Context) (terraform.Modules, cty.Value, error)
- func (p *Parser) FindRootModules(ctx context.Context, dirs []string) ([]string, error)
- func (p *Parser) GetFilesystemMap() map[string]fs.FS
- func (p *Parser) Load(ctx context.Context) (*evaluator, error)
- func (p *Parser) ParseFS(ctx context.Context, dir string) error
- func (p *Parser) ParseFile(_ context.Context, fullPath string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoFiles = errors.New("no files found")
Functions ¶
Types ¶
type ModuleDefinition ¶
type ModuleResolver ¶
type Option ¶
type Option func(p *Parser)
func OptionStopOnHCLError ¶
func OptionWithConfigsFS ¶
func OptionWithDownloads ¶
func OptionWithSkipDirs ¶
func OptionWithSkipFiles ¶
func OptionWithTFVarsPaths ¶
func OptionWithWorkspaceName ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser is a tool for parsing terraform templates at a given file system location
func (*Parser) EvaluateAll ¶
func (*Parser) FindRootModules ¶
FindRootModules takes a list of module paths and identifies the root local modules. It builds a graph based on the module dependencies and determines the modules that have no incoming dependencies, considering them as root modules.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.