2024-02-08 03:48:59 -06:00
|
|
|
// Copyright (c) The OpenTofu Authors
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
// Copyright (c) 2023 HashiCorp, Inc.
|
2023-05-02 10:33:06 -05:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2023-09-26 12:09:27 -05:00
|
|
|
// Package configs contains types that represent OpenTofu configurations and
|
2018-02-01 21:03:54 -06:00
|
|
|
// the different elements thereof.
|
|
|
|
//
|
|
|
|
// The functionality in this package can be used for some static analyses of
|
2023-09-26 12:09:27 -05:00
|
|
|
// OpenTofu configurations, but this package generally exposes representations
|
2018-02-01 21:03:54 -06:00
|
|
|
// of the configuration source code rather than the result of evaluating these
|
|
|
|
// objects. The sibling package "lang" deals with evaluation of structures
|
|
|
|
// and expressions in the configuration.
|
|
|
|
//
|
|
|
|
// Due to its close relationship with HCL, this package makes frequent use
|
|
|
|
// of types from the HCL API, including raw HCL diagnostic messages. Such
|
2023-09-26 12:09:27 -05:00
|
|
|
// diagnostics can be converted into OpenTofu-flavored diagnostics, if needed,
|
2018-02-01 21:03:54 -06:00
|
|
|
// using functions in the sibling package tfdiags.
|
2018-02-15 13:14:29 -06:00
|
|
|
//
|
|
|
|
// The Parser type is the main entry-point into this package. The LoadConfigDir
|
|
|
|
// method can be used to load a single module directory, and then a full
|
|
|
|
// configuration (including any descendent modules) can be produced using
|
|
|
|
// the top-level BuildConfig method.
|
2018-02-01 21:03:54 -06:00
|
|
|
package configs
|