Documentation ¶
Index ¶
- func ComputeMd5(filePath string) ([]byte, error)
- func SystemdRPCMetadataExtractor(event *rpcmonitor.EventInfo) (*policy.PURuntime, error)
- type LinuxProcessor
- func (s *LinuxProcessor) Create(eventInfo *rpcmonitor.EventInfo) error
- func (s *LinuxProcessor) Destroy(eventInfo *rpcmonitor.EventInfo) error
- func (s *LinuxProcessor) Pause(eventInfo *rpcmonitor.EventInfo) error
- func (s *LinuxProcessor) Start(eventInfo *rpcmonitor.EventInfo) error
- func (s *LinuxProcessor) Stop(eventInfo *rpcmonitor.EventInfo) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeMd5 ¶
ComputeMd5 computes the Md5 of a file
func SystemdRPCMetadataExtractor ¶
func SystemdRPCMetadataExtractor(event *rpcmonitor.EventInfo) (*policy.PURuntime, error)
SystemdRPCMetadataExtractor is a systemd based metadata extractor
Types ¶
type LinuxProcessor ¶
type LinuxProcessor struct {
// contains filtered or unexported fields
}
LinuxProcessor captures all the monitor processor information It implements the MonitorProcessor interface of the rpc monitor
func NewLinuxProcessor ¶
func NewLinuxProcessor(collector collector.EventCollector, puHandler monitor.ProcessingUnitsHandler, metadataExtractor rpcmonitor.RPCMetadataExtractor, releasePath string) *LinuxProcessor
NewLinuxProcessor initializes a processor
func (*LinuxProcessor) Create ¶
func (s *LinuxProcessor) Create(eventInfo *rpcmonitor.EventInfo) error
Create handles create events
func (*LinuxProcessor) Destroy ¶
func (s *LinuxProcessor) Destroy(eventInfo *rpcmonitor.EventInfo) error
Destroy handles a destroy event
func (*LinuxProcessor) Pause ¶
func (s *LinuxProcessor) Pause(eventInfo *rpcmonitor.EventInfo) error
Pause handles a pause event
func (*LinuxProcessor) Start ¶
func (s *LinuxProcessor) Start(eventInfo *rpcmonitor.EventInfo) error
Start handles start events
func (*LinuxProcessor) Stop ¶
func (s *LinuxProcessor) Stop(eventInfo *rpcmonitor.EventInfo) error
Stop handles a stop event
Click to show internal directories.
Click to hide internal directories.