trireme-lib: Index | Files

package linuxmonitor

import ""


Package Files

config.go monitor.go processor.go

type Config Uses

type Config struct {
    EventMetadataExtractor extractors.EventMetadataExtractor
    StoredPath             string
    ReleasePath            string
    Host                   bool
    SSH                    bool

Config is the configuration options to start a CNI monitor

func DefaultConfig Uses

func DefaultConfig(host bool, ssh bool) *Config

DefaultConfig provides a default configuration

func SetupDefaultConfig Uses

func SetupDefaultConfig(linuxConfig *Config) *Config

SetupDefaultConfig adds defaults to a partial configuration

type LinuxMonitor Uses

type LinuxMonitor struct {
    // contains filtered or unexported fields

LinuxMonitor captures all the monitor processor information It implements the EventProcessor interface of the rpc monitor

func New Uses

func New() *LinuxMonitor

New returns a new implmentation of a monitor implmentation

func (*LinuxMonitor) Resync Uses

func (l *LinuxMonitor) Resync(ctx context.Context) error

Resync instructs the monitor to do a resync.

func (*LinuxMonitor) Run Uses

func (l *LinuxMonitor) Run(ctx context.Context) error

Run implements Implementation interface

func (*LinuxMonitor) SetupConfig Uses

func (l *LinuxMonitor) SetupConfig(registerer registerer.Registerer, cfg interface{}) error

SetupConfig provides a configuration to implmentations. Every implmentation can have its own config type.

func (*LinuxMonitor) SetupHandlers Uses

func (l *LinuxMonitor) SetupHandlers(m *config.ProcessorConfig)

SetupHandlers sets up handlers for monitors to invoke for various events such as processing unit events and synchronization events. This will be called before Start() by the consumer of the monitor

Package linuxmonitor imports 15 packages (graph) and is imported by 2 packages. Updated 2019-11-15. Refresh now. Tools for package owners.