MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / NodeActions

Method NodeActions

internal/ui/components/plugins.go:113–121  ·  view source on GitHub ↗

NodeActions returns a snapshot of all registered node actions.

()

Source from the content-addressed store, hash-verified

111
112// NodeActions returns a snapshot of all registered node actions.
113func (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.

Callers 1

Calls

no outgoing calls

Tested by 1