Version: v0.0.0-...-b019be7 Latest Latest

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 2 Imported by: 0



Package config creates an osquery configuration plugin.

See for more.



This section is empty.


This section is empty.


This section is empty.


type GenerateConfigsFunc

type GenerateConfigsFunc func(ctx context.Context) (map[string]string, error)

GenerateConfigsFunc returns the configurations generated by this plugin. The returned map should use the source name as key, and the config JSON as values. The context argument can optionally be used for cancellation in long-running operations.

type Plugin

type Plugin struct {
	// contains filtered or unexported fields

Plugin is an osquery configuration plugin. Plugin implements the OsqueryPlugin interface.

func NewPlugin

func NewPlugin(name string, fn GenerateConfigsFunc) *Plugin

NewConfigPlugin takes a value that implements ConfigPlugin and wraps it with the appropriate methods to satisfy the OsqueryPlugin interface. Use this to easily create configuration plugins.

func (*Plugin) Call

func (*Plugin) Name

func (t *Plugin) Name() string

func (*Plugin) Ping

func (t *Plugin) Ping() osquery.ExtensionStatus

func (*Plugin) RegistryName

func (t *Plugin) RegistryName() string

func (*Plugin) Routes

func (*Plugin) Shutdown

func (t *Plugin) Shutdown()

Source Files

Jump to

Keyboard shortcuts

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