pub struct PreflightInput<'a> {Show 13 fields
pub target: &'a Target,
pub declared: Option<&'a Declared>,
pub master: &'a dyn DeployApi,
pub backup: Option<&'a BackupNode<'a>>,
pub gateway: &'a dyn GatewayApi,
pub reader: &'a dyn TreeReader,
pub host: &'a dyn ApplyHost,
pub touched_files: usize,
pub touched_paths: &'a [String],
pub deleted_paths: &'a [String],
pub hold: &'a HoldModel,
pub designers: &'a DesignersPolicy,
pub clock: &'a dyn Clock,
}Expand description
What the preflights read.
Fields§
§target: &'a TargetThe target of this run.
declared: Option<&'a Declared>The declared render of this run: None for a rollback, which renders
nothing, so the checks that need the rendered tree are skipped.
master: &'a dyn DeployApiThe master’s deploy surface (mode).
backup: Option<&'a BackupNode<'a>>The backup node (a read-only handle), when the target has one.
gateway: &'a dyn GatewayApiThe master’s gateway surface (identity, write probe, Designers).
reader: &'a dyn TreeReaderThe read half of the master’s host.
host: &'a dyn ApplyHostThe write seam of the master’s host.
touched_files: usizeFiles this run writes plus files it deletes.
touched_paths: &'a [String]The paths this run touches (collection paths, and the ledger key when the ledger is swapped), for the limits a host puts on a path.
deleted_paths: &'a [String]The collection paths this run deletes from the master (a subset of
touched_paths): with the rendered paths, what the backup’s files
are compared over after the apply, so backup_read refuses a unit of
either that the backup cannot read (WR-02).
hold: &'a HoldModelThe hold the lock will be requested with and its estimates.
designers: &'a DesignersPolicyWhat to do about open Designer sessions.
clock: &'a dyn ClockThe monotonic clock the Designer wait is timed by.