MCPcopy Create free account
hub / github.com/Macmod/godap / selectAnchoredAttribute

Function selectAnchoredAttribute

tui/tree.go:179–199  ·  view source on GitHub ↗
(attrsPanel *tview.Table)

Source from the content-addressed store, hash-verified

177}
178
179func selectAnchoredAttribute(attrsPanel *tview.Table) {
180 rowCount := attrsPanel.GetRowCount()
181
182 for idx := 0; idx < rowCount; idx++ {
183 cell := attrsPanel.GetCell(idx, 0)
184 cellRef := cell.GetReference()
185 if cellRef == nil {
186 continue
187 }
188
189 cellAttrName, ok := cellRef.(string)
190 if !ok {
191 continue
192 }
193
194 if cellAttrName == selectedAttrName {
195 attrsPanel.Select(idx, 0)
196 return
197 }
198 }
199}
200
201func createTreeNodeFromEntry(entry *ldap.Entry) *tview.TreeNode {
202 _, ok := explorerCache.Get(entry.DN)

Callers 4

reloadSearchNodeFunction · 0.85
initSearchPageFunction · 0.85
treePanelChangeHandlerFunction · 0.85
reloadAllAttrPanelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected