-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: ResourceAddress.Contains method
This is similar in purpose to Equals but it takes a hierarchical approach where modules contain their child modules, resources are contained by their modules, and indexed resource instances are contained by their resource names. Unlike "Equals", Contains is intended to be transitive, so if A contains B and B contains C, then C necessarily contains A. It is also directional: if A contains B then B does not also contain A unless A and B are identical. This results in more intuitive behavior for use-cases where the goal is to select a portion of the address space for an operation.
- Loading branch information
1 parent
9777174
commit d3eb2b2
Showing
2 changed files
with
348 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters