Documentation ¶
Index ¶
- 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
- type GenericBlocks
- type LocalsBlock
- type MappingCfg
- type Marshaler
- type ModulesSpec
- type Parser
- type RepositoryOption
- type Writer
- type WriterOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicContext ¶
func BasicContext(vaultGetter vaultHelpers.VaultGetter) *hcl.EvalContext
func FullContext ¶
func MapToCtyVal ¶
func MapToCtyVal(val any, cfg MappingCfg) (cty.Value, error)
Types ¶
type GenericBlock ¶
type GenericBlocks ¶
type GenericBlocks []GenericBlock
func (GenericBlocks) Blocks ¶
func (b GenericBlocks) Blocks() []GenericBlock
type LocalsBlock ¶
type LocalsBlock struct {
hcl.Body `hcl:",remain"`
}
type MappingCfg ¶
type ModulesSpec ¶
type ModulesSpec struct { Locals []LocalsBlock `hcl:"locals,block"` Tools GenericBlocks `hcl:"tool,block"` Tasks GenericBlocks `hcl:"task,block"` Builds GenericBlocks `hcl:"build,block"` Packages GenericBlocks `hcl:"package,block"` // contains filtered or unexported fields }
func (ModulesSpec) Repository ¶
func (s ModulesSpec) Repository( evalCtx *hcl.EvalContext, diagsWriter hcl.DiagnosticWriter, registry *modules.TypeRegistry, outDir string, opts ...RepositoryOption, ) (*modules.Repository, error)
type Parser ¶
type Parser struct { Body hcl.Body // contains filtered or unexported fields }
func (*Parser) DiagsWriter ¶
func (p *Parser) DiagsWriter() hcl.DiagnosticWriter
type RepositoryOption ¶
type RepositoryOption func(evalCtx *hcl.EvalContext) error
func WithGlobalVariable ¶
func WithGlobalVariable(key string, value any) RepositoryOption
type Writer ¶
type Writer[T modules.ModuleWithMeta] struct { // contains filtered or unexported fields }
func NewWriter ¶
func NewWriter[T modules.ModuleWithMeta](w io.Writer, opts ...WriterOption) *Writer[T]
type WriterOption ¶
type WriterOption func(*writerCfg)
func WithSkipZeroValues ¶
func WithSkipZeroValues(skip bool) WriterOption
Click to show internal directories.
Click to hide internal directories.