linuxmonitor

package
v1.0.47 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2017 License: GPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeMd5

func ComputeMd5(filePath string) ([]byte, error)

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

Directories

Path Synopsis
Package cgnetcls implements functionality to manage classid for processes belonging to different cgroups
Package cgnetcls implements functionality to manage classid for processes belonging to different cgroups
mock
nolint
nolint

Jump to

Keyboard shortcuts

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