pub enum PlanMode {
Add,
Upgrade,
}Expand description
Why the planner is running. The render path is shared between fresh
installs and re-renders (ryra upgrade); the side-effect steps are
not — re-registering an OIDC client on upgrade would mint a new
client_id/client_secret against authelia’s existing entry, and
patching every other installed service’s quadlet (retroactive network
joins) is install-time work. The mode gates those.
Variants§
Add
Fresh install. Validate that the service isn’t already on disk, register OIDC clients, retroactively patch other services to join shared networks, set up Tailscale, and start the unit.
Upgrade
Re-render an installed service to pick up registry changes. Skips the validation rejects and the install-time side effects; the upgrade caller handles diff/backup/restart.
Trait Implementations§
impl Copy for PlanMode
impl Eq for PlanMode
impl StructuralPartialEq for PlanMode
Auto Trait Implementations§
impl Freeze for PlanMode
impl RefUnwindSafe for PlanMode
impl Send for PlanMode
impl Sync for PlanMode
impl Unpin for PlanMode
impl UnsafeUnpin for PlanMode
impl UnwindSafe for PlanMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.