pub struct ObservedEpochParameters {
pub enabled: bool,
pub min_duration: String,
pub refresh_frequency: String,
pub cleanup_safety_margin: String,
pub advance_on_count: i64,
pub advance_on_size_mb: i64,
pub checkpoint_frequency: i64,
pub delete_parallelism: i64,
}Expand description
The epoch parameters the repository ACTUALLY reports, mirrored into status from
kopia repository status at the last bootstrap.
A separate type from EpochParameters rather than a reuse, for three reasons: the CRD
spec type cannot hold kopia’s full output (it omits enabled and cleanupSafetyMargin);
Option would mean opposite things in the two positions (spec None = “don’t touch”,
status None = “kopia didn’t report it”); and non-Option fields encode “observed means
complete” in the type. Same reasoning as StorageStats being its own type.
This is what makes the apply honest: it is best-effort, so a failed apply stays visible
here as drift from spec instead of silently doing nothing.
Fields§
§enabled: boolWhether kopia’s epoch manager is enabled on this repository at all.
min_duration: StringObserved minimum epoch age, as a Go-style duration.
refresh_frequency: StringObserved epoch-state refresh frequency, as a Go-style duration.
cleanup_safety_margin: StringObserved cleanup safety margin, as a Go-style duration. Reported for diagnosis;
not settable through spec.parameters.
advance_on_count: i64Observed index-blob count that triggers an epoch advance.
advance_on_size_mb: i64Observed total index size (MiB) that triggers an epoch advance.
checkpoint_frequency: i64Observed epochs between full index checkpoints.
delete_parallelism: i64Observed epoch-cleanup delete parallelism.
Trait Implementations§
Source§impl Clone for ObservedEpochParameters
impl Clone for ObservedEpochParameters
Source§fn clone(&self) -> ObservedEpochParameters
fn clone(&self) -> ObservedEpochParameters
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 ObservedEpochParameters
impl Debug for ObservedEpochParameters
Source§impl Default for ObservedEpochParameters
impl Default for ObservedEpochParameters
Source§fn default() -> ObservedEpochParameters
fn default() -> ObservedEpochParameters
Source§impl<'de> Deserialize<'de> for ObservedEpochParameters
impl<'de> Deserialize<'de> for ObservedEpochParameters
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 ObservedEpochParameters
impl JsonSchema for ObservedEpochParameters
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 ObservedEpochParameters
impl PartialEq for ObservedEpochParameters
Source§fn eq(&self, other: &ObservedEpochParameters) -> bool
fn eq(&self, other: &ObservedEpochParameters) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ObservedEpochParameters
impl Serialize for ObservedEpochParameters
impl Eq for ObservedEpochParameters
impl StructuralPartialEq for ObservedEpochParameters
Auto Trait Implementations§
impl Freeze for ObservedEpochParameters
impl RefUnwindSafe for ObservedEpochParameters
impl Send for ObservedEpochParameters
impl Sync for ObservedEpochParameters
impl Unpin for ObservedEpochParameters
impl UnsafeUnpin for ObservedEpochParameters
impl UnwindSafe for ObservedEpochParameters
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