Struct bonsaidb::keystorage::s3::S3VaultKeyStorage [−][src]
pub struct S3VaultKeyStorage {
pub endpoint: Option<Endpoint>,
pub region: Option<Region>,
pub path: String,
// some fields omitted
}
Expand description
S3-compatible VaultKeyStorage
implementor.
Fields
endpoint: Option<Endpoint>
The S3 endpoint to use. If not specified, the endpoint will be determined automatically. This field can be used to support non-AWS S3 providers.
region: Option<Region>
The AWS region to use. If not specified, the region will be determined by the aws sdk.
path: String
The path prefix for keys to be stored within.
Implementations
Creates a new key storage instance for bucket
. This instance will use
the currently available Tokio runtime or create one if none is
available.
Creates a new key storage instance for bucket
, which performs its
networking operations on runtime
.
Sets the path prefix for vault keys to be stored within.
Sets the endpoint to use. See Self::endpoint
for more information.
Trait Implementations
Returns the “default value” for a type. Read more
pub fn set_vault_key_for(
&self,
storage_id: StorageId,
key: KeyPair
) -> Result<(), <S3VaultKeyStorage as VaultKeyStorage>::Error>
pub fn set_vault_key_for(
&self,
storage_id: StorageId,
key: KeyPair
) -> Result<(), <S3VaultKeyStorage as VaultKeyStorage>::Error>
Store a key. Each server id should have unique storage.
pub fn vault_key_for(
&self,
storage_id: StorageId
) -> Result<Option<KeyPair>, <S3VaultKeyStorage as VaultKeyStorage>::Error>
pub fn vault_key_for(
&self,
storage_id: StorageId
) -> Result<Option<KeyPair>, <S3VaultKeyStorage as VaultKeyStorage>::Error>
Retrieve all previously stored vault key for a given storage id.
Auto Trait Implementations
impl !RefUnwindSafe for S3VaultKeyStorage
impl Send for S3VaultKeyStorage
impl Sync for S3VaultKeyStorage
impl Unpin for S3VaultKeyStorage
impl !UnwindSafe for S3VaultKeyStorage
Blanket Implementations
Retrieve all previously stored master keys for a given storage id.
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more