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

Method Get

internal/postgres/parameters.go:142–145  ·  view source on GitHub ↗

Get returns the value of parameter name and whether or not it was present in ps.

(name string)

Source from the content-addressed store, hash-verified

140
141// Get returns the value of parameter name and whether or not it was present in ps.
142func (ps *ParameterSet) Get(name string) (string, bool) {
143 value, ok := ps.values[ps.normalize(name)]
144 return value, ok
145}
146
147// Has returns whether or not parameter name is present in ps.
148func (ps *ParameterSet) Has(name string) bool {

Callers 7

TestParameterSetFunction · 0.95
HasMethod · 0.95
ValueMethod · 0.95
TestPostgreSQLParametersFunction · 0.45
SanitizeParametersFunction · 0.45
TestPGBackRestLabelFuncsFunction · 0.45
TestMoveJobLabelFuncFunction · 0.45

Calls 1

normalizeMethod · 0.95

Tested by 4

TestParameterSetFunction · 0.76
TestPostgreSQLParametersFunction · 0.36
TestPGBackRestLabelFuncsFunction · 0.36
TestMoveJobLabelFuncFunction · 0.36