dataflattentable

package
v0.11.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllTablePlugins added in v0.11.20

func AllTablePlugins(client *osquery.ExtensionManagerClient, logger log.Logger) []*table.Plugin

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

func ToMap added in v0.11.14

func ToMap(rows []dataflatten.Row, query string, rowData map[string]string) []map[string]string

ToMap is a helper function to convert Flatten output directly for consumption by osquery tables.

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

type Table

type Table struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL