hnix-store-remote-0.4.1.0: Remote hnix store
Safe HaskellNone
LanguageHaskell2010

System.Nix.Store.Remote

Synopsis

Documentation

addToStore Source #

Arguments

:: forall a. (ValidAlgo a, NamedAlgo a) 
=> StorePathName

Name part of the newly created StorePath

-> FilePath

Local FilePath to add

-> Bool

Add target directory recursively

-> (FilePath -> Bool)

Path filter function

-> RepairFlag

Only used by local store backend

-> MonadStore StorePath 

Pack FilePath as Nar and add it to the store.

addTextToStore Source #

Arguments

:: Text

Name of the text

-> Text

Actual text to add

-> StorePathSet

Set of StorePaths that the added text references

-> RepairFlag

Repair flag, must be False in case of remote backend

-> MonadStore StorePath 

Add text to store.

Reference accepts repair but only uses it to throw error in case of remote talking to nix-daemon.

addSignatures :: StorePath -> [ByteString] -> MonadStore () Source #

addIndirectRoot :: StorePath -> MonadStore () Source #

addTempRoot :: StorePath -> MonadStore () Source #

Add temporary garbage collector root.

This root is removed as soon as the client exits.

buildPaths :: StorePathSet -> BuildMode -> MonadStore () Source #

Build paths if they are an actual derivations.

If derivation output paths are already valid, do nothing.

buildDerivation :: StorePath -> Derivation StorePath Text -> BuildMode -> MonadStore BuildResult Source #

ensurePath :: StorePath -> MonadStore () Source #

findRoots :: MonadStore (Map ByteString StorePath) Source #

Find garbage collector roots.

queryValidPaths Source #

Arguments

:: StorePathSet

Set of StorePaths to query

-> SubstituteFlag

Try substituting missing paths when True

-> MonadStore StorePathSet 

Query valid paths from set, optionally try to use substitutes.

querySubstitutablePaths :: StorePathSet -> MonadStore StorePathSet Source #

queryPathInfoUncached :: StorePath -> MonadStore StorePathMetadata Source #

queryReferrers :: StorePath -> MonadStore StorePathSet Source #

queryValidDerivers :: StorePath -> MonadStore StorePathSet Source #

queryDerivationOutputs :: StorePath -> MonadStore StorePathSet Source #

queryDerivationOutputNames :: StorePath -> MonadStore StorePathSet Source #

queryPathFromHashPart :: Digest StorePathHashAlgo -> MonadStore StorePath Source #

queryMissing :: StorePathSet -> MonadStore (StorePathSet, StorePathSet, StorePathSet, Integer, Integer) Source #

verifyStore :: CheckFlag -> RepairFlag -> MonadStore Bool Source #