Struct k8s_gateway_api::HttpBackendRef
source · [−]pub struct HttpBackendRef {
pub backend_ref: Option<BackendRef>,
pub filters: Option<Vec<HttpRouteFilter>>,
}Expand description
HTTPBackendRef defines how a HTTPRoute should forward an HTTP request.
Fields
backend_ref: Option<BackendRef>BackendRef is a reference to a backend to forward matched requests to.
If the referent cannot be found, this HTTPBackendRef is invalid and must
be dropped from the Gateway. The controller must ensure the
“ResolvedRefs” condition on the Route is set to status: False and not
configure this backend in the underlying implementation.
If there is a cross-namespace reference to an existing object
that is not covered by a ReferencePolicy, the controller must ensure the
“ResolvedRefs” condition on the Route is set to status: False,
with the “RefNotPermitted” reason and not configure this backend in the
underlying implementation.
In either error case, the Message of the ResolvedRefs Condition
should be used to provide more detail about the problem.
Support: Custom
filters: Option<Vec<HttpRouteFilter>>Filters defined at this level should be executed if and only if the request is being forwarded to the backend defined here.
Support: Custom (For broader support of filters, use the Filters field in HTTPRouteRule.)
Trait Implementations
sourceimpl Clone for HttpBackendRef
impl Clone for HttpBackendRef
sourcefn clone(&self) -> HttpBackendRef
fn clone(&self) -> HttpBackendRef
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for HttpBackendRef
impl Debug for HttpBackendRef
sourceimpl<'de> Deserialize<'de> for HttpBackendRef
impl<'de> Deserialize<'de> for HttpBackendRef
sourcefn 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>,
sourceimpl JsonSchema for HttpBackendRef
impl JsonSchema for HttpBackendRef
sourcefn schema_name() -> String
fn schema_name() -> String
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more