MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / getInstanceID

Function getInstanceID

main.go:108–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106}
107
108func getInstanceID() string {
109 if id := os.Getenv("HOSTNAME"); id != "" {
110 return id
111 }
112 if id := os.Getenv("COMPUTERNAME"); id != "" {
113 return id
114 }
115 return "unknown"
116}
117
118func setUserContext(token string) {
119 hash := sha256.Sum256([]byte(token))

Callers 1

initSentryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected