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

Function exportCurrentSD

tui/dacl.go:558–573  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

556}
557
558func exportCurrentSD() {
559 if sd == nil {
560 updateLog("An object was not queried yet", "red")
561 return
562 }
563
564 encodedSD := sd.Encode()
565
566 exportMap := make(map[string]any)
567 exportMap["Query"] = object
568 exportMap["HexSD"] = encodedSD
569
570 exportMap["ParsedDACL"] = parsedAces
571
572 writeDataExport(exportMap, "sd", "security_descriptor")
573}
574
575func daclPageKeyHandler(event *tcell.EventKey) *tcell.EventKey {
576 if event.Key() == tcell.KeyTab || event.Key() == tcell.KeyBacktab {

Callers 1

daclPageKeyHandlerFunction · 0.85

Calls 3

updateLogFunction · 0.85
writeDataExportFunction · 0.85
EncodeMethod · 0.65

Tested by

no test coverage detected