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 }
Config is the configuration options to start a CNI monitor
func DefaultConfig ¶
DefaultConfig provides a default configuration
func SetupDefaultConfig ¶
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 (*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