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

Method DeepCopy

internal/postgres/parameters.go:99–107  ·  view source on GitHub ↗

DeepCopy returns a copy of ps.

()

Source from the content-addressed store, hash-verified

97
98// DeepCopy returns a copy of ps.
99func (ps *ParameterSet) DeepCopy() *ParameterSet {
100 if ps == nil {
101 return nil
102 }
103
104 return &ParameterSet{
105 values: maps.Clone(ps.values),
106 }
107}
108
109func (ps *ParameterSet) Equal(other *ParameterSet) bool {
110 if ps == nil && other == nil {

Callers 15

TestParameterSetFunction · 0.95
generateUpgradeJobMethod · 0.45
ReconcileMethod · 0.45
testBackupJobFunction · 0.45
testRestoreJobFunction · 0.45
TestReconcilePGBackRestFunction · 0.45
TestObserveRestoreEnvFunction · 0.45
TestAddNSSWrapperFunction · 0.45
handleDeleteMethod · 0.45
ReconcileMethod · 0.45

Calls

no outgoing calls

Tested by 15

TestParameterSetFunction · 0.76
testBackupJobFunction · 0.36
testRestoreJobFunction · 0.36
TestReconcilePGBackRestFunction · 0.36
TestObserveRestoreEnvFunction · 0.36
TestAddNSSWrapperFunction · 0.36
TestManageControllerRefsFunction · 0.36