pub struct AdminPolicy { /* private fields */ }Expand description
The operator’s admin pass-through policy: the cluster that answers admin
requests and the path prefixes permitted through. A request whose path does
not match an allowed prefix is rejected, so enabling pass-through for
_cat/health does not silently open _cluster/settings.
Implementations§
Source§impl AdminPolicy
impl AdminPolicy
Sourcepub fn new(cluster: ClusterId, allowed_prefixes: Vec<String>) -> Self
pub fn new(cluster: ClusterId, allowed_prefixes: Vec<String>) -> Self
A policy forwarding any path matching one of allowed_prefixes to
cluster. Prefixes are matched against the raw request path (e.g.
/_cat/, /_cluster/health); an empty list allows nothing.
Sourcepub fn with_endpoint(self, endpoint: impl Into<String>) -> Self
pub fn with_endpoint(self, endpoint: impl Into<String>) -> Self
Sets the admin cluster’s base URL (builder style). The admin cluster is
operator infrastructure, not a tenancy placement, so its endpoint is given
here; without it the sink falls back to the tenancy’s cluster_endpoint.
Trait Implementations§
Source§impl Clone for AdminPolicy
impl Clone for AdminPolicy
Source§fn clone(&self) -> AdminPolicy
fn clone(&self) -> AdminPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AdminPolicy
impl RefUnwindSafe for AdminPolicy
impl Send for AdminPolicy
impl Sync for AdminPolicy
impl Unpin for AdminPolicy
impl UnsafeUnpin for AdminPolicy
impl UnwindSafe for AdminPolicy
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
Mutably borrows from an owned value. Read more