mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-11 08:32:19 -06:00
cb2e9119aa
Signed-off-by: namgyalangmo <75657887+namgyalangmo@users.noreply.github.com>
22 lines
690 B
Go
22 lines
690 B
Go
// Copyright (c) The OpenTofu Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright (c) 2023 HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package configs
|
|
|
|
import "github.com/opentofu/opentofu/internal/addrs"
|
|
|
|
// Container provides an interface for scoped resources.
|
|
//
|
|
// Any resources contained within a Container should not be accessible from
|
|
// outside the container.
|
|
type Container interface {
|
|
// Accessible should return true if the resource specified by addr can
|
|
// reference other items within this Container.
|
|
//
|
|
// Typically, that means that addr will either be the container itself or
|
|
// something within the container.
|
|
Accessible(addr addrs.Referenceable) bool
|
|
}
|