gateway_api/apis/experimental/
constants.rs

1// WARNING: generated file - manual changes will be overriden
2
3#[derive(Debug, PartialEq, Eq)]
4pub enum GatewayClassConditionType {
5    Accepted,
6    SupportedVersion,
7}
8impl std::fmt::Display for GatewayClassConditionType {
9    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
10        write!(f, "{:?}", self)
11    }
12}
13#[derive(Debug, PartialEq, Eq)]
14pub enum GatewayClassConditionReason {
15    Accepted,
16    InvalidParameters,
17    Pending,
18    Unsupported,
19    Waiting,
20    SupportedVersion,
21    UnsupportedVersion,
22}
23impl std::fmt::Display for GatewayClassConditionReason {
24    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
25        write!(f, "{:?}", self)
26    }
27}
28#[derive(Debug, PartialEq, Eq)]
29pub enum GatewayConditionType {
30    Programmed,
31    Accepted,
32    Ready,
33}
34impl std::fmt::Display for GatewayConditionType {
35    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
36        write!(f, "{:?}", self)
37    }
38}
39#[derive(Debug, PartialEq, Eq)]
40pub enum GatewayConditionReason {
41    Programmed,
42    Invalid,
43    NoResources,
44    AddressNotAssigned,
45    AddressNotUsable,
46    Accepted,
47    ListenersNotValid,
48    Pending,
49    UnsupportedAddress,
50    InvalidParameters,
51    Ready,
52    ListenersNotReady,
53}
54impl std::fmt::Display for GatewayConditionReason {
55    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
56        write!(f, "{:?}", self)
57    }
58}
59#[derive(Debug, PartialEq, Eq)]
60pub enum ListenerConditionType {
61    Conflicted,
62    Accepted,
63    ResolvedRefs,
64    Programmed,
65    Ready,
66}
67impl std::fmt::Display for ListenerConditionType {
68    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
69        write!(f, "{:?}", self)
70    }
71}
72#[derive(Debug, PartialEq, Eq)]
73pub enum ListenerConditionReason {
74    HostnameConflict,
75    ProtocolConflict,
76    NoConflicts,
77    Accepted,
78    PortUnavailable,
79    UnsupportedProtocol,
80    ResolvedRefs,
81    InvalidCertificateRef,
82    InvalidRouteKinds,
83    RefNotPermitted,
84    Programmed,
85    Invalid,
86    Pending,
87    Ready,
88}
89impl std::fmt::Display for ListenerConditionReason {
90    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
91        write!(f, "{:?}", self)
92    }
93}
94
95#[derive(Debug, PartialEq, Eq)]
96pub enum RouteConditionType {
97    Accepted,
98    ResolvedRefs,
99}
100impl std::fmt::Display for RouteConditionType {
101    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
102        write!(f, "{:?}", self)
103    }
104}
105
106#[derive(Debug, PartialEq, Eq)]
107pub enum RouteConditionReason {
108    Accepted,
109    NotAllowedByListeners,
110    NoMatchingListenerHostname,
111    UnsupportedValue,
112    Pending,
113    ResolvedRefs,
114    RefNotPermitted,
115    InvalidKind,
116    BackendNotFound,
117}
118impl std::fmt::Display for RouteConditionReason {
119    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
120        write!(f, "{:?}", self)
121    }
122}