Documentation
¶
Index ¶
- Variables
- func GetAttrCellColor(cellName string, cellValue ldaputils.FormattedAttrValue) (string, bool)
- func GetEntryColor(entry *ldap.Entry) (tcell.Color, bool)
- func SetupApp()
- type EntryCache
- type EntryMatch
- type GPOLink
- type GodapPage
- type GodapTheme
- type ParsedACE
- type SearchHistoryEntry
- type XForm
- func (f *XForm) AddCheckbox(label string, checked bool, changed func(checked bool)) *XForm
- func (f *XForm) AddDropDown(label string, options []string, initialOption int, ...) *XForm
- func (f *XForm) AddInputField(label, value string, fieldWidth int, ...) *XForm
- func (f *XForm) AddPasswordField(label, value string, fieldWidth int, mask rune, changed func(text string)) *XForm
- func (f *XForm) AddTextArea(label string, text string, fieldWidth, fieldHeight int, maxLength int, ...) *XForm
- func (f *XForm) AddTextView(label, text string, fieldWidth, fieldHeight int, ...) *XForm
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LdapServer string LdapPort int TimeOffset int LdapUsername string LdapPassword string LdapPasswordFile string NtlmHash string NtlmHashFile string AESKey string DomainName string SocksServer string KdcHost string CustomDNS string TimeFormat string CertFile string KeyFile string PfxFile string CCachePath string BackendFlavor string Kerberos bool SimpleBind bool ForceDNSTCP bool NoProxyDNS bool Emojis bool Colors bool FormatAttrs bool ExpandAttrs bool AttrSort string AttrLimit int CacheEntries bool Deleted bool LoadSchema bool PagingSize uint32 Timeout int32 Insecure bool Ldaps bool SearchFilter string RootDN string ShowHeader bool AuthMechanism string ExportDir string )
View Source
var ATTRS_DISALLOWED_DELETION_FORMATTED = []string{
"userAccountControl",
"systemFlags",
"trustAttributes",
"pwdProperties",
"searchFlags",
}
View Source
var DefaultTheme = GodapTheme{ TViewTheme: baseTheme, FieldBackgroundColor: tcell.ColorBlack, PlaceholderStyle: tcell.Style{}.Foreground(tcell.ColorGray).Background(tcell.ColorBlack), PlaceholderTextColor: tcell.ColorGray, FormButtonStyle: tcell.Style{}.Background(tcell.ColorWhite), FormButtonTextColor: tcell.ColorBlack, FormButtonBackgroundColor: tcell.ColorWhite, FormButtonActivatedStyle: tcell.StyleDefault.Background(tcell.ColorBlue).Foreground(tcell.ColorWhite), RecycledNodeColor: tcell.ColorRed, DeletedNodeColor: tcell.ColorGray, DisabledNodeColor: tcell.ColorYellow, }
View Source
var GodapVer = "Godap v2.12.2"
View Source
var HIDDEN_REF_FLAG = "[HIDDEN]"
Functions ¶
func GetAttrCellColor ¶ added in v2.8.0
func GetAttrCellColor(cellName string, cellValue ldaputils.FormattedAttrValue) (string, bool)
Types ¶
type EntryCache ¶
type EntryCache struct {
// contains filtered or unexported fields
}
func (*EntryCache) Clear ¶
func (sc *EntryCache) Clear()
func (*EntryCache) Delete ¶
func (sc *EntryCache) Delete(key string)
func (*EntryCache) FindWithRegexp ¶
func (sc *EntryCache) FindWithRegexp(needle *regexp.Regexp) []EntryMatch
func (*EntryCache) Length ¶
func (sc *EntryCache) Length() int
type EntryMatch ¶
type GodapTheme ¶ added in v2.8.0
type GodapTheme struct {
TViewTheme tview.Theme
// Input fields
FieldBackgroundColor tcell.Color
PlaceholderStyle tcell.Style
PlaceholderTextColor tcell.Color
// Form buttons
FormButtonStyle tcell.Style
FormButtonTextColor tcell.Color
FormButtonBackgroundColor tcell.Color
FormButtonActivatedStyle tcell.Style
// Tree node colors
RecycledNodeColor tcell.Color
DeletedNodeColor tcell.Color
DisabledNodeColor tcell.Color
}
type SearchHistoryEntry ¶ added in v2.10.5
type XForm ¶
Form customizations
func (*XForm) AddCheckbox ¶
func (*XForm) AddDropDown ¶
func (*XForm) AddInputField ¶
func (*XForm) AddPasswordField ¶
func (*XForm) AddTextArea ¶ added in v2.10.0
Click to show internal directories.
Click to hide internal directories.