Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Module contains all the types necessary for tarball processing.
Synopsis
- data Header = Header {
- headerOffset :: !FileOffset
- headerPayloadOffset :: !FileOffset
- headerFileNameSuffix :: !ShortByteString
- headerFileMode :: !CMode
- headerOwnerId :: !UserID
- headerGroupId :: !GroupID
- headerPayloadSize :: !FileOffset
- headerTime :: !EpochTime
- headerLinkIndicator :: !Word8
- headerLinkName :: !ShortByteString
- headerMagicVersion :: !ShortByteString
- headerOwnerName :: !ShortByteString
- headerGroupName :: !ShortByteString
- headerDeviceMajor :: !DeviceID
- headerDeviceMinor :: !DeviceID
- headerFileNamePrefix :: !ShortByteString
- type PaxHeader = Map ByteString ByteString
- data PaxState = PaxState PaxHeader PaxHeader
- initialPaxState :: PaxState
- data TarChunk
- data TarException
- data TarCreateException
- data FileType
- data FileInfo = FileInfo {
- filePath :: !ByteString
- fileUserId :: !UserID
- fileUserName :: !ByteString
- fileGroupId :: !GroupID
- fileGroupName :: !ByteString
- fileMode :: !FileMode
- fileSize :: !FileOffset
- fileType :: !FileType
- fileModTime :: !EpochTime
- type FileOffset = COff
- type ByteCount = CSize
- type UserID = CUid
- type GroupID = CGid
- type DeviceID = CDev
- type EpochTime = CTime
- newtype CUid = CUid Word32
- newtype CGid = CGid Word32
- encodeFilePath :: FilePath -> ByteString
- decodeFilePath :: ByteString -> FilePath
- getFileInfoPath :: FileInfo -> FilePath
Documentation
type PaxHeader = Map ByteString ByteString Source #
Type synonym representing a pax extended header.
Type representing states (global, next file) given pax extended headers.
initialPaxState :: PaxState Source #
The initial state before applying any pax extended headers.
data TarException Source #
This the the exception type that is used in this module.
More constructors are susceptible to be added without bumping the major version of this module.
Instances
Exception TarException Source # | |
Defined in Data.Conduit.Tar.Types | |
Show TarException Source # | |
Defined in Data.Conduit.Tar.Types showsPrec :: Int -> TarException -> ShowS # show :: TarException -> String # showList :: [TarException] -> ShowS # |
data TarCreateException Source #
Instances
Exception TarCreateException Source # | |
Defined in Data.Conduit.Tar.Types | |
Show TarCreateException Source # | |
Defined in Data.Conduit.Tar.Types showsPrec :: Int -> TarCreateException -> ShowS # show :: TarCreateException -> String # showList :: [TarCreateException] -> ShowS # |
FileInfo | |
|
type FileOffset = COff #
Instances
Storable CUid | |
Defined in System.Posix.Types | |
Bits CUid | |
Defined in System.Posix.Types (.&.) :: CUid -> CUid -> CUid # (.|.) :: CUid -> CUid -> CUid # complement :: CUid -> CUid # shift :: CUid -> Int -> CUid # rotate :: CUid -> Int -> CUid # setBit :: CUid -> Int -> CUid # clearBit :: CUid -> Int -> CUid # complementBit :: CUid -> Int -> CUid # testBit :: CUid -> Int -> Bool # bitSizeMaybe :: CUid -> Maybe Int # shiftL :: CUid -> Int -> CUid # unsafeShiftL :: CUid -> Int -> CUid # shiftR :: CUid -> Int -> CUid # unsafeShiftR :: CUid -> Int -> CUid # rotateL :: CUid -> Int -> CUid # | |
FiniteBits CUid | |
Defined in System.Posix.Types | |
Bounded CUid | |
Enum CUid | |
Ix CUid | |
Num CUid | |
Read CUid | |
Integral CUid | |
Real CUid | |
Defined in System.Posix.Types toRational :: CUid -> Rational # | |
Show CUid | |
Eq CUid | |
Ord CUid | |
Instances
Storable CGid | |
Defined in System.Posix.Types | |
Bits CGid | |
Defined in System.Posix.Types (.&.) :: CGid -> CGid -> CGid # (.|.) :: CGid -> CGid -> CGid # complement :: CGid -> CGid # shift :: CGid -> Int -> CGid # rotate :: CGid -> Int -> CGid # setBit :: CGid -> Int -> CGid # clearBit :: CGid -> Int -> CGid # complementBit :: CGid -> Int -> CGid # testBit :: CGid -> Int -> Bool # bitSizeMaybe :: CGid -> Maybe Int # shiftL :: CGid -> Int -> CGid # unsafeShiftL :: CGid -> Int -> CGid # shiftR :: CGid -> Int -> CGid # unsafeShiftR :: CGid -> Int -> CGid # rotateL :: CGid -> Int -> CGid # | |
FiniteBits CGid | |
Defined in System.Posix.Types | |
Bounded CGid | |
Enum CGid | |
Ix CGid | |
Num CGid | |
Read CGid | |
Integral CGid | |
Real CGid | |
Defined in System.Posix.Types toRational :: CGid -> Rational # | |
Show CGid | |
Eq CGid | |
Ord CGid | |
encodeFilePath :: FilePath -> ByteString Source #
Convert FilePath
into a UTF-8 encoded ByteString
decodeFilePath :: ByteString -> FilePath Source #
Convert UTF-8 encoded ByteString
back into the FilePath
.