summaryrefslogtreecommitdiff
path: root/api/resource.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/resource.go')
-rw-r--r--api/resource.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/api/resource.go b/api/resource.go
index e254e1b..5c95211 100644
--- a/api/resource.go
+++ b/api/resource.go
@@ -10,6 +10,10 @@ import (
type Resource interface {
ID() string
String() string
+ // Dependencies returns the flattened resource IDs this value represents,
+ // so it can be passed to the DependsOn option. A single resource yields
+ // its own ID; a Multi yields the IDs of all its members.
+ Dependencies() []string
}
func Apply() error {