pub enum ResourceProvider {
Service(ResourceService),
}Variants§
Service(ResourceService)
Implementations§
Source§impl ResourceProvider
impl ResourceProvider
pub fn new<P: PluginManagerApi>( config: &Config, plugin_manager: &P, ) -> Result<Self, ResourceProviderError>
Trait Implementations§
Source§impl ResourceApi for ResourceProvider
impl ResourceApi for ResourceProvider
Source§fn get_domain_enabled<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
domain_id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<bool, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_domain_enabled<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
domain_id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<bool, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check whether the domain is enabled.
Source§fn create_domain<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
domain: DomainCreate,
) -> Pin<Box<dyn Future<Output = Result<Domain, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_domain<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
domain: DomainCreate,
) -> Pin<Box<dyn Future<Output = Result<Domain, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create new domain.
Source§fn create_project<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
project: ProjectCreate,
) -> Pin<Box<dyn Future<Output = Result<Project, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_project<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
project: ProjectCreate,
) -> Pin<Box<dyn Future<Output = Result<Project, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create new project.
Source§fn delete_domain<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_domain<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete a domain by the ID.
Source§fn delete_project<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_project<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete a project by the ID.
Source§fn get_domain<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
domain_id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<Domain>, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_domain<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
domain_id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<Domain>, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get single domain.
Source§fn get_project<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
project_id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<Project>, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_project<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
project_id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<Project>, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get single project.
Source§fn get_project_by_name<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
name: &'a str,
domain_id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<Project>, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_project_by_name<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
name: &'a str,
domain_id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<Project>, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get single project by Name and Domain ID.
Source§fn get_project_parents<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
project_id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Project>>, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_project_parents<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
project_id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Project>>, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get project parents.
Source§fn find_domain_by_name<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
domain_name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<Domain>, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_domain_by_name<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
domain_name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<Domain>, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get single domain by its name.
Source§fn list_domains<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
params: &'life2 DomainListParameters,
) -> Pin<Box<dyn Future<Output = Result<Vec<Domain>, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn list_domains<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
params: &'life2 DomainListParameters,
) -> Pin<Box<dyn Future<Output = Result<Vec<Domain>, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
List domains.
Source§fn list_projects<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
params: &'life2 ProjectListParameters,
) -> Pin<Box<dyn Future<Output = Result<Vec<Project>, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn list_projects<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
params: &'life2 ProjectListParameters,
) -> Pin<Box<dyn Future<Output = Result<Vec<Project>, ResourceProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
List projects.
Auto Trait Implementations§
impl Freeze for ResourceProvider
impl !RefUnwindSafe for ResourceProvider
impl Send for ResourceProvider
impl Sync for ResourceProvider
impl Unpin for ResourceProvider
impl UnsafeUnpin for ResourceProvider
impl !UnwindSafe for ResourceProvider
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
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 more