mirror of
https://github.com/opentofu/opentofu.git
synced 2026-05-28 04:15:54 -04:00
Some checks are pending
build / Build for freebsd_386 (push) Waiting to run
build / Build for linux_386 (push) Waiting to run
build / Build for openbsd_386 (push) Waiting to run
build / Build for windows_386 (push) Waiting to run
build / Build for freebsd_amd64 (push) Waiting to run
build / Build for linux_amd64 (push) Waiting to run
build / Build for openbsd_amd64 (push) Waiting to run
build / Build for solaris_amd64 (push) Waiting to run
build / Build for windows_amd64 (push) Waiting to run
build / Build for freebsd_arm (push) Waiting to run
build / Build for linux_arm (push) Waiting to run
build / Build for linux_arm64 (push) Waiting to run
build / Build for darwin_amd64 (push) Waiting to run
build / Build for darwin_arm64 (push) Waiting to run
build / End-to-end Tests for linux_386 (push) Waiting to run
build / End-to-end Tests for windows_386 (push) Waiting to run
build / End-to-end Tests for darwin_amd64 (push) Waiting to run
build / End-to-end Tests for linux_amd64 (push) Waiting to run
build / End-to-end Tests for windows_amd64 (push) Waiting to run
Quick Checks / List files changed for pull request (push) Waiting to run
Quick Checks / Unit tests for linux_386 (push) Blocked by required conditions
Quick Checks / Unit tests for linux_amd64 (push) Blocked by required conditions
Quick Checks / Unit tests for windows_amd64 (push) Blocked by required conditions
Quick Checks / Unit tests for linux_arm (push) Blocked by required conditions
Quick Checks / Unit tests for darwin_arm64 (push) Blocked by required conditions
Quick Checks / Unit tests for linux_arm64 (push) Blocked by required conditions
Quick Checks / Race Tests (push) Blocked by required conditions
Quick Checks / End-to-end Tests (push) Blocked by required conditions
Quick Checks / Code Consistency Checks (push) Blocked by required conditions
Quick Checks / License Checks (push) Waiting to run
Website checks / List files changed for pull request (push) Waiting to run
Website checks / Build (push) Blocked by required conditions
Website checks / Test Installation Instructions (push) Blocked by required conditions
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
42 lines
1.7 KiB
Go
42 lines
1.7 KiB
Go
// Copyright (c) The OpenTofu Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright (c) 2023 HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package eval
|
|
|
|
import (
|
|
"github.com/opentofu/opentofu/internal/addrs"
|
|
"github.com/opentofu/opentofu/internal/configs"
|
|
"github.com/opentofu/opentofu/internal/configs/configschema"
|
|
"github.com/opentofu/opentofu/internal/lang/eval/internal/evalglue"
|
|
"github.com/opentofu/opentofu/internal/lang/eval/internal/tofu2024"
|
|
"github.com/opentofu/opentofu/internal/providers"
|
|
)
|
|
|
|
// The symbols aliased in this file are defined in [evalglue] really just to
|
|
// avoid a dependency between this package and the "compiler" packages
|
|
// like ./internal/tofu2024, but we do still need them in our exported API
|
|
// here so that other parts of OpenTofu can interact with the evaluator.
|
|
|
|
type EvalContext = evalglue.EvalContext
|
|
type ProvidersSchema = evalglue.ProvidersSchema
|
|
type ProvisionersSchema = evalglue.ProvisionersSchema
|
|
type ExternalModules = evalglue.ExternalModules
|
|
type UncompiledModule = evalglue.UncompiledModule
|
|
|
|
func ModulesForTesting(modules map[addrs.ModuleSourceLocal]*configs.Module) ExternalModules {
|
|
// This one actually lives in tofu2024 because evalglue isn't allowed to
|
|
// depend on tofu2024 itself, but from the caller's perspective this is
|
|
// still presented as an evalglue re-export because the return type belongs
|
|
// to that package.
|
|
return tofu2024.ModulesForTesting(modules)
|
|
}
|
|
|
|
func ProvidersForTesting(schemas map[addrs.Provider]*providers.GetProviderSchemaResponse) ProvidersSchema {
|
|
return evalglue.ProvidersForTesting(schemas)
|
|
}
|
|
|
|
func ProvisionersForTesting(schemas map[string]*configschema.Block) ProvisionersSchema {
|
|
return evalglue.ProvisionersForTesting(schemas)
|
|
}
|