Enum lair_keystore::store::EntryStore[][src]

pub enum EntryStore {
    TlsCertSelfSignedNewFromEntropy {
        span_context: Context,
        respond: GhostRespond<EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>>,
        options: TlsCertOptions,
    },
    SignEd25519KeypairNewFromEntropy {
        span_context: Context,
        respond: GhostRespond<EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>>,
    },
    AddInitialSignEd25519Keypair {
        span_context: Context,
        respond: GhostRespond<EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>>,
        keypair: EntrySignEd25519,
    },
    X25519KeypairNewFromEntropy {
        span_context: Context,
        respond: GhostRespond<EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>>,
    },
    GetLastEntryIndex {
        span_context: Context,
        respond: GhostRespond<EntryStoreHandlerResult<KeystoreIndex>>,
    },
    GetEntryByIndex {
        span_context: Context,
        respond: GhostRespond<EntryStoreHandlerResult<Arc<LairEntry>>>,
        index: KeystoreIndex,
    },
    GetEntryByPubId {
        span_context: Context,
        respond: GhostRespond<EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>>,
        id: Arc<Vec<u8>>,
    },
    GetEntryBySni {
        span_context: Context,
        respond: GhostRespond<EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>>,
        sni: CertSni,
    },
}
Expand description

persistence manager for entry storage

Variants

TlsCertSelfSignedNewFromEntropy

generate a new tls cert entry && save it && return it

Fields of TlsCertSelfSignedNewFromEntropy

span_context: Context

Tracing span from request invocation.

respond: GhostRespond<EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>>

Response callback - respond to the request.

options: TlsCertOptions

Input parameter.

SignEd25519KeypairNewFromEntropy

generate a new signature ed25519 keypair entry && save it && return it

Fields of SignEd25519KeypairNewFromEntropy

span_context: Context

Tracing span from request invocation.

respond: GhostRespond<EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>>

Response callback - respond to the request.

AddInitialSignEd25519Keypair

add a new signature ed25519 keypair entry that is passed && save it && return it

Fields of AddInitialSignEd25519Keypair

span_context: Context

Tracing span from request invocation.

respond: GhostRespond<EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>>

Response callback - respond to the request.

keypair: EntrySignEd25519

Input parameter.

X25519KeypairNewFromEntropy

generate a new x25519 keypair entry && save it && return it

Fields of X25519KeypairNewFromEntropy

span_context: Context

Tracing span from request invocation.

respond: GhostRespond<EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>>

Response callback - respond to the request.

GetLastEntryIndex

fetch the highest / most recently added keystore_index

Fields of GetLastEntryIndex

span_context: Context

Tracing span from request invocation.

respond: GhostRespond<EntryStoreHandlerResult<KeystoreIndex>>

Response callback - respond to the request.

GetEntryByIndex

fetch an entry from the store by keystore index

Fields of GetEntryByIndex

span_context: Context

Tracing span from request invocation.

respond: GhostRespond<EntryStoreHandlerResult<Arc<LairEntry>>>

Response callback - respond to the request.

index: KeystoreIndex

Input parameter.

GetEntryByPubId

fetch an entry by its 32 byte public identifier for kepair, this is the pub key for tls cert, this is the digest

Fields of GetEntryByPubId

span_context: Context

Tracing span from request invocation.

respond: GhostRespond<EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>>

Response callback - respond to the request.

id: Arc<Vec<u8>>

Input parameter.

GetEntryBySni

get a tls cert entry by sni

Fields of GetEntryBySni

span_context: Context

Tracing span from request invocation.

respond: GhostRespond<EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>>

Response callback - respond to the request.

sni: CertSni

Input parameter.

Trait Implementations

Formats the value using the given formatter. Read more

Process a dispatch event with a given GhostHandler.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

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

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

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