Thanks to visit codestin.com
Credit goes to pkg.go.dev

tfvars

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Code taken from https://github.com/aquasecurity/trivy/blob/0449787eb52854cbdd7f4c5794adbf58965e60f8/pkg/iac/scanners/terraform/parser/load_vars.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTFVars

func LoadTFVars(srcFS fs.FS, filenames []string) (map[string]cty.Value, error)

func LoadTFVarsFile

func LoadTFVarsFile(srcFS fs.FS, filename string) (map[string]cty.Value, error)

func TFVarFiles

func TFVarFiles(path string, dir fs.FS) ([]string, error)

TFVarFiles extracts any .tfvars files from the given directory. TODO: Test nested directories and how that should behave.

Types

This section is empty.

Jump to

Keyboard shortcuts

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