pub struct ManagedServerInterface {
pub server: ManagedServer,
pub config: ServerConfigData,
}Fields§
§server: ManagedServer§config: ServerConfigDataTrait Implementations§
Source§impl DocboxManagementInterface for ManagedServerInterface
impl DocboxManagementInterface for ManagedServerInterface
Source§fn check_root<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CheckRootOutput, ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn check_root<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CheckRootOutput, ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Checks if the docbox root database has been initialized
Source§fn create_root<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_root<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create the root docbox database
Source§fn create_tenant<'life0, 'async_trait>(
&'life0 self,
input: CreateTenantInput,
) -> Pin<Box<dyn Future<Output = Result<CreateTenantOutput, ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_tenant<'life0, 'async_trait>(
&'life0 self,
input: CreateTenantInput,
) -> Pin<Box<dyn Future<Output = Result<CreateTenantOutput, ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a new tenant
Source§fn get_tenant<'life0, 'async_trait>(
&'life0 self,
input: GetTenantInput,
) -> Pin<Box<dyn Future<Output = Result<GetTenantOutput, ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_tenant<'life0, 'async_trait>(
&'life0 self,
input: GetTenantInput,
) -> Pin<Box<dyn Future<Output = Result<GetTenantOutput, ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get a specific tenant
Source§fn delete_tenant<'life0, 'async_trait>(
&'life0 self,
input: DeleteTenantInput,
) -> Pin<Box<dyn Future<Output = Result<DeleteTenantOutput, ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_tenant<'life0, 'async_trait>(
&'life0 self,
input: DeleteTenantInput,
) -> Pin<Box<dyn Future<Output = Result<DeleteTenantOutput, ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete a specific tenant
Source§fn get_tenants<'life0, 'async_trait>(
&'life0 self,
input: GetTenantsInput,
) -> Pin<Box<dyn Future<Output = Result<GetTenantsOutput, ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_tenants<'life0, 'async_trait>(
&'life0 self,
input: GetTenantsInput,
) -> Pin<Box<dyn Future<Output = Result<GetTenantsOutput, ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get a collection of tenants
Source§fn set_tenant_allowed_cors_origins<'life0, 'async_trait>(
&'life0 self,
input: SetTenantAllowedCorsOriginsInput,
) -> Pin<Box<dyn Future<Output = Result<(), ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_tenant_allowed_cors_origins<'life0, 'async_trait>(
&'life0 self,
input: SetTenantAllowedCorsOriginsInput,
) -> Pin<Box<dyn Future<Output = Result<(), ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Set the allowed CORS origins for a tenants storage bucket
Source§fn migrate_root<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn migrate_root<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Apply root database migrations
Source§fn migrate_tenant<'life0, 'async_trait>(
&'life0 self,
input: MigrateTenantInput,
) -> Pin<Box<dyn Future<Output = Result<MigrateTenantOutput, ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn migrate_tenant<'life0, 'async_trait>(
&'life0 self,
input: MigrateTenantInput,
) -> Pin<Box<dyn Future<Output = Result<MigrateTenantOutput, ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Apply migrations for tenant(s)
Source§fn migrate_tenant_iam<'life0, 'async_trait>(
&'life0 self,
input: MigrateTenantIAMInput,
) -> Pin<Box<dyn Future<Output = Result<MigrateTenantIAMOutput, ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn migrate_tenant_iam<'life0, 'async_trait>(
&'life0 self,
input: MigrateTenantIAMInput,
) -> Pin<Box<dyn Future<Output = Result<MigrateTenantIAMOutput, ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Migrate a tenant from secrets based authentication to IAM based
database authentication
Source§fn get_pending_root_migrations<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_pending_root_migrations<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get migrations that are waiting to be applied to the root
Source§fn get_tenant_pending_migrations<'life0, 'async_trait>(
&'life0 self,
input: GetTenantPendingMigrationsInput,
) -> Pin<Box<dyn Future<Output = Result<GetTenantPendingMigrationsOutput, ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_tenant_pending_migrations<'life0, 'async_trait>(
&'life0 self,
input: GetTenantPendingMigrationsInput,
) -> Pin<Box<dyn Future<Output = Result<GetTenantPendingMigrationsOutput, ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get pending database migrations for a specific tenant
Source§fn flush_tenant_cache<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn flush_tenant_cache<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ManagementError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Flush the tenant database cache for persisted servers
Auto Trait Implementations§
impl !RefUnwindSafe for ManagedServerInterface
impl !UnwindSafe for ManagedServerInterface
impl Freeze for ManagedServerInterface
impl Send for ManagedServerInterface
impl Sync for ManagedServerInterface
impl Unpin for ManagedServerInterface
impl UnsafeUnpin for ManagedServerInterface
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.