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 ConfigurableTerraformParser ¶ added in v0.39.0
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) GetFilesystemMap ¶ added in v0.36.0
func (*Parser) ParseFS ¶
ParseFS parses a root module, where it exists at the root of the provided filesystem
func (*Parser) SetAllowDownloads ¶ added in v0.39.0
func (*Parser) SetDebugWriter ¶ added in v0.39.0
func (*Parser) SetSkipRequiredCheck ¶ added in v0.39.0
func (*Parser) SetStopOnHCLError ¶ added in v0.39.0
func (*Parser) SetTFVarsPaths ¶ added in v0.39.0
func (*Parser) SetWorkspaceName ¶ added in v0.39.0
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/marks Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs
|
Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/marks Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs |
Click to show internal directories.
Click to hide internal directories.