pub enum ProjectsEvent {
Show 35 variants
DesignersPoll {
open: usize,
},
DesignersProceed {
sessions: Vec<DesignerSeen>,
},
DesignersSkipped,
RunStarted {
run_id: String,
action: ProjectAction,
},
PreImageExported {
bytes: usize,
},
TagsPreImageExported {
provider: String,
bytes: usize,
},
TagImportSent {
provider: String,
path: String,
policy: &'static str,
nodes: usize,
carry: bool,
},
TagValuesCarried {
provider: String,
path: String,
nodes: usize,
},
TagProviderSettingsApplied {
provider: String,
action: &'static str,
},
TagGroupsWritten {
providers: Vec<String>,
written: usize,
deleted: usize,
},
TagImportAnswered {
provider: String,
clean: bool,
},
TagsVerified {
provider: String,
equal: bool,
},
ImportSent {
overwrite: bool,
},
ImportAnswered,
Verified {
equal: bool,
},
RecordWritten,
RecordFailed {
code: String,
},
TagRecordWritten {
provider: String,
},
TagRecordFailed {
provider: String,
code: String,
},
ChildrenSettling {
children: Vec<String>,
},
ChildChecked {
name: String,
status: ChildStatus,
},
RollbackStarted {
cause: RollbackCause,
},
ProjectRestored {
equal: bool,
},
TagGroupsRestored {
providers: Vec<String>,
},
TagProviderRestored {
provider: String,
action: &'static str,
},
RollbackVerified {
equal: bool,
},
TagDeleteSent {
provider: String,
paths: Vec<String>,
rollback: bool,
},
TagDeleteAnswered {
provider: String,
clean: bool,
deleted: usize,
},
HostPreImageWritten {
files: usize,
},
JournalWritten {
state: &'static str,
},
JournalCleared,
BackupWaitStarted {
budget_s: u64,
},
BackupResync {
ok: bool,
code: Option<String>,
},
BackupVerdict {
converged: bool,
reason: Option<&'static str>,
},
Finished {
outcome: ProjectOutcome,
},
}Expand description
A step of a run, for the events log and the observer.
The fields are names, ids, counts and hashes only: never a project file, a secret or a gateway response body.
Variants§
DesignersPoll
The Designer list was read under --designers wait (25-14). Heard
as it happens and logged once the run directory exists.
DesignersProceed
--designers proceed went ahead over these open sessions (D-15).
Fields
sessions: Vec<DesignerSeen>(user, project, host) of each open session.
DesignersSkipped
The Designer check did not run: a record run does not touch the
project.
RunStarted
The run directory exists and the run is about to start.
PreImageExported
The live project was saved into the run directory.
TagsPreImageExported
An owned tag provider’s live export was saved into the run directory
(export/tags/<P>.json) before any tag write (Phase 26).
TagImportSent
A tag import request is about to be sent.
Fields
TagValuesCarried
A fresh export of the provider was read right before a carried batch, and the live values of its nodes were put into the body (R3-CARRY, R3-RACE). Paths and counts only, never a value.
Fields
TagProviderSettingsApplied
An owned provider’s settings were created or modified and read back equal to the repo’s (26-10).
TagGroupsWritten
The owned providers’ tag-group units were committed, scanned and read back (26-10).
Fields
TagImportAnswered
The gateway answered a tag import.
Fields
TagsVerified
An owned provider was read back after the tag writes and compared with the repo and its pre-image.
Fields
ImportSent
The import request is about to be sent.
ImportAnswered
The gateway answered the import.
Verified
The project was read back and compared with the artifact.
RecordWritten
The release record was written.
RecordFailed
The release record could not be written.
TagRecordWritten
The tag record of an owned provider was written (26-08).
TagRecordFailed
The tag record of an owned provider could not be written.
ChildrenSettling
The sweep found projects that inherit from the deployed one and is reading their exports until they settle (D-06, K7).
ChildChecked
One child was compared with its release record.
RollbackStarted
The run failed after its first tag write and its automatic rollback starts (26-11).
Fields
cause: RollbackCauseWhy.
ProjectRestored
The rollback imported the project’s pre-image again and read it back (26-11).
TagGroupsRestored
The rollback put the run’s tag-group units back from its snapshot (26-11).
TagProviderRestored
The rollback put an owned provider’s settings back (modify) or
deleted a provider the run created (delete) (26-11).
RollbackVerified
The rollback read the owned providers back and compared them with their pre-images (26-11).
TagDeleteSent
A tagDelete route call was sent (26-19): the provider and the
provider-relative paths it named; rollback for the removal of what
a failed run created.
Fields
TagDeleteAnswered
The tagDelete route answered a call (26-19).
Fields
HostPreImageWritten
The run’s pre-image was written to the gateway host (26-12):
every file of the set, run.json last, before the first gateway
write.
JournalWritten
The host journal was written (26-12).
JournalCleared
The host journal was cleared after a green run or a verified rollback (26-12).
BackupWaitStarted
The wait for the backup’s copy of the owned tags began (26-13).
BackupResync
The one resync request was sent to the master (26-13).
BackupVerdict
The wait for the backup ended (26-13).
Fields
Finished
The run ended.
Fields
outcome: ProjectOutcomeHow it ended.
Implementations§
Trait Implementations§
Source§impl Clone for ProjectsEvent
impl Clone for ProjectsEvent
Source§impl Debug for ProjectsEvent
impl Debug for ProjectsEvent
impl Eq for ProjectsEvent
Source§impl PartialEq for ProjectsEvent
impl PartialEq for ProjectsEvent
impl StructuralPartialEq for ProjectsEvent
Auto Trait Implementations§
impl Forget for ProjectsEvent
impl Freeze for ProjectsEvent
impl Move for ProjectsEvent
impl RefUnwindSafe for ProjectsEvent
impl Send for ProjectsEvent
impl Sync for ProjectsEvent
impl Unpin for ProjectsEvent
impl UnsafeUnpin for ProjectsEvent
impl UnwindSafe for ProjectsEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.