Documentation ¶
Index ¶
- func OptionMergeTags(tags []string) func(*Config)
- func OptionMonitorCNI(opts ...func(*cnimonitor.Config)) func(*Config)
- func OptionMonitorDocker(opts ...func(*dockermonitor.Config)) func(*Config)
- func OptionMonitorLinuxHost(opts ...func(*linuxmonitor.Config)) func(*Config)
- func OptionMonitorLinuxProcess(opts ...func(*linuxmonitor.Config)) func(*Config)
- func OptionMonitorUID(opts ...func(*uidmonitor.Config)) func(*Config)
- func OptionSynchronizationHandler(s processor.SynchronizationHandler) func(*Config)
- func SubOptionMonitorCNIExtractor(extractor events.EventMetadataExtractor) func(*cnimonitor.Config)
- func SubOptionMonitorDockerExtractor(extractor dockermonitor.MetadataExtractor) func(*dockermonitor.Config)
- func SubOptionMonitorDockerFlags(syncAtStart, killContainerOnPolicyError bool) func(*dockermonitor.Config)
- func SubOptionMonitorDockerSocket(socketType, socketAddress string) func(*dockermonitor.Config)
- func SubOptionMonitorLinuxExtractor(extractor events.EventMetadataExtractor) func(*linuxmonitor.Config)
- func SubOptionMonitorUIDExtractor(extractor events.EventMetadataExtractor) func(*uidmonitor.Config)
- type Config
- type Monitor
- type Option
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OptionMergeTags ¶
OptionMergeTags provides a way to add merge tags to be used with New().
func OptionMonitorCNI ¶
func OptionMonitorCNI( opts ...func(*cnimonitor.Config), ) func(*Config)
OptionMonitorCNI provides a way to add a cni monitor and related configuration to be used with New().
func OptionMonitorDocker ¶
func OptionMonitorDocker(opts ...func(*dockermonitor.Config)) func(*Config)
OptionMonitorDocker provides a way to add a docker monitor and related configuration to be used with New().
func OptionMonitorLinuxHost ¶
func OptionMonitorLinuxHost( opts ...func(*linuxmonitor.Config), ) func(*Config)
OptionMonitorLinuxHost provides a way to add a linux host monitor and related configuration to be used with New().
func OptionMonitorLinuxProcess ¶
func OptionMonitorLinuxProcess( opts ...func(*linuxmonitor.Config), ) func(*Config)
OptionMonitorLinuxProcess provides a way to add a linux process monitor and related configuration to be used with New().
func OptionMonitorUID ¶
func OptionMonitorUID( opts ...func(*uidmonitor.Config), ) func(*Config)
OptionMonitorUID provides a way to add a UID monitor and related configuration to be used with New().
func OptionSynchronizationHandler ¶
func OptionSynchronizationHandler( s processor.SynchronizationHandler, ) func(*Config)
OptionSynchronizationHandler provides options related to processor configuration to be used with New().
func SubOptionMonitorCNIExtractor ¶
func SubOptionMonitorCNIExtractor(extractor events.EventMetadataExtractor) func(*cnimonitor.Config)
SubOptionMonitorCNIExtractor provides a way to specify metadata extractor for CNI monitors.
func SubOptionMonitorDockerExtractor ¶
func SubOptionMonitorDockerExtractor(extractor dockermonitor.MetadataExtractor) func(*dockermonitor.Config)
SubOptionMonitorDockerExtractor provides a way to specify metadata extractor for docker.
func SubOptionMonitorDockerFlags ¶
func SubOptionMonitorDockerFlags(syncAtStart, killContainerOnPolicyError bool) func(*dockermonitor.Config)
SubOptionMonitorDockerFlags provides a way to specify configuration flags info for docker.
func SubOptionMonitorDockerSocket ¶
func SubOptionMonitorDockerSocket(socketType, socketAddress string) func(*dockermonitor.Config)
SubOptionMonitorDockerSocket provides a way to specify socket info for docker.
func SubOptionMonitorLinuxExtractor ¶
func SubOptionMonitorLinuxExtractor(extractor events.EventMetadataExtractor) func(*linuxmonitor.Config)
SubOptionMonitorLinuxExtractor provides a way to specify metadata extractor for linux monitors.
func SubOptionMonitorUIDExtractor ¶
func SubOptionMonitorUIDExtractor(extractor events.EventMetadataExtractor) func(*uidmonitor.Config)
SubOptionMonitorUIDExtractor provides a way to specify metadata extractor for UID monitors.
Types ¶
type Config ¶
type Config struct { MergeTags []string // contains filtered or unexported fields }
Config specifies the configs for monitors.
type Monitor ¶
type Monitor interface { // Start starts the monitor. Start() error // Stop Stops the monitor. Stop() error }
A Monitor is an interface implmented to start/stop monitors.
func NewMonitors ¶
func NewMonitors(collector collector.EventCollector, puhandler processor.ProcessingUnitsHandler, c *Config) (Monitor, error)
NewMonitors instantiates all/any combination of monitors supported.
Directories ¶
Path | Synopsis |
---|---|
mock
Package mockinstance is a generated GoMock package.
|
Package mockinstance is a generated GoMock package. |
Package mockmonitor is a generated GoMock package.
|
Package mockmonitor is a generated GoMock package. |
processor/mock
Package mockprocessor is a generated GoMock package.
|
Package mockprocessor is a generated GoMock package. |