We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parente61080f commit52064b7Copy full SHA for 52064b7
provisionersdk/tfpath/tfpath.go
@@ -26,10 +26,17 @@ const (
26
sessionDirPrefix="Session"
27
)
28
29
-funcSession(parent,sessionIDstring)Layout {
30
-returnLayout(filepath.Join(parent,sessionDirPrefix+sessionID))
+// Session creates a directory structure layout for terraform execution. The
+// SessionID is a unique value for creating an ephemeral working directory inside
31
+// the parentDirPath. All helper functions will return paths for various
32
+// terraform asserts inside this working directory.
33
+funcSession(parentDirPath,sessionIDstring)Layout {
34
+returnLayout(filepath.Join(parentDirPath,sessionDirPrefix+sessionID))
35
}
36
37
+// Layout is the terraform execution working directory structure.
38
+// It also contains some methods for common file operations within that layout.
39
+// Such as "Cleanup" and "ExtractArchive".
40
// TODO: Maybe we should include the afero.FS here as well, then all operations
41
// would be on the same FS?
42
typeLayoutstring