mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-21 18:10:30 -04:00
19 lines
615 B
Go
19 lines
615 B
Go
// Copyright IBM Corp. 2014, 2026
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package configs
|
|
|
|
import "github.com/hashicorp/terraform/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
|
|
}
|