License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | experimental |
Portability | unix |
Safe Haskell | None |
Language | Haskell98 |
- newtype Zipped = Zipped {}
- looseUnmarshall :: ByteString -> Object
- looseUnmarshallRaw :: ByteString -> (ObjectHeader, ObjectData)
- looseUnmarshallZipped :: Zipped -> Object
- looseUnmarshallZippedRaw :: Zipped -> (ObjectHeader, ObjectData)
- looseMarshall :: Object -> ByteString
- looseRead :: LocalPath -> Ref -> IO Object
- looseReadHeader :: LocalPath -> Ref -> IO ObjectHeader
- looseReadRaw :: LocalPath -> Ref -> IO (ObjectHeader, ObjectData)
- looseExists :: LocalPath -> Ref -> IO Bool
- looseWriteBlobFromFile :: LocalPath -> LocalPath -> IO Ref
- looseWrite :: LocalPath -> Object -> IO Ref
- looseEnumeratePrefixes :: LocalPath -> IO [[Char]]
- looseEnumerateWithPrefixFilter :: LocalPath -> String -> (Ref -> Bool) -> IO [Ref]
- looseEnumerateWithPrefix :: LocalPath -> String -> IO [Ref]
Documentation
marshall from and to lazy bytestring
looseUnmarshall :: ByteString -> Object Source
unmarshall an object (with header) from a bytestring.
looseUnmarshallRaw :: ByteString -> (ObjectHeader, ObjectData) Source
unmarshall an object as (header, data) tuple from a bytestring
looseUnmarshallZipped :: Zipped -> Object Source
unmarshall an object (with header) from a zipped stream.
looseUnmarshallZippedRaw :: Zipped -> (ObjectHeader, ObjectData) Source
unmarshall an object as (header, data) tuple from a zipped stream
looseMarshall :: Object -> ByteString Source
marshall as lazy bytestring an object except deltas.
read and check object existence
looseRead :: LocalPath -> Ref -> IO Object Source
read a specific ref from a loose object and returns an object
looseReadHeader :: LocalPath -> Ref -> IO ObjectHeader Source
read only the header of a loose object.
looseReadRaw :: LocalPath -> Ref -> IO (ObjectHeader, ObjectData) Source
read a specific ref from a loose object and returns an header and data.
looseExists :: LocalPath -> Ref -> IO Bool Source
check if a specific ref exists as loose object
write objects
looseWriteBlobFromFile :: LocalPath -> LocalPath -> IO Ref Source
create a new blob on a temporary location and on success move it to the object store with its digest name.
looseWrite :: LocalPath -> Object -> IO Ref Source
write an object to disk as a loose reference. use looseWriteBlobFromFile for efficiently writing blobs when being commited from a file.
enumeration of loose objects
looseEnumeratePrefixes :: LocalPath -> IO [[Char]] Source
enumarate all prefixes available in the object store.
looseEnumerateWithPrefixFilter :: LocalPath -> String -> (Ref -> Bool) -> IO [Ref] Source
enumerate all references available with a specific prefix.
looseEnumerateWithPrefix :: LocalPath -> String -> IO [Ref] Source