MCPcopy Index your code
hub / github.com/coder/coder / Session

Function Session

provisionersdk/tfpath/tfpath.go:33–35  ·  view source on GitHub ↗

Session creates a directory structure layout for terraform execution. The SessionID is a unique value for creating an ephemeral working directory inside the parentDirPath. All helper functions will return paths for various terraform asserts inside this working directory.

(parentDirPath, sessionID string)

Source from the content-addressed store, hash-verified

31// the parentDirPath. All helper functions will return paths for various
32// terraform asserts inside this working directory.
33func Session(parentDirPath, sessionID string) Layout {
34 return Layout(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.

Callers 3

TestStaleSessionsFunction · 0.92
SessionMethod · 0.92
TestCleanStaleSessionsFunction · 0.92

Calls 1

LayoutTypeAlias · 0.70

Tested by 2

TestStaleSessionsFunction · 0.74
TestCleanStaleSessionsFunction · 0.74