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

Method Do

pkg/controller/model/graph_client.go:53–53  ·  view source on GitHub ↗

Do does 'action' to 'objOld' and 'objNew' and return the vertex created. this method creates a vertex directly even if the given object already exists in the underlying DAG. WARN: this is a rather low-level API, will be refactored out in near future, avoid to use it.

(dag *graph.DAG, objOld, objNew client.Object, action *Action, parent *ObjectVertex, opts ...GraphOption)

Source from the content-addressed store, hash-verified

51 // this method creates a vertex directly even if the given object already exists in the underlying DAG.
52 // WARN: this is a rather low-level API, will be refactored out in near future, avoid to use it.
53 Do(dag *graph.DAG, objOld, objNew client.Object, action *Action, parent *ObjectVertex, opts ...GraphOption) *ObjectVertex
54
55 // IsAction tells whether the action of the vertex of this obj is same as 'action'.
56 IsAction(dag *graph.DAG, obj client.Object, action *Action) bool

Callers 15

updatePVCSizeMethod · 0.65
deleteCompMethod · 0.65
ReconcileMethod · 0.65
runTasksMethod · 0.65
getKBOwnershipRulesFunction · 0.65
ReconcileMethod · 0.65
StartMethod · 0.65
doOpsRequestActionMethod · 0.65
initMethod · 0.65
ReconcileMethod · 0.65
GetMethod · 0.65

Implementers 1

realGraphClientpkg/controller/model/graph_client.go

Calls

no outgoing calls

Tested by 1

runActionFunction · 0.52