Movatterモバイル変換


[0]ホーム

URL:


tfparse

package
v2.23.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2025 License:AGPL-3.0Imports:26Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcBuildEvalContextadded inv2.18.2

func BuildEvalContext(vars map[string]string, params map[string]string) *hcl.EvalContext

BuildEvalContext builds an evaluation context for the given variable and parameter defaults.

funcCtyValueStringadded inv2.18.2

func CtyValueString(valcty.Value) (string,error)

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".

funcFunctionsadded inv2.18.5

func Functions() map[string]function.Function

Functions returns a set of functions that are safe to use in the context ofevaluating Terraform expressions without any ability to reference local files.Functions that refer to file operations are replaced with stubs that return adescriptive error to the user.

funcWriteArchiveadded inv2.18.0

func WriteArchive(bs []byte, mimetypestring, pathstring)error

WriteArchive is a helper function to write a in-memory archivewith the given mimetype to disk. Only zip and tar archivesare currently supported.

Types

typeOptionadded inv2.18.0

type Option func(*Parser)

Option is an option for a new instance of Parser.

funcWithLoggeradded inv2.18.0

func WithLogger(loggerslog.Logger)Option

WithLogger sets the logger to be used by Parser

typeParseradded inv2.18.0

type Parser struct {// contains filtered or unexported fields}

Parser parses a Terraform module on disk.

funcNewadded 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)CoderParameterDefaultsadded 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)TemplateVariablesadded inv2.18.0

func (p *Parser) TemplateVariables() ([]*proto.TemplateVariable,error)

TemplateVariables returns all of the Terraform variables in the moduleas TemplateVariables.

func (*Parser)VariableDefaultsadded inv2.18.0

func (p *Parser) VariableDefaults(ctxcontext.Context) (map[string]string,error)

VariableDefaults returns the default values for all variables in the module.

func (*Parser)WorkspaceTagDefaultsadded inv2.18.0

func (p *Parser) WorkspaceTagDefaults(ctxcontext.Context) (map[string]string,error)

func (*Parser)WorkspaceTagsadded inv2.18.0

func (p *Parser) WorkspaceTags(ctxcontext.Context) (map[string]string, map[string]struct{},error)

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.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp