Expand description
racoon - GCP Log Spy with AI superpowers 🦝
This crate provides real-time GCP log streaming, AI-powered analysis, and natural language query generation capabilities.
§Modules
cli: Command-line interface definitions using clap.gcp: Google Cloud Platform integration (auth, logging).ai: AI-powered log analysis and query generation.storage: Log storage and export functionality.ui: User interface for log streaming and analysis.error: Application-level error types.utils: Utility functions.config: Configuration management.
§Example
use gcp_racoon::gcp::GcpAuth;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
// Initialize GCP authentication
let auth = GcpAuth::new().await?;
auth.verify().await?;
println!("Connected to GCP!");
Ok(())
}Re-exports§
pub use ai::GeminiClient;pub use config::Config;pub use error::RacoonError;pub use error::Result;pub use gcp::GcpAuth;pub use gcp::LogEntry;pub use gcp::LogFilter;pub use gcp::LogsClient;pub use storage::ExportFormat;pub use storage::ExportOptions;pub use storage::export_logs;pub use storage::import_logs;pub use ui::App;pub use ui::run_app;pub use utils::parse_duration;pub use utils::parse_duration_chrono;