Versions in this module Expand all Collapse all v0 v0.1.0 Sep 12, 2023 Changes in this version + func BasicContext(vaultGetter vaultHelpers.VaultGetter) *hcl.EvalContext + func FullContext(ctx context.Context, parent *hcl.EvalContext, vaultInst *vault.Vault, ...) *hcl.EvalContext + func MapToCtyVal(val any, cfg MappingCfg) (cty.Value, error) + func MockContext(ctx context.Context, cache state.Cache) *hcl.EvalContext + type GenericBlock struct + BlockBody hcl.Body + BlockName string + ModuleName string + type GenericBlocks []GenericBlock + func (b GenericBlocks) Blocks() []GenericBlock + type LocalsBlock struct + type MappingCfg struct + MapAsObject bool + StructAsMap bool + type Marshaler interface + MarshalHCL func(block *hclwrite.Block) error + type ModulesSpec struct + Builds GenericBlocks + Locals []LocalsBlock + Packages GenericBlocks + Tasks GenericBlocks + Tools GenericBlocks + func (s ModulesSpec) Repository(evalCtx *hcl.EvalContext, diagsWriter hcl.DiagnosticWriter, ...) (*modules.Repository, error) + type Parser struct + Body hcl.Body + func NewParser(logger *slog.Logger, inputFS fs.FS) *Parser + func (p *Parser) DiagsWriter() hcl.DiagnosticWriter + func (p *Parser) Parse(ctx *hcl.EvalContext, val any) error + func (p *Parser) ReadFiles(ctx context.Context) (err error) + type RepositoryOption func(evalCtx *hcl.EvalContext) error + func WithGlobalVariable(key string, value any) RepositoryOption + type Writer struct + func NewWriter(w io.Writer, opts ...WriterOption) *Writer[T] + func (w *Writer[T]) Write(in T) error + type WriterOption func(*writerCfg) + func WithSkipZeroValues(skip bool) WriterOption