tfparse
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- func BuildEvalContext(vars map[string]string, params map[string]string) *hcl.EvalContext
- func CtyValueString(val cty.Value) (string, error)
- func Functions() map[string]function.Function
- func WriteArchive(bs []byte, mimetype string, path string) error
- type Option
- type Parser
- func (p *Parser) CoderParameterDefaults(ctx context.Context, varsDefaults map[string]string, names map[string]struct{}) (map[string]string, error)
- func (p *Parser) TemplateVariables() ([]*proto.TemplateVariable, error)
- func (p *Parser) VariableDefaults(ctx context.Context) (map[string]string, error)
- func (p *Parser) WorkspaceTagDefaults(ctx context.Context) (map[string]string, error)
- func (p *Parser) WorkspaceTags(ctx context.Context) (map[string]string, map[string]struct{}, error)
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcBuildEvalContext¶added inv2.18.2
BuildEvalContext builds an evaluation context for the given variable and parameter defaults.
funcCtyValueString¶added inv2.18.2
CtyValueString converts a cty.Value to a string.It supports only primitive types - bool, number, and string.As a special case, it also supports map[string]interface{} with key "value".
Types¶
typeOption¶added inv2.18.0
type Option func(*Parser)
Option is an option for a new instance of Parser.
funcWithLogger¶added inv2.18.0
WithLogger sets the logger to be used by Parser
typeParser¶added inv2.18.0
type Parser struct {// contains filtered or unexported fields}
Parser parses a Terraform module on disk.
funcNew¶added inv2.18.0
func New(workdirstring, opts ...Option) (*Parser,tfconfig.Diagnostics)
New returns a new instance of Parser, as well as any diagnosticsencountered while parsing the module.
func (*Parser)CoderParameterDefaults¶added inv2.18.0
func (p *Parser) CoderParameterDefaults(ctxcontext.Context, varsDefaults map[string]string, names map[string]struct{}) (map[string]string,error)
CoderParameterDefaults returns the default values of all coder_parameter data sourcesin the parsed module.
func (*Parser)TemplateVariables¶added inv2.18.0
func (p *Parser) TemplateVariables() ([]*proto.TemplateVariable,error)
TemplateVariables returns all of the Terraform variables in the moduleas TemplateVariables.
func (*Parser)VariableDefaults¶added inv2.18.0
VariableDefaults returns the default values for all variables in the module.
func (*Parser)WorkspaceTagDefaults¶added inv2.18.0
func (*Parser)WorkspaceTags¶added inv2.18.0
WorkspaceTags looks for all coder_workspace_tags datasource in the moduleand returns the raw values for the tags. It also returns the set ofvariables referenced by any expressions in the raw values of tags.