| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Runtime.Cve.Sync.S3
Description
S3 advisory transport over a shared credential environment, with bounded downloads.
Synopsis
- data S3CveSource
- newS3CveSource :: Maybe AwsEndpoint -> IO S3CveSource
- s3CveFetchFor :: S3CveSource -> Text -> Text -> Int -> CveFetch
- s3CveFetch :: Env -> Text -> Text -> Int -> CveFetch
- newtype OsvDbCapExceeded = OsvDbCapExceeded Int
- cappedAt :: forall (m :: Type -> Type). MonadIO m => Int -> ConduitT ByteString ByteString m ()
Documentation
data S3CveSource Source #
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.
newtype OsvDbCapExceeded Source #
The confined exception cappedAt throws from inside a conduit, which s3Download folds into OsvDbTooLarge.
Constructors
| OsvDbCapExceeded Int |
Instances
| Exception OsvDbCapExceeded Source # | |
Defined in Ecluse.Runtime.Cve.Sync.S3 Methods toException :: OsvDbCapExceeded -> SomeException # fromException :: SomeException -> Maybe OsvDbCapExceeded # | |
| Show OsvDbCapExceeded Source # | |
Defined in Ecluse.Runtime.Cve.Sync.S3 Methods showsPrec :: Int -> OsvDbCapExceeded -> ShowS # show :: OsvDbCapExceeded -> String # showList :: [OsvDbCapExceeded] -> ShowS # | |
| Eq OsvDbCapExceeded Source # | |
Defined in Ecluse.Runtime.Cve.Sync.S3 Methods (==) :: OsvDbCapExceeded -> OsvDbCapExceeded -> Bool # (/=) :: OsvDbCapExceeded -> OsvDbCapExceeded -> Bool # | |
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.