Eunomia  0.1.0
A lightweight eBPF-based CloudNative Monitor tool for Container Security and Observability
files_tracker Struct Reference

ebpf files tracker interface More...

#include <files.h>

Inheritance diagram for files_tracker:
Inheritance graph
Collaboration diagram for files_tracker:
Collaboration graph

Classes

struct  csv_event_printer
 
struct  json_event_handler
 convert event to json More...
 
struct  json_event_printer
 used for json exporter, inherits from json_event_handler More...
 
struct  plain_text_event_printer
 
struct  prometheus_event_handler
 used for prometheus exporter More...
 

Public Member Functions

 files_tracker (config_data config)
 
void start_tracker ()
 start files tracker More...
 
- Public Member Functions inherited from tracker_with_config< files_env, files_event >
 tracker_with_config (tracker_config< files_env, files_event > config)
 
virtual ~tracker_with_config ()
 
- Public Member Functions inherited from tracker_base
virtual ~tracker_base ()
 constructor More...
 
void stop_tracker (void)
 stop the tracker thread More...
 

Static Public Member Functions

static std::unique_ptr< files_trackercreate_tracker_with_default_env (tracker_event_handler handler)
 create a tracker with deafult config More...
 
static std::unique_ptr< files_trackercreate_tracker_with_args (tracker_event_handler handler, const std::vector< std::string > &args)
 

Additional Inherited Members

- Public Types inherited from tracker_with_config< files_env, files_event >
using event = files_event
 type alias for event More...
 
using config_data = tracker_config< files_env, files_event >
 type alias for env and config More...
 
using tracker_event_handler = std::shared_ptr< event_handler< files_event > >
 type alias for event handler More...
 
- Public Attributes inherited from tracker_with_config< files_env, files_event >
tracker_config< files_env, files_event > current_config
 config data More...
 
- Public Attributes inherited from tracker_base
volatile bool exiting
 is the tracker exiting More...
 

Detailed Description

ebpf files tracker interface

the true implementation is in files/file_tracker.h

trace files read and write

Constructor & Destructor Documentation

◆ files_tracker()

files_tracker::files_tracker ( config_data  config)

Member Function Documentation

◆ create_tracker_with_args()

static std::unique_ptr<files_tracker> files_tracker::create_tracker_with_args ( tracker_event_handler  handler,
const std::vector< std::string > &  args 
)
inlinestatic
Here is the call graph for this function:

◆ create_tracker_with_default_env()

std::unique_ptr< files_tracker > files_tracker::create_tracker_with_default_env ( tracker_event_handler  handler)
static

create a tracker with deafult config

Here is the caller graph for this function:

◆ start_tracker()

void files_tracker::start_tracker ( )
virtual

start files tracker

Implements tracker_base.


The documentation for this struct was generated from the following files: