Documentation
¶
Index ¶
- Variables
- func GetAttrCellColor(cellName string, cellValue string) (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 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 LdapUsername string LdapPassword string LdapPasswordFile string NtlmHash string NtlmHashFile string DomainName string SocksServer string TargetSpn string KdcHost string TimeFormat string CertFile string KeyFile string PfxFile string CCachePath string Kerberos bool Emojis bool Colors bool FormatAttrs bool ExpandAttrs bool AttrLimit int CacheEntries bool Deleted bool LoadSchema bool PagingSize uint32 Timeout int32 Insecure bool Ldaps bool SearchFilter string RootDN string ShowHeader bool AuthType int )
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.ColorGray),
RecycledNodeColor: tcell.ColorRed,
DeletedNodeColor: tcell.ColorGray,
DisabledNodeColor: tcell.ColorYellow,
}
View Source
var GodapVer = "Godap v2.10.4"
Functions ¶
func GetAttrCellColor ¶ added in v2.8.0
func GetEntryColor ¶ added in v2.8.0
func GetEntryColor(entry *ldap.Entry) (tcell.Color, bool)
Types ¶
type EntryCache ¶
type EntryCache struct {
// contains filtered or unexported fields
}
func (*EntryCache) Add ¶
func (sc *EntryCache) Add(key string, val *ldap.Entry)
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) Get ¶
func (sc *EntryCache) Get(key string) (*ldap.Entry, bool)
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 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.