Skip to main content

SysOperations

Trait SysOperations 

Source
pub trait SysOperations: Send + Sync {
Show 65 methods // Required methods fn health( &self, ) -> impl Future<Output = Result<HealthResponse, VaultError>> + Send; fn leader( &self, ) -> impl Future<Output = Result<LeaderResponse, VaultError>> + Send; fn seal_status( &self, ) -> impl Future<Output = Result<SealStatus, VaultError>> + Send; fn seal(&self) -> impl Future<Output = Result<(), VaultError>> + Send; fn unseal( &self, key: &SecretString, ) -> impl Future<Output = Result<SealStatus, VaultError>> + Send; fn init( &self, params: &InitParams, ) -> impl Future<Output = Result<InitResponse, VaultError>> + Send; fn step_down(&self) -> impl Future<Output = Result<(), VaultError>> + Send; fn list_mounts( &self, ) -> impl Future<Output = Result<HashMap<String, MountInfo>, VaultError>> + Send; fn mount( &self, path: &str, params: &MountParams, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn unmount( &self, path: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn tune_mount( &self, path: &str, params: &MountTuneParams, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn read_mount_tune( &self, path: &str, ) -> impl Future<Output = Result<MountConfig, VaultError>> + Send; fn list_auth_mounts( &self, ) -> impl Future<Output = Result<HashMap<String, AuthMountInfo>, VaultError>> + Send; fn enable_auth( &self, path: &str, params: &AuthMountParams, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn disable_auth( &self, path: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn read_auth_tune( &self, path: &str, ) -> impl Future<Output = Result<MountConfig, VaultError>> + Send; fn list_policies( &self, ) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send; fn read_policy( &self, name: &str, ) -> impl Future<Output = Result<PolicyInfo, VaultError>> + Send; fn write_policy( &self, name: &str, rules: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn delete_policy( &self, name: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn read_lease( &self, lease_id: &str, ) -> impl Future<Output = Result<LeaseInfo, VaultError>> + Send; fn renew_lease( &self, lease_id: &str, increment: Option<&str>, ) -> impl Future<Output = Result<LeaseRenewal, VaultError>> + Send; fn revoke_lease( &self, lease_id: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn revoke_prefix( &self, prefix: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn list_audit_devices( &self, ) -> impl Future<Output = Result<HashMap<String, AuditDevice>, VaultError>> + Send; fn enable_audit( &self, path: &str, params: &AuditParams, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn disable_audit( &self, path: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn unwrap<T: DeserializeOwned + Send>( &self, token: &SecretString, ) -> impl Future<Output = Result<T, VaultError>> + Send; fn wrap_lookup( &self, token: &SecretString, ) -> impl Future<Output = Result<WrapInfo, VaultError>> + Send; fn capabilities( &self, token: &SecretString, paths: &[&str], ) -> impl Future<Output = Result<HashMap<String, Vec<String>>, VaultError>> + Send; fn capabilities_self( &self, paths: &[&str], ) -> impl Future<Output = Result<HashMap<String, Vec<String>>, VaultError>> + Send; fn key_status( &self, ) -> impl Future<Output = Result<KeyStatus, VaultError>> + Send; fn rotate_encryption_key( &self, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn list_plugins( &self, plugin_type: &str, ) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send; fn read_plugin( &self, plugin_type: &str, name: &str, ) -> impl Future<Output = Result<PluginInfo, VaultError>> + Send; fn register_plugin( &self, params: &RegisterPluginRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn deregister_plugin( &self, plugin_type: &str, name: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn reload_plugin( &self, plugin: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn raft_config( &self, ) -> impl Future<Output = Result<RaftConfig, VaultError>> + Send; fn raft_autopilot_state( &self, ) -> impl Future<Output = Result<AutopilotState, VaultError>> + Send; fn raft_remove_peer( &self, server_id: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn raft_snapshot( &self, ) -> impl Future<Output = Result<Vec<u8>, VaultError>> + Send; fn raft_snapshot_restore( &self, snapshot: &[u8], ) -> impl Future<Output = Result<(), VaultError>> + Send; fn in_flight_requests( &self, ) -> impl Future<Output = Result<HashMap<String, InFlightRequest>, VaultError>> + Send; fn list_namespaces( &self, ) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send; fn create_namespace( &self, path: &str, ) -> impl Future<Output = Result<NamespaceInfo, VaultError>> + Send; fn delete_namespace( &self, path: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn list_rate_limit_quotas( &self, ) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send; fn read_rate_limit_quota( &self, name: &str, ) -> impl Future<Output = Result<RateLimitQuota, VaultError>> + Send; fn write_rate_limit_quota( &self, name: &str, params: &RateLimitQuotaRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn delete_rate_limit_quota( &self, name: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn rekey_init( &self, params: &RekeyInitRequest, ) -> impl Future<Output = Result<RekeyStatus, VaultError>> + Send; fn rekey_status( &self, ) -> impl Future<Output = Result<RekeyStatus, VaultError>> + Send; fn rekey_cancel( &self, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn rekey_update( &self, key: &SecretString, nonce: &str, ) -> impl Future<Output = Result<RekeyStatus, VaultError>> + Send; fn generate_root_init( &self, params: &GenerateRootInitRequest, ) -> impl Future<Output = Result<GenerateRootStatus, VaultError>> + Send; fn generate_root_status( &self, ) -> impl Future<Output = Result<GenerateRootStatus, VaultError>> + Send; fn generate_root_cancel( &self, ) -> impl Future<Output = Result<(), VaultError>> + Send; fn generate_root_update( &self, key: &SecretString, nonce: &str, ) -> impl Future<Output = Result<GenerateRootStatus, VaultError>> + Send; fn remount( &self, from: &str, to: &str, ) -> impl Future<Output = Result<RemountStatus, VaultError>> + Send; fn metrics_json( &self, ) -> impl Future<Output = Result<Value, VaultError>> + Send; fn host_info( &self, ) -> impl Future<Output = Result<HostInfo, VaultError>> + Send; fn internal_counters_activity( &self, ) -> impl Future<Output = Result<Value, VaultError>> + Send; fn version_history( &self, ) -> impl Future<Output = Result<Vec<VersionHistoryEntry>, VaultError>> + Send; fn rewrap( &self, token: &SecretString, ) -> impl Future<Output = Result<WrapInfo, VaultError>> + Send;
}

Required Methods§

Source

fn health( &self, ) -> impl Future<Output = Result<HealthResponse, VaultError>> + Send

Source

fn leader( &self, ) -> impl Future<Output = Result<LeaderResponse, VaultError>> + Send

Source

fn seal_status( &self, ) -> impl Future<Output = Result<SealStatus, VaultError>> + Send

Source

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

Source

fn unseal( &self, key: &SecretString, ) -> impl Future<Output = Result<SealStatus, VaultError>> + Send

Source

fn init( &self, params: &InitParams, ) -> impl Future<Output = Result<InitResponse, VaultError>> + Send

Source

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

Source

fn list_mounts( &self, ) -> impl Future<Output = Result<HashMap<String, MountInfo>, VaultError>> + Send

Source

fn mount( &self, path: &str, params: &MountParams, ) -> impl Future<Output = Result<(), VaultError>> + Send

Source

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

Source

fn tune_mount( &self, path: &str, params: &MountTuneParams, ) -> impl Future<Output = Result<(), VaultError>> + Send

Source

fn read_mount_tune( &self, path: &str, ) -> impl Future<Output = Result<MountConfig, VaultError>> + Send

Source

fn list_auth_mounts( &self, ) -> impl Future<Output = Result<HashMap<String, AuthMountInfo>, VaultError>> + Send

Source

fn enable_auth( &self, path: &str, params: &AuthMountParams, ) -> impl Future<Output = Result<(), VaultError>> + Send

Source

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

Source

fn read_auth_tune( &self, path: &str, ) -> impl Future<Output = Result<MountConfig, VaultError>> + Send

Source

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

Source

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

Source

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

Source

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

Source

fn read_lease( &self, lease_id: &str, ) -> impl Future<Output = Result<LeaseInfo, VaultError>> + Send

Source

fn renew_lease( &self, lease_id: &str, increment: Option<&str>, ) -> impl Future<Output = Result<LeaseRenewal, VaultError>> + Send

Source

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

Source

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

Source

fn list_audit_devices( &self, ) -> impl Future<Output = Result<HashMap<String, AuditDevice>, VaultError>> + Send

Source

fn enable_audit( &self, path: &str, params: &AuditParams, ) -> impl Future<Output = Result<(), VaultError>> + Send

Source

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

Source

fn unwrap<T: DeserializeOwned + Send>( &self, token: &SecretString, ) -> impl Future<Output = Result<T, VaultError>> + Send

Source

fn wrap_lookup( &self, token: &SecretString, ) -> impl Future<Output = Result<WrapInfo, VaultError>> + Send

Source

fn capabilities( &self, token: &SecretString, paths: &[&str], ) -> impl Future<Output = Result<HashMap<String, Vec<String>>, VaultError>> + Send

Source

fn capabilities_self( &self, paths: &[&str], ) -> impl Future<Output = Result<HashMap<String, Vec<String>>, VaultError>> + Send

Source

fn key_status( &self, ) -> impl Future<Output = Result<KeyStatus, VaultError>> + Send

Source

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

Source

fn list_plugins( &self, plugin_type: &str, ) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send

Source

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

Source

fn register_plugin( &self, params: &RegisterPluginRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send

Source

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

Source

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

Source

fn raft_config( &self, ) -> impl Future<Output = Result<RaftConfig, VaultError>> + Send

Source

fn raft_autopilot_state( &self, ) -> impl Future<Output = Result<AutopilotState, VaultError>> + Send

Source

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

Source

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

Source

fn raft_snapshot_restore( &self, snapshot: &[u8], ) -> impl Future<Output = Result<(), VaultError>> + Send

Source

fn in_flight_requests( &self, ) -> impl Future<Output = Result<HashMap<String, InFlightRequest>, VaultError>> + Send

Source

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

Source

fn create_namespace( &self, path: &str, ) -> impl Future<Output = Result<NamespaceInfo, VaultError>> + Send

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn rekey_init( &self, params: &RekeyInitRequest, ) -> impl Future<Output = Result<RekeyStatus, VaultError>> + Send

Source

fn rekey_status( &self, ) -> impl Future<Output = Result<RekeyStatus, VaultError>> + Send

Source

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

Source

fn rekey_update( &self, key: &SecretString, nonce: &str, ) -> impl Future<Output = Result<RekeyStatus, VaultError>> + Send

Source

fn generate_root_init( &self, params: &GenerateRootInitRequest, ) -> impl Future<Output = Result<GenerateRootStatus, VaultError>> + Send

Source

fn generate_root_status( &self, ) -> impl Future<Output = Result<GenerateRootStatus, VaultError>> + Send

Source

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

Source

fn generate_root_update( &self, key: &SecretString, nonce: &str, ) -> impl Future<Output = Result<GenerateRootStatus, VaultError>> + Send

Source

fn remount( &self, from: &str, to: &str, ) -> impl Future<Output = Result<RemountStatus, VaultError>> + Send

Source

fn metrics_json(&self) -> impl Future<Output = Result<Value, VaultError>> + Send

Source

fn host_info(&self) -> impl Future<Output = Result<HostInfo, VaultError>> + Send

Source

fn internal_counters_activity( &self, ) -> impl Future<Output = Result<Value, VaultError>> + Send

Source

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

Source

fn rewrap( &self, token: &SecretString, ) -> impl Future<Output = Result<WrapInfo, 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§