gatekeep-keepsake 0.1.0

Keepsake relation fact resolver for gatekeep
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use gatekeep::GatekeepError;
use keepsake::KeepsakeError;
use thiserror::Error;

/// Backend error emitted by [`crate::KeepsakeResolver`].
#[derive(Debug, Error)]
pub enum KeepsakeResolveError<E> {
    /// Gatekeep and keepsake subject validation drifted apart.
    #[error(transparent)]
    Subject(#[from] KeepsakeError),
    /// The active-relation source failed.
    #[error("keepsake relation source failed")]
    Source(#[source] E),
    /// Gatekeep refused a constructed known-fact bundle.
    #[error(transparent)]
    Gatekeep(#[from] GatekeepError),
}