webhook_bridge/src/app_state.rs

14 lines
287 B
Rust
Raw Normal View History

2024-09-29 16:27:04 -04:00
use std::collections::HashSet;
use std::sync::Arc;
2024-09-29 14:32:20 -04:00
use kube::Client;
use crate::gitea_client::GiteaClient;
#[derive(Clone)]
pub(crate) struct AppState {
pub(crate) kubernetes_client: Client,
pub(crate) gitea: GiteaClient,
2024-09-29 16:27:04 -04:00
pub(crate) allowed_repos: Arc<HashSet<String>>,
2024-09-29 14:32:20 -04:00
}