pub struct Config {
pub repos_root: PathBuf,
pub age_recipient: String,
pub s3: S3Config,
pub github: GithubConfig,
pub mirror: bool,
pub backup_refs: Vec<String>,
pub disk_warn_percent: u8,
pub disk_warn_min_free_bytes: u64,
}Fields§
§repos_root: PathBuf§age_recipient: String§s3: S3Config§github: GithubConfig§mirror: boolWhether this host is the client-enforced singleton GitHub mirror.
Only a host with mirror = true runs the GitHub mirror step on
backup — the token itself lives in secrets.toml [github], which is
present only here too. Set by hostspec::render_config, never by
hand.
backup_refs: Vec<String>Refs whose push triggers the durable S3 backup. A push that updates a
matching ref is bundled/encrypted/uploaded; other pushes stay on the
host only. A bare name (main) matches refs/heads/main; ** matches
every ref. Set to ["**"] to back up every push.
disk_warn_percent: u8Warn on the push summary when the repos filesystem is low. “Low” means
free% below disk_warn_percent AND free bytes below
disk_warn_min_free_bytes — see docs/DESIGN.md. Informational only.
disk_warn_min_free_bytes: u64Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
Mutably borrows from an owned value. Read more