Skip to main content

DatabaseOperations

Trait DatabaseOperations 

Source
pub trait DatabaseOperations: Send + Sync {
Show 16 methods // Required methods fn configure( &self, name: &str, params: &DatabaseConfigRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn read_config( &self, name: &str, ) -> impl Future<Output = Result<DatabaseConfig, VaultError>> + Send; fn delete_config( &self, name: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn list_connections( &self, ) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send; fn reset_connection( &self, name: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn create_role( &self, name: &str, params: &DatabaseRoleRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn read_role( &self, name: &str, ) -> impl Future<Output = Result<DatabaseRole, VaultError>> + Send; fn delete_role( &self, name: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn list_roles( &self, ) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send; fn get_credentials( &self, role: &str, ) -> impl Future<Output = Result<DatabaseCredentials, VaultError>> + Send; fn create_static_role( &self, name: &str, params: &DatabaseStaticRoleRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn read_static_role( &self, name: &str, ) -> impl Future<Output = Result<DatabaseStaticRole, VaultError>> + Send; fn delete_static_role( &self, name: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn list_static_roles( &self, ) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send; fn get_static_credentials( &self, name: &str, ) -> impl Future<Output = Result<DatabaseStaticCredentials, VaultError>> + Send; fn rotate_static_role( &self, name: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send;
}

Required Methods§

Source

fn configure( &self, name: &str, params: &DatabaseConfigRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send

Source

fn read_config( &self, name: &str, ) -> impl Future<Output = Result<DatabaseConfig, VaultError>> + Send

Source

fn delete_config( &self, name: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send

Source

fn list_connections( &self, ) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send

Source

fn reset_connection( &self, name: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send

Source

fn create_role( &self, name: &str, params: &DatabaseRoleRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send

Source

fn read_role( &self, name: &str, ) -> impl Future<Output = Result<DatabaseRole, VaultError>> + Send

Source

fn delete_role( &self, name: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send

Source

fn list_roles( &self, ) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send

Source

fn get_credentials( &self, role: &str, ) -> impl Future<Output = Result<DatabaseCredentials, VaultError>> + Send

Source

fn create_static_role( &self, name: &str, params: &DatabaseStaticRoleRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send

Source

fn read_static_role( &self, name: &str, ) -> impl Future<Output = Result<DatabaseStaticRole, VaultError>> + Send

Source

fn delete_static_role( &self, name: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send

Source

fn list_static_roles( &self, ) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send

Source

fn get_static_credentials( &self, name: &str, ) -> impl Future<Output = Result<DatabaseStaticCredentials, VaultError>> + Send

Source

fn rotate_static_role( &self, name: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§