pub enum UpstreamAuth {
None,
Basic {
username: String,
password: String,
},
Bearer {
token: String,
},
ApiKey {
header: String,
key: String,
},
Mtls {
cert_pem: String,
key_pem: String,
},
}Expand description
How an upstream authenticates with its registry — the server-side enum,
distinct from the agent-side ConnectorAuth.
Variants§
None
No authentication.
Basic
HTTP Basic auth.
Bearer
Bearer token.
ApiKey
Custom API-key header.
Mtls
mTLS client cert (built into the HTTP client, no per-request header).
Trait Implementations§
Source§impl Clone for UpstreamAuth
impl Clone for UpstreamAuth
Source§impl Debug for UpstreamAuth
impl Debug for UpstreamAuth
Source§impl Default for UpstreamAuth
impl Default for UpstreamAuth
Source§impl<'de> Deserialize<'de> for UpstreamAuth
impl<'de> Deserialize<'de> for UpstreamAuth
Source§fn 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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UpstreamAuth
Source§impl PartialEq for UpstreamAuth
impl PartialEq for UpstreamAuth
Source§impl Serialize for UpstreamAuth
impl Serialize for UpstreamAuth
impl StructuralPartialEq for UpstreamAuth
Auto Trait Implementations§
impl Forget for UpstreamAuth
impl Freeze for UpstreamAuth
impl RefUnwindSafe for UpstreamAuth
impl Send for UpstreamAuth
impl Sync for UpstreamAuth
impl Unpin for UpstreamAuth
impl UnsafeUnpin for UpstreamAuth
impl UnwindSafe for UpstreamAuth
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
Mutably borrows from an owned value. Read more
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.