json

package
v0.0.0-...-acd2641 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

///////////////////////////////////////////////////////////////////////////// This plugin is a general json parser. It can be used to extract arbitrary fields from a buffer containing json data. /////////////////////////////////////////////////////////////////////////////

Index

Constants

View Source
const (
	PluginName        = "json"
	PluginDescription = "implements extracting arbitrary fields from inputs formatted as JSON"
	PluginContact     = "github.com/falcosecurity/plugins/"
	PluginVersion     = "0.7.2"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	plugins.BasePlugin

	Config PluginConfig
	// contains filtered or unexported fields
}

func (*Plugin) Extract

func (m *Plugin) Extract(req sdk.ExtractRequest, evt sdk.EventReader) error

func (*Plugin) Fields

func (m *Plugin) Fields() []sdk.FieldEntry

func (*Plugin) Info

func (m *Plugin) Info() *plugins.Info

func (*Plugin) Init

func (m *Plugin) Init(config string) error

func (*Plugin) InitSchema

func (p *Plugin) InitSchema() *sdk.SchemaInfo

type PluginConfig

type PluginConfig struct {
	UseAsync bool `` /* 150-byte string literal not displayed */
}

func (*PluginConfig) Reset

func (k *PluginConfig) Reset()

Resets sets the configuration to its default values

Jump to

Keyboard shortcuts

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