mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-21 22:47:55 +01:00
Keep old config system
This commit is contained in:
parent
e6682ca8a8
commit
c402c71abc
@ -6,7 +6,7 @@ use serde::{Serialize, Deserialize};
|
||||
|
||||
use std::fmt::Formatter;
|
||||
use std::net::{ToSocketAddrs};
|
||||
use serde_dhall::{SimpleType};
|
||||
use serde_dhall::StaticType;
|
||||
|
||||
|
||||
mod dhall;
|
||||
@ -17,14 +17,6 @@ use crate::authorization::roles::Role;
|
||||
use crate::capnp::{Listen, TlsListen};
|
||||
use crate::logging::LogConfig;
|
||||
|
||||
pub fn load(path: impl AsRef<Path>, args: &clap::ArgMatches) -> anyhow::Result<Config> {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
pub struct ConfigBlock {
|
||||
static_type: SimpleType,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
/// A description of a machine
|
||||
@ -99,12 +91,6 @@ pub struct ModuleConfig {
|
||||
pub params: HashMap<String, String>
|
||||
}
|
||||
|
||||
pub struct ListenSock {
|
||||
listen: Listen,
|
||||
tls_config: TlsListen,
|
||||
}
|
||||
|
||||
|
||||
pub(crate) fn deser_option<'de, D, T>(d: D) -> std::result::Result<Option<T>, D::Error>
|
||||
where D: serde::Deserializer<'de>, T: serde::Deserialize<'de>,
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user