ecluse:ecluse-runtime
Safe HaskellNone
LanguageGHC2021

Ecluse.Runtime.Cve.Sync.S3

Description

S3 advisory transport over a shared credential environment, with bounded downloads.

Synopsis

Documentation

data S3CveSource Source #

An S3-backed advisory-fetch source over one amazonka Env, so every mount's CveFetch shares one credential discovery.

newS3CveSource :: Maybe AwsEndpoint -> IO S3CveSource Source #

Build an S3CveSource over one S3 amazonka env, honouring the resolved endpoint override.

s3CveFetchFor :: S3CveSource -> Text -> Text -> Int -> CveFetch Source #

A CveFetch against one bucket, object key, and byte cap, over the captured env.

s3CveFetch :: Env -> Text -> Text -> Int -> CveFetch Source #

A CveFetch for one bucket, object key and byte cap over an amazonka env.

cappedAt :: forall (m :: Type -> Type). MonadIO m => Int -> ConduitT ByteString ByteString m () Source #

A breach throws OsvDbCapExceeded before yielding the excess chunk. The S3 adapter folds it into OsvDbTooLarge.