Documentation ¶
Index ¶
- func Functions(target fs.FS, baseDir string) map[string]function.Function
- func OptionStopOnHCLError(stop bool) options.ParserOption
- func OptionWithDownloads(allowed bool) options.ParserOption
- func OptionWithTFVarsPaths(paths ...string) options.ParserOption
- func OptionWithWorkspaceName(workspaceName string) options.ParserOption
- type ConfigurableTerraformParser
- type Metrics
- type ModuleDefinition
- type ModuleResolver
- type Option
- type Parser
- func (p *Parser) EvaluateAll(ctx context.Context) (terraform.Modules, cty.Value, error)
- func (p *Parser) GetFilesystemMap() map[string]fs.FS
- func (p *Parser) Metrics() Metrics
- 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) SetDebugWriter(writer io.Writer)
- 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 ¶
This section is empty.
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 OptionWithDownloads ¶
func OptionWithDownloads(allowed 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) ParseFS ¶
ParseFS parses a root module, where it exists at the root of the provided filesystem
func (*Parser) SetAllowDownloads ¶
func (*Parser) SetDebugWriter ¶
func (*Parser) SetSkipRequiredCheck ¶
func (*Parser) SetStopOnHCLError ¶
func (*Parser) SetTFVarsPaths ¶
func (*Parser) SetWorkspaceName ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.