MCPcopy
hub / github.com/apecloud/kubeblocks / init

Method init

controllers/dataprotection/utils.go:505–510  ·  view source on GitHub ↗

init initializes the ref and invert maps lazily if they are nil.

()

Source from the content-addressed store, hash-verified

503
504// init initializes the ref and invert maps lazily if they are nil.
505func (r *refObjectMapper) init() {
506 r.once.Do(func() {
507 r.ref = make(map[string]string)
508 r.invert = make(map[string][]string)
509 })
510}
511
512// setRef sets or updates the mapping between a referent object and a referenced object.
513func (r *refObjectMapper) setRef(referent client.Object, referencedKey types.NamespacedName) {

Callers 2

setRefMethod · 0.95
removeRefMethod · 0.95

Calls 1

DoMethod · 0.65

Tested by

no test coverage detected