changelog shortlog graph tags branches changeset files file revisions raw help

Mercurial > core / annotate rust/lib/obj/src/config/registry.rs

changeset 698: 96958d3eb5b0
parent: c7165d93a9eb
author: Richard Westhaver <ellis@rwest.io>
date: Fri, 04 Oct 2024 22:04:59 -0400
permissions: -rw-r--r--
description: fixes
17
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
1
 //! cfg::config::registry
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
2
 //!
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
3
 //! Registry configuration primitives
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
4
 //!
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
5
 //! A Registry is just a list of key=val pairs wrapped in an API. The
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
6
 //! RegistryConfig is used to bootstrap the Registry service, at which
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
7
 //! point the client can submit commands to the service socket.
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
8
 use super::{database::DatabaseConfig, network::NetworkConfig};
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
9
 use serde::{Deserialize, Serialize};
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
10
 
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
11
 /// Registry configuration type
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
12
 #[derive(Serialize, Deserialize, Debug, Hash, PartialEq)]
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
13
 pub struct RegistryConfig {
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
14
   crypto: Option<String>,
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
15
   net: Option<NetworkConfig>,
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
16
   db: DatabaseConfig,
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
17
 }