Documentation ¶
Index ¶
- func UIDMetadataExtractor(event *rpcmonitor.EventInfo) (*policy.PURuntime, error)
- type StoredContext
- type UIDProcessor
- func (s *UIDProcessor) Create(eventInfo *rpcmonitor.EventInfo) error
- func (s *UIDProcessor) Destroy(eventInfo *rpcmonitor.EventInfo) error
- func (s *UIDProcessor) Pause(eventInfo *rpcmonitor.EventInfo) error
- func (s *UIDProcessor) ReSync(e *rpcmonitor.EventInfo) error
- func (s *UIDProcessor) Start(eventInfo *rpcmonitor.EventInfo) error
- func (s *UIDProcessor) Stop(eventInfo *rpcmonitor.EventInfo) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UIDMetadataExtractor ¶
func UIDMetadataExtractor(event *rpcmonitor.EventInfo) (*policy.PURuntime, error)
UIDMetadataExtractor -- metadata extractor for uid/gid
Types ¶
type StoredContext ¶ added in v1.0.72
type StoredContext struct { MarkVal string EventInfo *rpcmonitor.EventInfo }
StoredContext -- struct is the structure of stored contextinfo for uidmonitor
type UIDProcessor ¶ added in v1.0.72
UIDProcessor captures all the monitor processor information for a UIDLoginPU It implements the MonitorProcessor interface of the rpc monitor
func NewCustomUIDProcessor ¶ added in v1.0.72
func NewCustomUIDProcessor(storePath string, collector collector.EventCollector, puHandler monitor.ProcessingUnitsHandler, metadataExtractor rpcmonitor.RPCMetadataExtractor, releasePath string) *UIDProcessor
NewCustomUIDProcessor initializes a processor with a custom path
func NewUIDProcessor ¶ added in v1.0.72
func NewUIDProcessor(collector collector.EventCollector, puHandler monitor.ProcessingUnitsHandler, metadataExtractor rpcmonitor.RPCMetadataExtractor, releasePath string) *UIDProcessor
NewUIDProcessor creates a default Linux processor with the standard trireme path
func (*UIDProcessor) Create ¶ added in v1.0.72
func (s *UIDProcessor) Create(eventInfo *rpcmonitor.EventInfo) error
Create handles create events
func (*UIDProcessor) Destroy ¶ added in v1.0.72
func (s *UIDProcessor) Destroy(eventInfo *rpcmonitor.EventInfo) error
Destroy handles a destroy event
func (*UIDProcessor) Pause ¶ added in v1.0.72
func (s *UIDProcessor) Pause(eventInfo *rpcmonitor.EventInfo) error
Pause handles a pause event
func (*UIDProcessor) ReSync ¶ added in v1.0.72
func (s *UIDProcessor) ReSync(e *rpcmonitor.EventInfo) error
ReSync resyncs with all the existing services that were there before we start
func (*UIDProcessor) Start ¶ added in v1.0.72
func (s *UIDProcessor) Start(eventInfo *rpcmonitor.EventInfo) error
Start handles start events
func (*UIDProcessor) Stop ¶ added in v1.0.72
func (s *UIDProcessor) Stop(eventInfo *rpcmonitor.EventInfo) error
Stop handles a stop event and destroy as well. Destroy does nothing for the uid monitor