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

Method Value

internal/postgres/parameters.go:160–163  ·  view source on GitHub ↗

Value returns empty string or the value of parameter name if it is present in ps.

(name string)

Source from the content-addressed store, hash-verified

158
159// Value returns empty string or the value of parameter name if it is present in ps.
160func (ps *ParameterSet) Value(name string) string {
161 value, _ := ps.Get(name)
162 return value
163}
164
165func (ps *ParameterSet) String() string {
166 keys := make([]string, 0, len(ps.values))

Callers 15

TestParameterSetFunction · 0.95
TestSetHugePagesFunction · 0.95
AppendToListMethod · 0.95
storeDesiredRequestMethod · 0.80
setVolumeSizeMethod · 0.80
getDesiredVolumeSizeFunction · 0.80
patroniLogSizeMethod · 0.80
HugePagesRequestedFunction · 0.80
startupCommandFunction · 0.80

Calls 1

GetMethod · 0.95

Tested by 5

TestParameterSetFunction · 0.76
TestSetHugePagesFunction · 0.76
TestPostgresParametersFunction · 0.64