forked from bottlerocket-os/bottlerocket
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariant_mod.rs
More file actions
22 lines (19 loc) · 815 Bytes
/
Copy pathvariant_mod.rs
File metadata and controls
22 lines (19 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// This is linked into place at variant/mod.rs because the build system mounts a temporary
// directory at variant/ - see README.md.
use crate::{ConfigurationFiles, Services};
use bottlerocket_release::BottlerocketRelease;
use model_derive::model;
use serde::{Deserialize, Serialize};
// We expose anything defined by the current variant.
mod current;
pub use current::*;
// This is the top-level model exposed by the API system. It contains the common sections for all
// variants. This allows a single API call to retrieve everything the API system knows, which is
// useful as a check and also, for example, as a data source for templated configuration files.
#[model]
struct Model {
settings: Settings,
services: Services,
configuration_files: ConfigurationFiles,
os: BottlerocketRelease,
}