containers

package
v1.0.1-0...-644725c Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExtraParser

func RegisterExtraParser(constructor func(config *viper.Viper) (ExtraParser, error))

Types

type Cache

type Cache interface {
	Add(lru.Key, interface{})
	Get(lru.Key) (interface{}, bool)
}

func NewCache

func NewCache(size int) Cache

NewCache returns an lru.Cache if size is >0, NoCache otherwise

type ContainerParser

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

func NewContainerParser

func NewContainerParser(config *viper.Viper) (*ContainerParser, error)

func (ContainerParser) Parse

func (c ContainerParser) Parse(am *auditrd.AuditMessage)

Find `pid=` in a message and adds the container ids to the Extra object

type ExtraParser

type ExtraParser interface {
	Parse(am *auditrd.AuditMessage)
}

type ExtraParsers

type ExtraParsers []ExtraParser

func (ExtraParsers) Parse

func (ps ExtraParsers) Parse(am *auditrd.AuditMessage)

type NoCache

type NoCache struct{}

func (NoCache) Add

func (NoCache) Add(lru.Key, interface{})

func (NoCache) Get

func (NoCache) Get(lru.Key) (interface{}, bool)

Jump to

Keyboard shortcuts

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