Portability | unix |
---|---|
Stability | experimental |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
- looseUnmarshall :: ByteString -> Object
- looseUnmarshallRaw :: ByteString -> (ObjectHeader, ObjectData)
- looseMarshall :: Object -> ByteString
- looseRead :: FilePath -> Ref -> IO Object
- looseReadHeader :: FilePath -> Ref -> IO (ObjectType, Word64, Maybe a)
- looseReadRaw :: FilePath -> Ref -> IO (ObjectHeader, ObjectData)
- looseExists :: FilePath -> Ref -> IO Bool
- looseWriteBlobFromFile :: FilePath -> FilePath -> IO ()
- looseWrite :: FilePath -> Object -> IO ()
- looseEnumeratePrefixes :: FilePath -> IO [[Char]]
- looseEnumerateWithPrefixFilter :: FilePath -> String -> (Ref -> Bool) -> IO [Ref]
- looseEnumerateWithPrefix :: FilePath -> String -> IO [Ref]
marshall from and to lazy bytestring
looseUnmarshall :: ByteString -> ObjectSource
unmarshall an object (with header) from a lazy bytestring.
looseUnmarshallRaw :: ByteString -> (ObjectHeader, ObjectData)Source
unmarshall an object as (header, data) tuple from a lazy bytestring.
read and check object existence
looseReadHeader :: FilePath -> Ref -> IO (ObjectType, Word64, Maybe a)Source
looseReadRaw :: FilePath -> Ref -> IO (ObjectHeader, ObjectData)Source
write objects
looseWriteBlobFromFile :: FilePath -> FilePath -> IO ()Source
looseWrite :: FilePath -> Object -> IO ()Source
enumeration of loose objects
looseEnumeratePrefixes :: FilePath -> IO [[Char]]Source
looseEnumerateWithPrefixFilter :: FilePath -> String -> (Ref -> Bool) -> IO [Ref]Source
read a specific ref from a loose object and returns an header and data.
read only the header of a loose object.
read a specific ref from a loose object and returns an object
check if a specific ref exists as loose object
enumarate all prefixes available in the object store.
enumerate all references available with a specific prefix.