pub struct ControlPlane {
pub tokens: Tokens,
pub tenants: Tenants,
pub credentials: Arc<dyn CredentialStore>,
pub audit: Arc<dyn AuditSink>,
}Expand description
The assembled control plane. Each capability is an independent component; the credential store and audit sink are trait objects so they can be swapped without touching the data plane.
Fields§
§tokens: Tokens§tenants: Tenants§credentials: Arc<dyn CredentialStore>§audit: Arc<dyn AuditSink>Implementations§
Source§impl ControlPlane
impl ControlPlane
Sourcepub fn new(
credentials: Arc<dyn CredentialStore>,
audit: Arc<dyn AuditSink>,
) -> Self
pub fn new( credentials: Arc<dyn CredentialStore>, audit: Arc<dyn AuditSink>, ) -> Self
Assemble a control plane from its components.
Sourcepub fn with_defaults() -> (Self, Arc<InMemoryCredentials>)
pub fn with_defaults() -> (Self, Arc<InMemoryCredentials>)
A control plane with an in-memory credential store and a tracing audit sink —
the production default. The returned credential store handle lets the caller seed
secrets after construction.
Auto Trait Implementations§
impl !Freeze for ControlPlane
impl !RefUnwindSafe for ControlPlane
impl !UnwindSafe for ControlPlane
impl Send for ControlPlane
impl Sync for ControlPlane
impl Unpin for ControlPlane
impl UnsafeUnpin for ControlPlane
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