pub struct RepositorySpec {
pub backend: Backend,
pub encryption: Encryption,
pub create: Option<CreateBehavior>,
pub cache_defaults: Option<CacheDefaults>,
pub catalog: Option<CatalogBounds>,
pub maintenance: Option<RepositoryMaintenanceSpec>,
}Expand description
A kopia repository owned by one namespace: credentials, backend, encryption,
and optional catalog-materialization bounds. Many BackupConfigs / Restores
reference one. ADR §3.1.
Fields§
§backend: BackendExactly one backend, enforced at the type level by the Backend enum. ADR §3.1.
encryption: EncryptionRepository password, always a Secret reference. A sub-object so future rotation fields slot in without API breakage. ADR §3.1/§4.11.
create: Option<CreateBehavior>What to do when the repository does not yet exist. Absent/disabled means it must already exist; enabled means the operator creates it with the given encryption/splitter/hash algorithms. ADR §3.1.
cache_defaults: Option<CacheDefaults>Cache sizing inherited by Backup/Restore movers unless overridden. ADR §3.1.
catalog: Option<CatalogBounds>Bounds materialization of origin: discovered Backup CRs from the kopia
catalog, keeping etcd footprint sane for large repositories. ADR §3.1.
maintenance: Option<RepositoryMaintenanceSpec>Maintenance control. Default-managed: when absent or enabled: true, the
reconciler creates and owns a Maintenance CR for this repository in this
namespace. ADR §3.1/§3.7.
Trait Implementations§
Source§impl Clone for RepositorySpec
impl Clone for RepositorySpec
Source§fn clone(&self) -> RepositorySpec
fn clone(&self) -> RepositorySpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RepositorySpec
impl Debug for RepositorySpec
Source§impl<'de> Deserialize<'de> for RepositorySpec
impl<'de> Deserialize<'de> for RepositorySpec
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 RepositorySpec
impl JsonSchema for RepositorySpec
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 RepositorySpec
impl PartialEq for RepositorySpec
Source§impl Serialize for RepositorySpec
impl Serialize for RepositorySpec
impl StructuralPartialEq for RepositorySpec
Auto Trait Implementations§
impl Freeze for RepositorySpec
impl RefUnwindSafe for RepositorySpec
impl Send for RepositorySpec
impl Sync for RepositorySpec
impl Unpin for RepositorySpec
impl UnsafeUnpin for RepositorySpec
impl UnwindSafe for RepositorySpec
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,
§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