@@ -5,26 +5,34 @@ type ConfigDefinitions struct {
55}
66
77type Definition struct {
8- Name string `yaml:"Name"`
9- Author string `yaml:"Author"`
10- Description string `yaml:"Description"`
11- Email string `yaml:"Email"`
12- Reference string `yaml:"Reference"`
13- Categories []string `yaml:"Categories"`
14- SQLiteIdentifyQuery string `yaml:"SQLiteIdentifyQuery"`
15- SQLiteIdentifyValue interface {} `yaml:"SQLiteIdentifyValue"`
16- Globs []string `yaml:"Globs"`
17- FilenameRegex string `yaml:"FilenameRegex"`
18- Sources []Source `yaml:"Sources"`
8+ Name string `yaml:"Name" json:"Name,omitempty"`
9+ Author string `yaml:"Author" json:"Author,omitempty"`
10+ Description string `yaml:"Description" json:"Description,omitempty"`
11+ Email string `yaml:"Email" json:"Email,omitempty"`
12+ Reference string `yaml:"Reference" json:"Reference,omitempty"`
13+ Categories []string `yaml:"Categories" json:"Categories,omitempty"`
14+ SQLiteIdentifyQuery string `yaml:"SQLiteIdentifyQuery" json:"SQLiteIdentifyQuery,omitempty"`
15+ SQLiteIdentifyValue interface {} `yaml:"SQLiteIdentifyValue" json:"SQLiteIdentifyValue,omitempty"`
16+ Globs []string `yaml:"Globs" json:"Globs,omitempty"`
17+ FilenameRegex string `yaml:"FilenameRegex" json:"FilenameRegex,omitempty"`
18+ Sources []Source `yaml:"Sources" json:"Sources,omitempty"`
19+
20+ Filename_ string `yaml:"Filename" json:"Filename,omitempty"`
21+ RawData_ string `yaml:"RawData" json:"RawData,omitempty"`
1922}
2023
2124type Source struct {
2225 Name string `yaml:"name"`
26+
27+ // VQL to include prior to the VQL query - for example contains
28+ // custom VQL functions
29+ Preamble string `yaml:"Preamble" json:"Preamble,omitempty"`
30+
2331 // Specialized VQL to post process the rows. Default is a
2432 // passthrough `SELECT * FROM Rows`
25- VQL string `yaml:"VQL"`
26- SQL string `yaml:"SQL"`
27- SQLiteIdentifyQuery string `json:"id_query"`
28- SQLiteIdentifyValue interface {} `json:"id_value"`
29- Filename string `json:"filename"`
33+ VQL string `yaml:"VQL" json:"VQL,omitempty" `
34+ SQL string `yaml:"SQL" json:"SQL,omitempty" `
35+ SQLiteIdentifyQuery string `json:"id_query,omitempty "`
36+ SQLiteIdentifyValue interface {} `json:"id_value,omitempty "`
37+ Filename string `json:"filename,omitempty "`
3038}
0 commit comments