Skip to main content

IngressOwnerEffect

Enum IngressOwnerEffect 

Source
pub enum IngressOwnerEffect {
    Reassign {
        machine: String,
        ip_id: String,
    },
    Withdraw {
        machine: String,
        reason: String,
    },
    Refuse {
        reason: String,
    },
    NoOp {
        reason: String,
    },
}
Expand description

What should happen to public ingress, given an ingress_owner observation.

The two failover speeds W267 §Tier 1 names appear here as two variants: Reassign is the intra-provider one (seconds, no DNS propagation, no cert re-mint), Withdraw the cross-provider one (pull the dead origin’s A record and let the survivors take its share).

Variants§

§

Reassign

Move ip_id onto machine — the intra-provider failover.

Fields

§machine: String

The machine that now owns public ingress.

§

Withdraw

Drop machine from the apex origin set — the cross-provider failover.

Consumed by cloud::reconciler::domain::public_origins’s health-exclusion argument, which is why this carries a machine name and not a record id: the DNS layer already knows how to turn a declared machine into an address, and duplicating that here would be a second answer to a question R859-F1 settled.

Fields

§machine: String
§reason: String
§

Refuse

Do nothing, and refuse to do it — positive grounds against acting.

Distinct from NoOp because it is worth saying: a refusal means the world is in a state where the correct action is known and deliberately not taken, which an operator watching a failover needs to see. A NoOp is not news.

Fields

§reason: String
§

NoOp

Nothing to do.

Fields

§reason: String

Implementations§

Source§

impl IngressOwnerEffect

Source

pub fn is_action(&self) -> bool

true for the two variants that command something.

Source

pub fn reason(&self) -> String

One operator-readable line, for a log or a yah cloud apply summary.

Trait Implementations§

Source§

impl Clone for IngressOwnerEffect

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IngressOwnerEffect

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for IngressOwnerEffect

Source§

impl PartialEq for IngressOwnerEffect

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for IngressOwnerEffect

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.