pub struct SnapshotStatus {Show 17 fields
pub phase: Option<SnapshotPhase>,
pub origin: Option<Origin>,
pub observed_generation: Option<i64>,
pub snapshot: Option<SnapshotInfo>,
pub timing: Option<SnapshotTiming>,
pub stats: Option<SnapshotStats>,
pub job: Option<JobStatus>,
pub resolved: Option<ResolvedSnapshot>,
pub conditions: Vec<Condition>,
pub log_tail: Option<String>,
pub failure: Option<FailureBlock>,
pub pinned: Option<bool>,
pub hooks: Option<HookExecutionStatus>,
pub staged: Option<StagedSources>,
pub preflight_since: Option<String>,
pub cleanup: Option<CleanupStatus>,
pub recorded: Option<RecordedSnapshotMeta>,
}Expand description
Observed state of a Snapshot.
Fields§
§phase: Option<SnapshotPhase>Current lifecycle phase.
origin: Option<Origin>Canonical origin (also mirrored to the origin label).
observed_generation: Option<i64>metadata.generation last reconciled, for staleness detection.
snapshot: Option<SnapshotInfo>The kopia artifact this CR represents.
timing: Option<SnapshotTiming>Start/end/duration of the snapshot run.
stats: Option<SnapshotStats>Byte/file counts parsed from kopia’s JSON output.
job: Option<JobStatus>The mover Job backing this run; absent for discovered.
resolved: Option<ResolvedSnapshot>Frozen recipe values at run time (scheduled/manual).
conditions: Vec<Condition>Standard Kubernetes conditions (e.g. SourcesQuiesced, SnapshotCreated).
log_tail: Option<String>The last lines of the run’s output, written by the mover at the terminal transition.
failure: Option<FailureBlock>Structured terminal-failure detail (kopia error class, stderr tail, retry hint).
pinned: Option<bool>The observed kopia-side pin state: Some(true) if pinned, Some(false) if unpinned, None before any pin reconcile.
hooks: Option<HookExecutionStatus>Hook-execution bookkeeping so each hook list runs exactly once per Snapshot.
staged: Option<StagedSources>The CSI staging objects the run created for copyMethod: Snapshot/Clone.
preflight_since: Option<String>RFC 3339 timestamp of the first reconcile where the repository was Ready
but a spec.preflight check was failing. The one-shot anchor for the
preflight timeout deadline (so the budget covers preflight only, not the
earlier repository-not-Ready wait). Cleared once every preflight check passes,
so a later failing episode gets a fresh budget rather than a stale anchor.
cleanup: Option<CleanupStatus>Post-run cleanup bookkeeping, so each cleanup runs at most once per Snapshot.
recorded: Option<RecordedSnapshotMeta>The mover identity recorded on the kopia snapshot itself (the
kopiur-meta tag): the resolved effective uid/gid/fsGroup the backup ran
as, plus its provenance. Produced runs stamp this at launch (from the
same value written into the tag); discovered rows decode it from the tag
during the catalog scan. Absent for pre-feature snapshots, foreign
backups without the tag, or a tag this operator version cannot decode.
Trait Implementations§
Source§impl Clone for SnapshotStatus
impl Clone for SnapshotStatus
Source§fn clone(&self) -> SnapshotStatus
fn clone(&self) -> SnapshotStatus
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 SnapshotStatus
impl Debug for SnapshotStatus
Source§impl Default for SnapshotStatus
impl Default for SnapshotStatus
Source§fn default() -> SnapshotStatus
fn default() -> SnapshotStatus
Source§impl<'de> Deserialize<'de> for SnapshotStatus
impl<'de> Deserialize<'de> for SnapshotStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for SnapshotStatus
impl JsonSchema for SnapshotStatus
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for SnapshotStatus
impl PartialEq for SnapshotStatus
Source§fn eq(&self, other: &SnapshotStatus) -> bool
fn eq(&self, other: &SnapshotStatus) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SnapshotStatus
impl Serialize for SnapshotStatus
impl StructuralPartialEq for SnapshotStatus
Auto Trait Implementations§
impl Freeze for SnapshotStatus
impl RefUnwindSafe for SnapshotStatus
impl Send for SnapshotStatus
impl Sync for SnapshotStatus
impl Unpin for SnapshotStatus
impl UnsafeUnpin for SnapshotStatus
impl UnwindSafe for SnapshotStatus
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<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