| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.RubyGems.Archive
Description
Complete native gem traversal binds metadata, member checksums and the original artifact bytes.
Synopsis
- data GemArchive
- inspectGemArchive :: Limits -> (Int -> IO ()) -> ByteString -> IO (Either ParseError GemArchive)
- gemArchiveBytes :: GemArchive -> ByteString
- gemArchiveName :: GemArchive -> PackageName
- gemArchiveSpecification :: GemArchive -> GemSpecification
- gemArchiveMetadata :: GemArchive -> GemMetadata
- gemArchiveInventory :: GemArchive -> Set Text
- gemArchiveSha256 :: GemArchive -> Text
- checkGemArchive :: GemCoordinate -> Text -> GemArchive -> Either ParseError GemArchive
- checkRawEnvelope :: GemArchive -> Either ParseError GemArchive
Documentation
data GemArchive Source #
Private construction preserves the complete checked artifact and native metadata.
Instances
| Show GemArchive Source # | |
Defined in Ecluse.Core.Registry.RubyGems.Archive Methods showsPrec :: Int -> GemArchive -> ShowS # show :: GemArchive -> String # showList :: [GemArchive] -> ShowS # | |
| Eq GemArchive Source # | |
Defined in Ecluse.Core.Registry.RubyGems.Archive | |
inspectGemArchive :: Limits -> (Int -> IO ()) -> ByteString -> IO (Either ParseError GemArchive) Source #
Validate the full outer tar, every compressed member and the inner file inventory.
gemArchiveName :: GemArchive -> PackageName Source #
Return the exact package name inside the checked archive.
gemArchiveSpecification :: GemArchive -> GemSpecification Source #
Return checked native specification facts, without deriving installation policy evidence.
gemArchiveInventory :: GemArchive -> Set Text Source #
gemArchiveSha256 :: GemArchive -> Text Source #
checkGemArchive :: GemCoordinate -> Text -> GemArchive -> Either ParseError GemArchive Source #
Bind the checked native archive identity and SHA-256 to an admitted coordinate.
checkRawEnvelope :: GemArchive -> Either ParseError GemArchive Source #
Refuse an outer tar that names any member through an extended header, a ustar prefix, or bytes after a NUL. RubyGems' reader yields extended headers as members and keeps those bytes, so a Ruby store could register another gem.