| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Snapshot
Description
A projection scoped to the upstream bytes it came from. Adapters retain the fetch digest while transforming either the typed or raw view.
Synopsis
- data Snapshot a = Snapshot {}
- data ContentDigest
- digestBytes :: ContentDigest -> ByteString
- digestFromContext :: Context SHA256 -> ContentDigest
Documentation
A view paired with the digest computed before projection. Producers must use the same fetch. Mapping preserves the snapshot scope.
Constructors
| Snapshot | |
Fields
| |
Instances
| Functor Snapshot Source # | |
| Foldable Snapshot Source # | |
Defined in Ecluse.Core.Snapshot Methods fold :: Monoid m => Snapshot m -> m # foldMap :: Monoid m => (a -> m) -> Snapshot a -> m # foldMap' :: Monoid m => (a -> m) -> Snapshot a -> m # foldr :: (a -> b -> b) -> b -> Snapshot a -> b # foldr' :: (a -> b -> b) -> b -> Snapshot a -> b # foldl :: (b -> a -> b) -> b -> Snapshot a -> b # foldl' :: (b -> a -> b) -> b -> Snapshot a -> b # foldr1 :: (a -> a -> a) -> Snapshot a -> a # foldl1 :: (a -> a -> a) -> Snapshot a -> a # elem :: Eq a => a -> Snapshot a -> Bool # maximum :: Ord a => Snapshot a -> a # minimum :: Ord a => Snapshot a -> a # | |
| Traversable Snapshot Source # | |
| Show a => Show (Snapshot a) Source # | |
| Eq a => Eq (Snapshot a) Source # | |
data ContentDigest Source #
Fingerprint the exact upstream bytes used to build a manifest.
Instances
| Show ContentDigest Source # | |
Defined in Ecluse.Core.Snapshot Methods showsPrec :: Int -> ContentDigest -> ShowS # show :: ContentDigest -> String # showList :: [ContentDigest] -> ShowS # | |
| Eq ContentDigest Source # | |
Defined in Ecluse.Core.Snapshot Methods (==) :: ContentDigest -> ContentDigest -> Bool # (/=) :: ContentDigest -> ContentDigest -> Bool # | |
| Ord ContentDigest Source # | |
Defined in Ecluse.Core.Snapshot Methods compare :: ContentDigest -> ContentDigest -> Ordering # (<) :: ContentDigest -> ContentDigest -> Bool # (<=) :: ContentDigest -> ContentDigest -> Bool # (>) :: ContentDigest -> ContentDigest -> Bool # (>=) :: ContentDigest -> ContentDigest -> Bool # max :: ContentDigest -> ContentDigest -> ContentDigest # min :: ContentDigest -> ContentDigest -> ContentDigest # | |
digestBytes :: ContentDigest -> ByteString Source #
The digest's raw 32 bytes, for feeding into a wider fingerprint.
digestFromContext :: Context SHA256 -> ContentDigest Source #
Finish the SHA-256 state accumulated from the exact consumed source chunks.