Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasicDetect ¶
type BasicDetect struct { Key []string `yaml:"key"` // check column name by regexp Value []string `yaml:"value"` // check column value by regexp }
BasicDetect basic sensitive data detection regexp check rules
type DetectStatus ¶
type DetectStatus struct { Header []common.HeaderColumn // Column Header, include column type info Columns map[string][]string // detected sensitive columns Lines int // lines checked QueryTimeCost int64 // query time cost TimeCost int64 // time cost }
DetectStatus ...
type DetectStruct ¶
type DetectStruct struct { Config common.Config Sensitive sensitiveConfig Status DetectStatus }
func NewDetectStruct ¶
func NewDetectStruct(c common.Config) (*DetectStruct, error)
func (*DetectStruct) DetectFile ¶
func (d *DetectStruct) DetectFile() error
DetectFile check data from file
func (*DetectStruct) DetectQuery ¶
func (d *DetectStruct) DetectQuery() error
DetectQuery check data from query result
func (*DetectStruct) ShowStatus ¶
func (d *DetectStruct) ShowStatus() error
ShowStatus print detect status
Click to show internal directories.
Click to hide internal directories.