Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvaluateExpressionValue ¶
func EvaluateExpressionValue(eval evaluator.ExpressionEvaluator, value string) string
EvaluateExpressionValue evaluates value through eval with deferred evaluation enabled so secrets resolve immediately. Formats a resolution error inline as "<ERROR: ...>" and normalizes a nil result to the empty string.
func Parse ¶
Parse parses standard dotenv content (KEY=VALUE lines, # comments, blank lines) into a map. Lines without a top-level "=" are skipped silently.
func ShouldUseCache ¶
ShouldUseCache reports whether a cached value should be reused rather than re-evaluated, based on the NO_CACHE environment variable (read via lookupEnv). Cache is enabled by default and disabled by setting NO_CACHE=1 or NO_CACHE=true.
func WarnOnLoosePermissions ¶
WarnOnLoosePermissions writes a non-fatal warning to w when path's mode is group- or world-accessible rather than restricted to the owner (0600-equivalent). A no-op when goos is "windows": NTFS has no owner/group/other model, so FileMode bits there don't reflect real ACL restrictiveness and chmod has no equivalent.
Types ¶
This section is empty.