forked from bottlerocket-os/bottlerocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod.rs
31 lines (29 loc) · 1.28 KB
/
mod.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use model_derive::model;
use std::collections::HashMap;
use crate::{
AutoScalingSettings, BootstrapContainer, CloudFormationSettings, DnsSettings, ECSSettings,
HostContainer, MetricsSettings, NetworkSettings, OciDefaults, OciHooks, PemCertificate,
};
use modeled_types::Identifier;
// Note: we have to use 'rename' here because the top-level Settings structure is the only one
// that uses its name in serialization; internal structures use the field name that points to it
#[model(rename = "settings", impl_default = true)]
struct Settings {
motd: settings_extension_motd::MotdV1,
updates: settings_extension_updates::UpdatesSettingsV1,
host_containers: HashMap<Identifier, HostContainer>,
bootstrap_containers: HashMap<Identifier, BootstrapContainer>,
ntp: settings_extension_ntp::NtpSettingsV1,
network: NetworkSettings,
kernel: settings_extension_kernel::KernelSettingsV1,
aws: settings_extension_aws::AwsSettingsV1,
ecs: ECSSettings,
metrics: MetricsSettings,
pki: HashMap<Identifier, PemCertificate>,
container_registry: settings_extension_container_registry::RegistrySettingsV1,
oci_defaults: OciDefaults,
oci_hooks: OciHooks,
cloudformation: CloudFormationSettings,
autoscaling: AutoScalingSettings,
dns: DnsSettings,
}