NodeActions returns a snapshot of all registered node actions.
()
| 111 | |
| 112 | // NodeActions returns a snapshot of all registered node actions. |
| 113 | func (r *pluginRegistry) NodeActions() []NodeAction { |
| 114 | r.mu.RLock() |
| 115 | defer r.mu.RUnlock() |
| 116 | |
| 117 | actions := make([]NodeAction, len(r.nodeActions)) |
| 118 | copy(actions, r.nodeActions) |
| 119 | |
| 120 | return actions |
| 121 | } |
| 122 | |
| 123 | // NodeActionsForNode filters registered actions by availability for the |
| 124 | // provided node. |
no outgoing calls