MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / String

Method String

internal/pgbouncer/config.go:47–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45type iniValueSet map[string]string
46
47func (vs iniValueSet) String() string {
48 keys := make([]string, 0, len(vs))
49 for k := range vs {
50 keys = append(keys, k)
51 }
52
53 sort.Strings(keys)
54
55 var b strings.Builder
56 for _, k := range keys {
57 if len(vs[k]) <= 0 {
58 _, _ = fmt.Fprintf(&b, "%s =\n", k)
59 } else {
60 _, _ = fmt.Fprintf(&b, "%s = %s\n", k, vs[k])
61 }
62 }
63 return b.String()
64}
65
66// authFileContents returns a PgBouncer user database.
67func authFileContents(password string) []byte {

Callers 15

clusterINIFunction · 0.95
DefaultMethod · 0.45
DefaultMethod · 0.45
DefaultMethod · 0.45
TestPostgreSQLHBAFunction · 0.45
TestLogrusFunction · 0.45
ClusterVolumeSnapshotFunction · 0.45
GenerateInstanceFunction · 0.45
PGBackRestBackupJobFunction · 0.45
TestAnyClusterFunction · 0.45
TestClusterFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestPostgreSQLHBAFunction · 0.36
TestLogrusFunction · 0.36
TestAnyClusterFunction · 0.36
TestClusterFunction · 0.36
TestClusterBackupJobsFunction · 0.36
TestClusterInstanceFunction · 0.36
TestClusterInstancesFunction · 0.36
TestClusterInstanceSetFunction · 0.36
TestClusterInstanceSetsFunction · 0.36
TestClusterPatronisFunction · 0.36