salesforce

package
v0.0.0-...-6485229 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginID           uint32 = 14
	PluginName                = "salesforce"
	PluginDescription         = "Reads events from Salesforce using GRPC Connection"
	PluginContact             = "github.com/falcosecurity/plugins"
	PluginVersion             = "0.1.0"
	PluginEventSource         = "salesforce"
	ExtractEventSource        = "salesforce"
)

Variables

This section is empty.

Functions

func CreateGRPCClientConnection

func CreateGRPCClientConnection(p *Plugin, oCtx *PluginInstance) *grpcclient.PubSubClient

Types

type Plugin

type Plugin struct {
	plugins.BasePlugin
	// contains filtered or unexported fields
}

Plugin represent the Salesforce plugin

func (*Plugin) Extract

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

Extract a field value from an event.

func (*Plugin) Fields

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

Return the fields supported for extraction.

func (*Plugin) Info

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

Return the plugin info to the framework.

func (*Plugin) Init

func (p *Plugin) Init(cfg string) error

Initialize the plugin state.

func (*Plugin) InitSchema

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

func (*Plugin) Open

func (p *Plugin) Open(params string) (source.Instance, error)

Open an event stream and return an open plugin instance.

type PluginConfig

type PluginConfig struct {
	SFDCClientId     string `json:"sfdcclientid" jsonschema:"title=Salesforce Connect App Client Id"`
	SFDCClientSecret string `json:"sfdcclientsecret" jsonschema:"title=Salesforce Connect App Client Secret"`
	SFDCLoginURL     string `` /* 187-byte string literal not displayed */
	Debug            bool   `json:"Debug" jsonschema:"title=Enable debug output (true = yes, false=no)"`
}

PluginConfig represents a configuration of the GitHub plugin

func (*PluginConfig) Reset

func (p *PluginConfig) Reset()

Reset sets the configuration to its default values

type PluginInstance

type PluginInstance struct {
	source.BaseInstance
	// contains filtered or unexported fields
}

PluginInstance represents an opened instance of the plugin, which is returned by Open() and deinitialized during Close().

func (*PluginInstance) Close

func (oCtx *PluginInstance) Close()

Closing the event stream and deinitialize the open plugin instance.

func (*PluginInstance) NextBatch

func (o *PluginInstance) NextBatch(pState sdk.PluginState, evts sdk.EventWriters) (int, error)

Produce and return a new batch of events.

Directories

Path Synopsis
sfdcclient

Jump to

Keyboard shortcuts

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