pub struct PreflightInputs {Show 15 fields
pub repository_phase: String,
pub repository_ready: bool,
pub backend_reachable: bool,
pub snapshot_count_known: bool,
pub snapshot_count: i64,
pub index_blob_count_known: bool,
pub index_blob_count: i64,
pub size_bytes_known: bool,
pub size_bytes: i64,
pub last_healthy_known: bool,
pub last_healthy_age_seconds: i64,
pub last_reverify_known: bool,
pub last_reverify_age_seconds: i64,
pub maintenance_has_run: bool,
pub maintenance_last_success_age_seconds: i64,
}Expand description
The full environment a preflight check evaluates against. A plain value struct
(no kube/tokio) — the controller gathers live repository + maintenance state
and fills it; the evaluator is pure.
Fields§
§repository_phase: Stringrepository.phase — the Repository/ClusterRepository status phase label.
repository_ready: boolrepository.ready — phase == Ready.
backend_reachable: boolrepository.backendReachable — the BackendReachable condition is True,
or true when the condition is absent (the health probe is disabled, so
there is no evidence the backend is down).
snapshot_count_known: boolrepository.snapshotCountKnown — the snapshot count has been observed.
snapshot_count: i64repository.snapshotCount — status.storageStats.snapshotCount, UNKNOWN_AGE if unobserved.
index_blob_count_known: boolrepository.indexBlobCountKnown — the index-blob count has been observed.
index_blob_count: i64repository.indexBlobCount — status.storageStats.indexBlobCount, UNKNOWN_AGE if unobserved.
size_bytes_known: boolrepository.sizeBytesKnown — the repository size has been observed.
size_bytes: i64repository.sizeBytes — status.storageStats.totalSizeBytes, UNKNOWN_AGE if unobserved.
last_healthy_known: boolrepository.lastHealthyKnown — a successful health probe has been recorded.
last_healthy_age_seconds: i64repository.lastHealthyAgeSeconds — secs since status.health.lastHealthyAt, UNKNOWN_AGE if never.
last_reverify_known: boolrepository.lastReverifyKnown — a reverify has been recorded.
last_reverify_age_seconds: i64repository.lastReverifyAgeSeconds — secs since status.lastReverifyAt, UNKNOWN_AGE if never.
maintenance_has_run: boolmaintenance.hasRun — the repo’s Maintenance has a recorded successful run
(scheduled or manual run-now).
maintenance_last_success_age_seconds: i64maintenance.lastSuccessAgeSeconds — secs since the most recent successful
maintenance of any mode, UNKNOWN_AGE if never.
Trait Implementations§
Source§impl Clone for PreflightInputs
impl Clone for PreflightInputs
Source§fn clone(&self) -> PreflightInputs
fn clone(&self) -> PreflightInputs
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PreflightInputs
impl Debug for PreflightInputs
Source§impl Default for PreflightInputs
impl Default for PreflightInputs
Source§impl PartialEq for PreflightInputs
impl PartialEq for PreflightInputs
Source§fn eq(&self, other: &PreflightInputs) -> bool
fn eq(&self, other: &PreflightInputs) -> bool
self and other values to be equal, and is used by ==.impl Eq for PreflightInputs
impl StructuralPartialEq for PreflightInputs
Auto Trait Implementations§
impl Freeze for PreflightInputs
impl RefUnwindSafe for PreflightInputs
impl Send for PreflightInputs
impl Sync for PreflightInputs
impl Unpin for PreflightInputs
impl UnsafeUnpin for PreflightInputs
impl UnwindSafe for PreflightInputs
Blanket Implementations§
§impl<T> AnyExt for T
impl<T> AnyExt for T
§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
T behind reference§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
T behind mutable reference§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
T behind Rc pointer§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
T behind Arc pointer§fn downcast_box<T>(this: Box<Self>) -> Result<Box<T>, Box<Self>>where
T: Any,
fn downcast_box<T>(this: Box<Self>) -> Result<Box<T>, Box<Self>>where
T: Any,
T behind Box pointer§fn downcast_move<T>(this: Self) -> Option<T>
fn downcast_move<T>(this: Self) -> Option<T>
Self to T,
useful only in generic context as a workaround for specializationSource§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,
§impl<T, X> CoerceTo<T> for Xwhere
T: CoerceFrom<X> + ?Sized,
impl<T, X> CoerceTo<T> for Xwhere
T: CoerceFrom<X> + ?Sized,
fn coerce_rc_to(self: Rc<X>) -> Rc<T>
fn coerce_box_to(self: Box<X>) -> Box<T>
fn coerce_ref_to(&self) -> &T
fn coerce_mut_to(&mut self) -> &mut T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more