37 lines
780 B
Go
37 lines
780 B
Go
package database
|
|
|
|
import "github.com/jackc/pgx/v5/pgtype"
|
|
|
|
type DiecData struct {
|
|
Detects []struct {
|
|
Filetype string `json:"filetype"`
|
|
Parentfilepart string `json:"parentfilepart"`
|
|
Values []struct {
|
|
Info string `json:"info"`
|
|
Name string `json:"name"`
|
|
String string `json:"string"`
|
|
Type string `json:"type"`
|
|
Version string `json:"version"`
|
|
} `json:"values"`
|
|
} `json:"detects"`
|
|
}
|
|
|
|
type Diec struct {
|
|
ID int64
|
|
FileID pgtype.UUID
|
|
Data DiecData
|
|
}
|
|
|
|
type CapaResult struct {
|
|
ID int64
|
|
FileID pgtype.UUID
|
|
Data CapaData
|
|
}
|
|
|
|
type CapaData struct {
|
|
Capabilities map[string]string `json:"capabilities"`
|
|
Maec map[string]string `json:"maec"`
|
|
Objectives map[string]string `json:"objectives"`
|
|
Tactics map[string]string `json:"tactics"`
|
|
}
|
|
|