MCPcopy
hub / github.com/cilium/cilium / Append

Method Append

pkg/revert/finalize.go:24–28  ·  view source on GitHub ↗

Append appends the given FinalizeFunc at the end of this list. If the function is nil, it is ignored.

(finalizeFunc FinalizeFunc)

Source from the content-addressed store, hash-verified

22// Append appends the given FinalizeFunc at the end of this list. If the
23// function is nil, it is ignored.
24func (f *FinalizeList) Append(finalizeFunc FinalizeFunc) {
25 if finalizeFunc != nil {
26 f.finalizeFuncs = append(f.finalizeFuncs, finalizeFunc)
27 }
28}
29
30// Finalize executes all the FinalizeFuncs in the given list in the same order
31// they were pushed.

Callers 15

TestFinalizeListFunction · 0.95
newEnvoyXDSServerFunction · 0.45
newEnvoyAccessLogServerFunction · 0.45
newArtifactCopierFunction · 0.45
createFactoryFunction · 0.45
cell.goFile · 0.45
provideNATRetriesMapFunction · 0.45
newStatsFunction · 0.45
newFragMapFunction · 0.45

Calls

no outgoing calls

Tested by 10

TestFinalizeListFunction · 0.76
TestClusterMeshFunction · 0.36
TestScriptFunction · 0.36
TestBPFOpsFunction · 0.36
TestLocalNodeStoreFunction · 0.36
TestMetricsHandlermTLSFunction · 0.36