canic_host/release_set/config/model/
mod.rs1use std::path::PathBuf;
2
3pub(super) const DEFAULT_INITIAL_CYCLES: u128 = 5_000_000_000_000;
4pub const LOCAL_ROOT_MIN_READY_CYCLES: u128 = 100_000_000_000_000;
5pub(super) const DEFAULT_RANDOMNESS_RESEED_INTERVAL_SECS: u64 = 3600;
6
7#[derive(Clone, Debug, Eq, PartialEq)]
11pub struct ConfiguredPoolExpectation {
12 pub pool: String,
13 pub canister_role: String,
14}
15
16#[derive(Clone, Debug, Eq, PartialEq)]
20pub struct ConfiguredRoleLifecycle {
21 pub fleet: String,
22 pub role: String,
23 pub display: String,
24 pub declaration_kind: String,
25 pub package: String,
26 pub attached: bool,
27 pub state: String,
28 pub topology: Option<String>,
29}
30
31#[derive(Clone, Debug, Eq, PartialEq)]
35pub struct DeclaredFleetRole {
36 pub fleet: String,
37 pub role: String,
38 pub display: String,
39 pub package: String,
40}
41
42#[derive(Clone, Debug, Eq, PartialEq)]
46pub struct AttachedFleetRole {
47 pub fleet: String,
48 pub role: String,
49 pub display: String,
50 pub subnet: String,
51 pub kind: String,
52 pub topology: String,
53}
54
55#[derive(Clone, Debug, Eq, PartialEq)]
59pub struct RenamedFleetRole {
60 pub fleet: String,
61 pub old_role: String,
62 pub new_role: String,
63 pub old_display: String,
64 pub new_display: String,
65 pub package_manifest: Option<PathBuf>,
66 pub package_manifest_note: Option<String>,
67}