linuxmonitor

package
v10.172.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func DefaultConfig(host bool, ssh bool) *Config

DefaultConfig provides a default configuration

func SetupDefaultConfig

func SetupDefaultConfig(linuxConfig *Config) *Config

SetupDefaultConfig adds defaults to a partial configuration

type LinuxMonitor

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

func New() *LinuxMonitor

New returns a new implmentation of a monitor implmentation

func (*LinuxMonitor) Resync

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

Resync instructs the monitor to do a resync.

func (*LinuxMonitor) Run

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

Run implements Implementation interface

func (*LinuxMonitor) SetupConfig

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

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

Jump to

Keyboard shortcuts

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