uidmonitor

package
v6.3.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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetadataExtractor

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

MetadataExtractor is a metadata extractor for uid/gid.

func New

func New() monitorinstance.Implementation

New returns a new implmentation of a monitor implmentation

Types

type Config

type Config struct {
	EventMetadataExtractor events.EventMetadataExtractor
	StoredPath             string
	ReleasePath            string
}

Config is the configuration options to start a CNI monitor

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig provides default configuration for uid monitor

func SetupDefaultConfig

func SetupDefaultConfig(uidConfig *Config) *Config

SetupDefaultConfig adds defaults to a partial configuration

type StoredContext

type StoredContext struct {
	MarkVal   string
	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