uidmonitor

package
v10.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2018 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
}

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 UIDMonitor

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

UIDMonitor captures all the monitor processor information for a UIDLoginPU It implements the EventProcessor interface of the rpc monitor

func New

func New() *UIDMonitor

New returns a new implmentation of a monitor implmentation

func (*UIDMonitor) Resync

func (u *UIDMonitor) Resync(ctx context.Context) error

Resync asks the monitor to do a resync

func (*UIDMonitor) Run

func (u *UIDMonitor) Run(ctx context.Context) error

Run implements Implementation interface

func (*UIDMonitor) SetupConfig

func (u *UIDMonitor) SetupConfig(registerer registerer.Registerer, cfg interface{}) error

SetupConfig provides a configuration to implmentations. Every implmentation can have its own config type.

func (*UIDMonitor) SetupHandlers

func (u *UIDMonitor) 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