getPgPassFilePath gets the path where the pgpass file will be stored.
(serverName string)
| 160 | |
| 161 | // getPgPassFilePath gets the path where the pgpass file will be stored. |
| 162 | func getPgPassFilePath(serverName string) string { |
| 163 | directory := filepath.Join(getExternalSecretsPath(), serverName) |
| 164 | filePath := filepath.Join(directory, "pgpass") |
| 165 | return filePath |
| 166 | } |
| 167 | |
| 168 | // createPgPassFile creates a pgpass file inside the user home directory |
| 169 | func createPgPassFile( |
no test coverage detected