(targetUser *user.User)
| 358 | } |
| 359 | |
| 360 | func getCDIFileForNvidia(targetUser *user.User) (string, error) { |
| 361 | toolboxRuntimeDirectory, err := utils.GetRuntimeDirectory(targetUser) |
| 362 | if err != nil { |
| 363 | return "", err |
| 364 | } |
| 365 | |
| 366 | cdiFile := filepath.Join(toolboxRuntimeDirectory, "cdi-nvidia.json") |
| 367 | return cdiFile, nil |
| 368 | } |
| 369 | |
| 370 | func getCurrentUserHomeDir() string { |
| 371 | if currentUser == nil { |
no outgoing calls
no test coverage detected
searching dependent graphs…