MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / getPgPassFilePath

Function getPgPassFilePath

pkg/management/external/utils.go:162–166  ·  view source on GitHub ↗

getPgPassFilePath gets the path where the pgpass file will be stored.

(serverName string)

Source from the content-addressed store, hash-verified

160
161// getPgPassFilePath gets the path where the pgpass file will be stored.
162func 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
169func createPgPassFile(

Callers 2

createPgPassFileFunction · 0.85

Calls 2

getExternalSecretsPathFunction · 0.85
JoinMethod · 0.80

Tested by

no test coverage detected