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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The error type that the functions return.

Store a key. Each server id should have unique storage.

Retrieve all previously stored vault key for a given storage id.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Retrieve all previously stored master keys for a given storage id.

Store a key. Each server id should have unique storage. The keys are uniquely encrypted per storage id and can only be decrypted by keys contained in the storage itself. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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