Documentation ¶
Index ¶
- func DefaultHostMetadataExtractor(event *common.EventInfo) (*policy.PURuntime, error)
- func DefaultMetadataExtractor(info *types.ContainerJSON) (*policy.PURuntime, error)
- func ProcessInfo(pid int32) []string
- func SystemdEventMetadataExtractor(event *common.EventInfo) (*policy.PURuntime, error)
- func UIDMetadataExtractor(event *common.EventInfo) (*policy.PURuntime, error)
- type DockerMetadataExtractor
- type EventMetadataExtractor
- type LinuxMetadataExtractorType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultHostMetadataExtractor ¶
DefaultHostMetadataExtractor is a host specific metadata extractor
func DefaultMetadataExtractor ¶
func DefaultMetadataExtractor(info *types.ContainerJSON) (*policy.PURuntime, error)
DefaultMetadataExtractor is the default metadata extractor for Docker
func ProcessInfo ¶
ProcessInfo returns all metadata captured by a process
func SystemdEventMetadataExtractor ¶
SystemdEventMetadataExtractor is a systemd based metadata extractor
Types ¶
type DockerMetadataExtractor ¶
type DockerMetadataExtractor func(*types.ContainerJSON) (*policy.PURuntime, error)
A DockerMetadataExtractor is a function used to extract a *policy.PURuntime from a given docker ContainerJSON.
func NewExternalExtractor ¶
func NewExternalExtractor(filePath string) (DockerMetadataExtractor, error)
NewExternalExtractor returns a new bash metadata extractor for Docker that will call the executable given in parameter and will generate a Policy Runtime as standard output The format of Input/Output of the executable are in standard JSON.
type EventMetadataExtractor ¶
EventMetadataExtractor is a function used to extract a *policy.PURuntime from a given EventInfo. The EventInfo is generic and is provided over the RPC interface