Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
data ContentAddress Source #
An address for a content-addressable store path, i.e. one whose store path hash is purely a function of its contents (as opposed to paths that are derivation outputs, whose hashes are a function of the contents of the derivation file instead).
For backwards-compatibility reasons, the same information is encodable in multiple ways, depending on the method used to add the path to the store. These unfortunately result in separate store paths.
Instances
data ContentAddressMethod Source #
Instances
data FileIngestionMethod Source #
Add path recursively or not
Instances
contentAddressParser :: Parser ContentAddress Source #
Parser for content addressable field
buildContentAddress :: ContentAddress -> Text Source #
Marshall ContentAddressableAddress
to Text
in form suitable for remote protocol usage.
parseContentAddress :: Text -> Either String ContentAddress Source #
Parse ContentAddressableAddress
from ByteString