pub struct CdnPlacement {
pub cdn_base: String,
pub env: String,
pub addresses: BTreeMap<String, String>,
pub auth_required_prefixes: Vec<String>,
}Expand description
The origin resolution that exists today: the CDN prefix for static routes, and a mesh-identity-keyed address map for backend ones.
addresses is keyed by mesh identity, not by component ref, so it takes
InnerDoorPlan::resolve_addresses’
output shape directly and the identity derivation stays in the one place
that owns it (component_workload_ident).
Fields§
§cdn_base: StringThe tier’s CDN origin, e.g. https://cdn.yah.dev. Trailing slash
tolerated.
env: StringMirror env the publisher wrote under, e.g. prod.
addresses: BTreeMap<String, String>mesh ident -> host:port for every deployed unit a backend route names.
auth_required_prefixes: Vec<String>PasswayAuth::require_prefixes of the door fronting this domain.
Trait Implementations§
Source§impl Clone for CdnPlacement
impl Clone for CdnPlacement
Source§fn clone(&self) -> CdnPlacement
fn clone(&self) -> CdnPlacement
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 CdnPlacement
impl Debug for CdnPlacement
Source§impl Default for CdnPlacement
impl Default for CdnPlacement
Source§fn default() -> CdnPlacement
fn default() -> CdnPlacement
Source§impl RoutePlacement for CdnPlacement
impl RoutePlacement for CdnPlacement
Source§fn asset_origin(&self, component: &str, _path: &str) -> Option<String>
fn asset_origin(&self, component: &str, _path: &str) -> Option<String>
<cdn_base>/<service>/<env> — the same string
reconciler::domain::plan_domain_worker computes and the same one a
mirror’s providers.static.asset_origin carries. The component’s
mount is deliberately absent: the front door fetches
${ASSET_ORIGIN}/<request path>, so the mount is already in the path
(see mesofact_static::publish_prefix).
Source§fn backend_origin(&self, component: &str, _path: &str) -> Option<String>
fn backend_origin(&self, component: &str, _path: &str) -> Option<String>
backend route’s deployed unit is reachable.Source§fn auth_required_prefixes(&self) -> &[String]
fn auth_required_prefixes(&self) -> &[String]
PasswayAuth::require_prefixes, verbatim. Default: an anonymous door,
which is every Worker-fronted domain (the Worker arm has no bearer auth
at all).Auto Trait Implementations§
impl Freeze for CdnPlacement
impl RefUnwindSafe for CdnPlacement
impl Send for CdnPlacement
impl Sync for CdnPlacement
impl Unpin for CdnPlacement
impl UnsafeUnpin for CdnPlacement
impl UnwindSafe for CdnPlacement
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Fruit for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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