Module config

Module config 

Source
Expand description

설정 관리 — ironpost.toml 파싱 및 런타임 설정

IronpostConfig는 모든 모듈의 설정을 담는 최상위 구조체입니다.

§설정 로딩 우선순위

  1. CLI 인자 (최고 우선)
  2. 환경변수 (IRONPOST_EBPF_INTERFACE=eth0 형식)
  3. 설정 파일 (ironpost.toml)
  4. 기본값 (Default 구현)

§사용 예시

use ironpost_core::config::IronpostConfig;

// 파일에서 로드 + 환경변수 오버라이드
let config = IronpostConfig::load("ironpost.toml").await?;

// TOML 문자열에서 직접 파싱
let config = IronpostConfig::parse("[general]\nlog_level = \"debug\"")?;

Structs§

ContainerConfig
컨테이너 가드 설정
EbpfConfig
eBPF 엔진 설정
GeneralConfig
일반 설정
IronpostConfig
Ironpost 통합 설정
LogPipelineConfig
로그 파이프라인 설정
MetricsConfig
메트릭 수집 및 Prometheus 노출 설정
SbomConfig
SBOM 스캐너 설정
StorageConfig
스토리지 설정