ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.RubyGems.Archive

Description

Complete native gem traversal binds metadata, member checksums and the original artifact bytes.

Synopsis

Documentation

data GemArchive Source #

Private construction preserves the complete checked artifact and native metadata.

Instances

Instances details
Show GemArchive Source # 
Instance details

Defined in Ecluse.Core.Registry.RubyGems.Archive

Eq GemArchive Source # 
Instance details

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.

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.