ecluse:ecluse-runtime
Safe HaskellNone
LanguageGHC2021

Ecluse.Runtime.Mirror.State.S3.Internal

Description

Conditional S3 metadata exchanges bound response bytes before SDK decoding.

Synopsis

Documentation

data ObjectRead Source #

A 304 carries only the exact revision supplied to this exchange.

Instances

Instances details
Show ObjectRead Source # 
Instance details

Defined in Ecluse.Runtime.Mirror.State.S3.Internal

Eq ObjectRead Source # 
Instance details

Defined in Ecluse.Runtime.Mirror.State.S3.Internal

data ObjectWrite Source #

Conditional writes never overwrite a revision they did not observe.

data ObjectFault Source #

Missing revision evidence and ambiguous absence remain unavailable.

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.