Documentation ¶
Index ¶
- func AllTablePlugins(client *osquery.ExtensionManagerClient, logger log.Logger) []*table.Plugin
- func Columns(additional ...table.ColumnDefinition) []table.ColumnDefinition
- func TablePlugin(client *osquery.ExtensionManagerClient, logger log.Logger, ...) *table.Plugin
- func TablePluginExec(client *osquery.ExtensionManagerClient, logger log.Logger, tableName string, ...) *table.Plugin
- func ToMap(rows []dataflatten.Row, query string, rowData map[string]string) []map[string]string
- type DataSourceType
- type ExecTableOpt
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllTablePlugins ¶ added in v0.11.20
AllTablePlugins is a helper to return all the expected flattening tables.
func Columns ¶ added in v0.11.14
func Columns(additional ...table.ColumnDefinition) []table.ColumnDefinition
Columns returns the standard data flatten columns, plus whatever ones have been provided as additional. This is syntantic sugar for dataflatten based tables.
func TablePlugin ¶
func TablePlugin(client *osquery.ExtensionManagerClient, logger log.Logger, dataSourceType DataSourceType) *table.Plugin
func TablePluginExec ¶ added in v0.11.9
func TablePluginExec(client *osquery.ExtensionManagerClient, logger log.Logger, tableName string, dataSourceType DataSourceType, execArgs []string, opts ...ExecTableOpt) *table.Plugin
Types ¶
type DataSourceType ¶
type DataSourceType int
const ( PlistType DataSourceType = iota + 1 JsonType ExecType XmlType IniType KeyValueType )
type ExecTableOpt ¶ added in v0.11.18
type ExecTableOpt func(*Table)
func WithBinDirs ¶ added in v0.11.20
func WithBinDirs(binDirs ...string) ExecTableOpt
func WithKVSeparator ¶ added in v0.11.18
func WithKVSeparator(separator string) ExecTableOpt
WithKVSeparator sets the delimiter between key and value. It replaces the default ":" in dataflattentable.Table
Click to show internal directories.
Click to hide internal directories.