Documentation

Index

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

    type StoredContext struct {
    	MarkVal   string
    	EventInfo *rpcmonitor.EventInfo
    }

      StoredContext -- struct is the structure of stored contextinfo for uidmonitor

      type UIDProcessor

      type UIDProcessor struct {
      	sync.Mutex
      	// contains filtered or unexported fields
      }

        UIDProcessor captures all the monitor processor information for a UIDLoginPU It implements the MonitorProcessor interface of the rpc monitor

        func NewCustomUIDProcessor

        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

          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

            func (s *UIDProcessor) Create(eventInfo *rpcmonitor.EventInfo) error

              Create handles create events

              func (*UIDProcessor) Destroy

              func (s *UIDProcessor) Destroy(eventInfo *rpcmonitor.EventInfo) error

                Destroy handles a destroy event

                func (*UIDProcessor) Pause

                func (s *UIDProcessor) Pause(eventInfo *rpcmonitor.EventInfo) error

                  Pause handles a pause event

                  func (*UIDProcessor) ReSync

                  func (s *UIDProcessor) ReSync(e *rpcmonitor.EventInfo) error

                    ReSync resyncs with all the existing services that were there before we start

                    func (*UIDProcessor) Start

                    func (s *UIDProcessor) Start(eventInfo *rpcmonitor.EventInfo) error

                      Start handles start events

                      func (*UIDProcessor) Stop

                      func (s *UIDProcessor) Stop(eventInfo *rpcmonitor.EventInfo) error

                        Stop handles a stop event and destroy as well. Destroy does nothing for the uid monitor