Documentation
¶
Index ¶
- func AddClassification(db *sql.DB, name, description string, level int, color string) error
- func AddClassificationRule(db *sql.DB, name, description, matchPattern, matchType string, ...) error
- func AutoClassifyDocument(db *sql.DB, fileID int, matchPattern, matchType string) error
- func AutoClassifyUnclassifiedDocuments(db *sql.DB) error
- func ClassifyDocument(db *sql.DB, fileID, classificationID int, notes, classifiedBy string) error
- func DeleteClassification(db *sql.DB, id int) error
- func DeleteClassificationRule(db *sql.DB, id int) error
- func GetClassificationStats(db *sql.DB) (map[string]interface{}, error)
- func GetClassifications(db *sql.DB) ([]map[string]interface{}, error)
- func GetDocumentClassification(db *sql.DB, fileID int) (map[string]interface{}, error)
- func GetInfrastructureAccess(db *sql.DB) ([]map[string]interface{}, error)
- func GetInfrastructureHosts(db *sql.DB) ([]map[string]interface{}, error)
- func GetInfrastructureShares(db *sql.DB) ([]map[string]interface{}, error)
- func GetInfrastructureUsers(db *sql.DB) ([]map[string]interface{}, error)
- func InitDB(path string) (*sql.DB, error)
- func InsertDomainCredentials(db *sql.DB, ...) error
- func InsertFile(db *sql.DB, path, host, share, domain, user string, size int64, ...) error
- func InsertFileReturnID(db *sql.DB, path, host, share, domain, user string, size int64, ...) (int, error)
- func InsertLowHangingFruit(db *sql.DB, path, host, share, domain, user string, size int64, ...) (bool, error)
- func MigrateAddSearchParamsToUnique(db *sql.DB) error
- func PopulateInfrastructureTables(db *sql.DB) error
- func UpdateClassification(db *sql.DB, id int, name, description string, level int, color string) error
- func UpdateClassificationRule(db *sql.DB, id int, name, description, matchPattern, matchType string, ...) error
- func UpdateFileParentID(db *sql.DB, id int, parentID int) error
- type ClassificationRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddClassification ¶
func AddClassificationRule ¶
func AddClassificationRule(db *sql.DB, name, description, matchPattern, matchType string, classificationID, priority int) error
Adicionar regra de classificação
func AutoClassifyDocument ¶
Classificar documento automaticamente
func AutoClassifyUnclassifiedDocuments ¶
Classificar documentos não classificados
func ClassifyDocument ¶
Funções para gerenciar classificação de documentos
func DeleteClassificationRule ¶
Excluir regra de classificação
func GetClassificationStats ¶
func GetClassifications ¶
Funções para gerenciar classificações
func GetInfrastructureAccess ¶
func GetInfrastructureHosts ¶
Funções para consultar dados da infraestrutura
func GetInfrastructureShares ¶
func GetInfrastructureUsers ¶
func InsertDomainCredentials ¶
func InsertFile ¶
func InsertFileReturnID ¶
func InsertFileReturnID( db *sql.DB, path, host, share, domain, user string, size int64, modTime time.Time, fileType, matchPattern, matchType, hash, localPath, sizeFormatted string, largeFile bool, leetSpeak bool, searchParamType, searchParamValue string, parentID *int, ) (int, error)
Função para inserir arquivo e retornar o id
func InsertLowHangingFruit ¶
func MigrateAddSearchParamsToUnique ¶ added in v1.5.4
MigrateAddSearchParamsToUnique updates the low_hanging_fruit table to include match_pattern and match_type in the UNIQUE constraint. This allows the same file to be recorded multiple times if found with different search parameters.
func PopulateInfrastructureTables ¶
Funções para popular as tabelas de infraestrutura com dados existentes
func UpdateClassification ¶
Types ¶
type ClassificationRule ¶
type ClassificationRule struct {
ID int
Name string
Description string
MatchPattern string
MatchType string
ClassificationID int
Priority int
Enabled bool
CreatedAt string
UpdatedAt string
}
Estrutura para regra de classificação
func GetClassificationRules ¶
func GetClassificationRules(db *sql.DB) ([]ClassificationRule, error)
Listar regras de classificação