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

Function selectionKey

internal/ui/components/storage_browser.go:623–632  ·  view source on GitHub ↗
(node *api.Node, storage *api.Storage)

Source from the content-addressed store, hash-verified

621}
622
623func selectionKey(node *api.Node, storage *api.Storage) string {
624 if node == nil {
625 return ""
626 }
627 key := node.Name + "|" + node.SourceProfile
628 if storage != nil {
629 key += "|" + storage.Name
630 }
631 return key
632}
633
634func sortedKeys(values map[string]struct{}) []string {
635 if len(values) == 0 {

Callers 4

SetNodesMethod · 0.85
SelectNodeMethod · 0.85
loadStorageContentMethod · 0.85
findNodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected