| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Runtime.Mirror.State.S3.Internal
Description
Conditional S3 metadata exchanges bound response bytes before SDK decoding.
Synopsis
- data ObjectRead
- data ObjectWrite
- data ObjectFault
- = ObjectTransport TransportFault
- | ObjectTooLarge Int
- | ObjectNoRevision
- | ObjectUnknownAbsence
- readObject :: StateCharge -> Deadlines -> Env -> Limits -> Text -> Text -> Maybe ByteString -> IO (Either ObjectFault ObjectRead)
- writeObject :: StateCharge -> Deadlines -> Env -> Limits -> Text -> Text -> Maybe ByteString -> ByteString -> IO (Either ObjectFault ObjectWrite)
Documentation
data ObjectRead Source #
A 304 carries only the exact revision supplied to this exchange.
Instances
| Show ObjectRead Source # | |
Defined in Ecluse.Runtime.Mirror.State.S3.Internal Methods showsPrec :: Int -> ObjectRead -> ShowS # show :: ObjectRead -> String # showList :: [ObjectRead] -> ShowS # | |
| Eq ObjectRead Source # | |
Defined in Ecluse.Runtime.Mirror.State.S3.Internal | |
data ObjectWrite Source #
Conditional writes never overwrite a revision they did not observe.
Constructors
| ObjectStored ByteString | |
| ObjectConflict |
Instances
| Show ObjectWrite Source # | |
Defined in Ecluse.Runtime.Mirror.State.S3.Internal Methods showsPrec :: Int -> ObjectWrite -> ShowS # show :: ObjectWrite -> String # showList :: [ObjectWrite] -> ShowS # | |
| Eq ObjectWrite Source # | |
Defined in Ecluse.Runtime.Mirror.State.S3.Internal | |
data ObjectFault Source #
Missing revision evidence and ambiguous absence remain unavailable.
Constructors
| ObjectTransport TransportFault | |
| ObjectTooLarge Int | |
| ObjectNoRevision | |
| ObjectUnknownAbsence |
Instances
| Show ObjectFault Source # | |
Defined in Ecluse.Runtime.Mirror.State.S3.Internal Methods showsPrec :: Int -> ObjectFault -> ShowS # show :: ObjectFault -> String # showList :: [ObjectFault] -> ShowS # | |
| Eq ObjectFault Source # | |
Defined in Ecluse.Runtime.Mirror.State.S3.Internal | |
readObject :: StateCharge -> Deadlines -> Env -> Limits -> Text -> Text -> Maybe ByteString -> IO (Either ObjectFault ObjectRead) Source #
GET returns bytes and their revision in the same resource lifetime.
writeObject :: StateCharge -> Deadlines -> Env -> Limits -> Text -> Text -> Maybe ByteString -> ByteString -> IO (Either ObjectFault ObjectWrite) Source #
A failed or uncertain write returns to the caller for reread and union before another attempt.