pub enum RoutingEdgeResource {
Ingress,
DnsEndpoint,
}Expand description
Closed set of K8s resource kinds the tatara reconciler emits as external routing edges. The two variants partition the current routing-edge surface:
Ingress—networking.k8s.io/v1Ingress, backed by a Service, matched by the operator’s ingress controller (nginx / Contour / HAProxy). Emitted byIngressEdgeintatara-reconciler::edges.DnsEndpoint—externaldns.k8s.io/v1alpha1DNSEndpoint, picked up by external-dns and written to the operator’s configured DNS provider (Cloudflare / Route53 / etc.). Emitted byDnsEndpointEdgeintatara-reconciler::edges.
Every variant carries a stable (api_version, kind) pair through
its typed projections; both projections are const fn so the
pair reduces to a &'static str slot at every callsite with no
runtime overhead.
Variants§
Implementations§
Source§impl RoutingEdgeResource
impl RoutingEdgeResource
Sourcepub const ALL: [Self; 2]
pub const ALL: [Self; 2]
The closed set of routing-edge resource variants this
substrate binds. Enumerable so a sweep-test (or a future
coherence check) can walk every variant without a hand-
maintained list on the caller side. A future third variant
(a Gateway API HTTPRoute, a NetworkPolicy edge) added
without an ALL entry surfaces at the
all_enumerates_every_variant_exactly_once pin.
Sourcepub const fn api_version(self) -> &'static str
pub const fn api_version(self) -> &'static str
K8s wire-form apiVersion string for this routing-edge
resource variant. Matches the canonical group+version pair the
K8s / external-dns controllers expose today:
Ingress→networking.k8s.io/v1DnsEndpoint→externaldns.k8s.io/v1alpha1
A future controller upgrade that bumps a group’s version
lands at ONE arm here; every downstream emit or fetch site
inherits the upgrade mechanically through the same
.api_version() call.
Sourcepub const fn kind(self) -> &'static str
pub const fn kind(self) -> &'static str
K8s wire-form kind string for this routing-edge resource
variant — the PascalCase identifier the K8s API server matches
against the resource’s kind: slot. The trait method
Edge::kind at each downstream impl delegates to this
projection so the diagnostic label and the emitted JSON slot
cannot drift.
A regression that misspelled either PascalCase identifier
would silently mis-route SSA-fetch against SSA-apply (an
Ingess emit against an Ingress fetch is a 404 at wire
time); post-lift a rename lands at ONE arm here rather than
at every emit or trait-method site.
Sourcepub const fn wire_identity(self) -> K8sWireIdentity
pub const fn wire_identity(self) -> K8sWireIdentity
Project this variant onto the typed
crate::k8s_wire_identity::K8sWireIdentity pair — the
substrate primitive that owns the workspace-wide
(apiVersion, kind) pairing every emit or fetch site
composes against. Pre-lift the reconciler’s two
IngressEdge::render / DnsEndpointEdge::render emit sites
hand-authored the pair as two adjacent json! slots
("apiVersion": RoutingEdgeResource::X.api_version(), "kind": RoutingEdgeResource::X.kind()) mentioning the same variant
twice; post-lift the emit site names the variant ONCE via
.wire_identity().resource_json(json!({...})) and the pair
binds structurally at the closed-set owner.
const fn so a caller can bind the pair into a const slot
— sibling to crate::flux_resource::FluxResource::wire_identity
on the FluxCD wire-form axis; both project through the same
closed-set → typed-pair idiom.
Trait Implementations§
Source§impl Clone for RoutingEdgeResource
impl Clone for RoutingEdgeResource
Source§fn clone(&self) -> RoutingEdgeResource
fn clone(&self) -> RoutingEdgeResource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RoutingEdgeResource
Source§impl Debug for RoutingEdgeResource
impl Debug for RoutingEdgeResource
impl Eq for RoutingEdgeResource
Source§impl Hash for RoutingEdgeResource
impl Hash for RoutingEdgeResource
Source§impl PartialEq for RoutingEdgeResource
impl PartialEq for RoutingEdgeResource
impl StructuralPartialEq for RoutingEdgeResource
Auto Trait Implementations§
impl Freeze for RoutingEdgeResource
impl RefUnwindSafe for RoutingEdgeResource
impl Send for RoutingEdgeResource
impl Sync for RoutingEdgeResource
impl Unpin for RoutingEdgeResource
impl UnsafeUnpin for RoutingEdgeResource
impl UnwindSafe for RoutingEdgeResource
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
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<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
key and return true if they are equal.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> 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 moreimpl<T> OptionalSend for T
impl<T> OptionalSync for T
Source§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);