Documentation ¶
Index ¶
- Variables
- func Functions(target fs.FS, baseDir string) map[string]function.Function
- func OptionStopOnHCLError(stop bool) options.ParserOption
- func OptionWithConfigsFS(fsys fs.FS) options.ParserOption
- func OptionWithDownloads(allowed bool) options.ParserOption
- func OptionWithSkipCachedModules(b bool) options.ParserOption
- func OptionWithTFVarsPaths(paths ...string) options.ParserOption
- func OptionWithWorkspaceName(workspaceName string) options.ParserOption
- type ConfigurableTerraformParser
- type ModuleDefinition
- type ModuleResolver
- type 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
- func (p *Parser) SetAllowDownloads(b bool)
- func (p *Parser) SetConfigsFS(fsys fs.FS)
- func (p *Parser) SetDebugWriter(writer io.Writer)
- func (p *Parser) SetSkipCachedModules(b bool)
- func (p *Parser) SetSkipRequiredCheck(b bool)
- func (p *Parser) SetStopOnHCLError(b bool)
- func (p *Parser) SetTFVarsPaths(s ...string)
- func (p *Parser) SetWorkspaceName(s string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoFiles = errors.New("no files found")
Functions ¶
func Functions ¶
Functions returns the set of functions that should be used to when evaluating expressions in the receiving scope.
func OptionStopOnHCLError ¶
func OptionStopOnHCLError(stop bool) options.ParserOption
func OptionWithConfigsFS ¶
func OptionWithConfigsFS(fsys fs.FS) options.ParserOption
func OptionWithDownloads ¶
func OptionWithDownloads(allowed bool) options.ParserOption
func OptionWithSkipCachedModules ¶
func OptionWithSkipCachedModules(b bool) options.ParserOption
func OptionWithTFVarsPaths ¶
func OptionWithTFVarsPaths(paths ...string) options.ParserOption
func OptionWithWorkspaceName ¶
func OptionWithWorkspaceName(workspaceName string) options.ParserOption
Types ¶
type ModuleDefinition ¶
type ModuleResolver ¶
type Option ¶
type Option func(p ConfigurableTerraformParser)
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.
func (*Parser) ParseFS ¶
ParseFS parses a root module, where it exists at the root of the provided filesystem
func (*Parser) SetAllowDownloads ¶
func (*Parser) SetConfigsFS ¶
func (*Parser) SetDebugWriter ¶
func (*Parser) SetSkipCachedModules ¶
func (*Parser) SetSkipRequiredCheck ¶
func (*Parser) SetStopOnHCLError ¶
func (*Parser) SetTFVarsPaths ¶
func (*Parser) SetWorkspaceName ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.