windowsmonitor

package
v10.258.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Rendered for windows/amd64

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
	Host                   bool
}

Config is the configuration options to start a CNI monitor

func DefaultConfig

func DefaultConfig(host bool) *Config

DefaultConfig provides a default configuration

func SetupDefaultConfig

func SetupDefaultConfig(windowsConfig *Config) *Config

SetupDefaultConfig adds defaults to a partial configuration

type WindowsMonitor

type WindowsMonitor struct {
	// contains filtered or unexported fields
}

WindowsMonitor hold state for the windows monitor

func New

func New() *WindowsMonitor

New returns a new implmentation of a monitor implmentation

func (*WindowsMonitor) Resync

func (w *WindowsMonitor) Resync(ctx context.Context) error

Resync instructs the monitor to do a resync.

func (*WindowsMonitor) Run

func (w *WindowsMonitor) Run(ctx context.Context) error

Run implements Implementation interface

func (*WindowsMonitor) SetupConfig

func (w *WindowsMonitor) SetupConfig(registerer registerer.Registerer, cfg interface{}) error

SetupConfig sets up the config for the monitor

func (*WindowsMonitor) SetupHandlers

func (w *WindowsMonitor) 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