Documentation
¶
Index ¶
- type Checker
- type HostChecker
- func (c *HostChecker) CanAdmin(database, table string) bool
- func (c *HostChecker) CanRead(database, table string) bool
- func (c *HostChecker) CanWrite(database, table string) bool
- func (c *HostChecker) DatabaseAccess(database string) Level
- func (c *HostChecker) FilterDatabases(all []string) []string
- func (c *HostChecker) IsVisible(database string) bool
- func (c *HostChecker) TableAccess(database, table string) Level
- type Level
- type SQLClassification
- type SQLKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker manages access control across multiple hosts.
type HostChecker ¶
type HostChecker struct {
// contains filtered or unexported fields
}
HostChecker resolves permissions for a single host.
func (*HostChecker) CanAdmin ¶
func (c *HostChecker) CanAdmin(database, table string) bool
func (*HostChecker) CanRead ¶
func (c *HostChecker) CanRead(database, table string) bool
func (*HostChecker) CanWrite ¶
func (c *HostChecker) CanWrite(database, table string) bool
func (*HostChecker) DatabaseAccess ¶
func (c *HostChecker) DatabaseAccess(database string) Level
func (*HostChecker) FilterDatabases ¶
func (c *HostChecker) FilterDatabases(all []string) []string
func (*HostChecker) IsVisible ¶
func (c *HostChecker) IsVisible(database string) bool
func (*HostChecker) TableAccess ¶
func (c *HostChecker) TableAccess(database, table string) Level
type SQLClassification ¶
func ClassifySQL ¶
func ClassifySQL(query string) SQLClassification
Click to show internal directories.
Click to hide internal directories.