linuxmonitor

package
v6.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2017 License: GPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultHostMetadataExtractor

func DefaultHostMetadataExtractor(event *events.EventInfo) (*policy.PURuntime, error)

DefaultHostMetadataExtractor is a host specific metadata extractor

func New

func New() monitorinstance.Implementation

New returns a new implmentation of a monitor implmentation

func SystemdEventMetadataExtractor

func SystemdEventMetadataExtractor(event *events.EventInfo) (*policy.PURuntime, error)

SystemdEventMetadataExtractor is a systemd based metadata extractor

Types

type Config

type Config struct {
	EventMetadataExtractor events.EventMetadataExtractor
	StoredPath             string
	ReleasePath            string
	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(linuxConfig *Config) *Config

SetupDefaultConfig adds defaults to a partial configuration

type StoredContext

type StoredContext struct {
	EventInfo *events.EventInfo
	Tags      *policy.TagStore
}

StoredContext is the information stored to retrieve the context in case of restart.

Jump to

Keyboard shortcuts

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