opentofu/internal/configs/shim.go
Christian Mesh 36eb93f958
Integrate encryption config into configs package (#1295)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-03-04 11:04:45 -05:00

26 lines
810 B
Go

package configs
import (
"github.com/hashicorp/hcl/v2"
"github.com/opentofu/opentofu/internal/configs/hcl2shim"
"github.com/zclconf/go-cty/cty"
)
// These were all moved to the hcl2shim package, but still have uses referenced from this package
// TODO Call sites through opentofu to these functions should be migrated to hcl2shim eventually and this file removed
func MergeBodies(base, override hcl.Body) hcl.Body {
return hcl2shim.MergeBodies(base, override)
}
func exprIsNativeQuotedString(expr hcl.Expression) bool {
return hcl2shim.ExprIsNativeQuotedString(expr)
}
func schemaForOverrides(schema *hcl.BodySchema) *hcl.BodySchema {
return hcl2shim.SchemaForOverrides(schema)
}
func SynthBody(filename string, values map[string]cty.Value) hcl.Body {
return hcl2shim.SynthBody(filename, values)
}