funcs

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package funcs provides the expression functions exposed by application HCL evaluation contexts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeEnvFunc

func MakeEnvFunc() function.Function

MakeEnvFunc returns an HCL function that reads an environment variable by name and accepts an optional fallback string. The fallback is returned when the variable is unset or contains an empty value. If no fallback is provided, an unset or empty variable returns an empty string.

func Stdlib

func Stdlib() map[string]function.Function

Stdlib returns the functions available to application HCL expressions. The set includes cty's general helpers, environment lookup, and YAML encoding and decoding. Each call returns a new map that callers may modify independently.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL