hnix-store-remote-0.7.0.0: Remote hnix store
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Nix.Store.Remote.Client

Synopsis

Documentation

addToStore Source #

Arguments

:: MonadRemoteStore m 
=> StorePathName

Name part of the newly created StorePath

-> NarSource IO

Provide nar stream

-> FileIngestionMethod

Add target directory recursively

-> Some HashAlgo 
-> RepairMode

Only used by local store backend

-> m StorePath 

Add NarSource to the store

addTextToStore Source #

Arguments

:: MonadRemoteStore m 
=> StoreText 
-> HashSet StorePath

Set of StorePaths that the added text references

-> RepairMode

Repair mode, must be RepairMode_DontRepair for remote backend (only valid for local store)

-> m StorePath 

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

addSignatures :: MonadRemoteStore m => StorePath -> Set Signature -> m () Source #

Add Signatures to a store path

addTempRoot :: MonadRemoteStore m => StorePath -> m () Source #

Add temporary garbage collector root.

This root is removed as soon as the client exits.

addIndirectRoot :: MonadRemoteStore m => StorePath -> m () Source #

Add indirect garbage collector root.

buildPaths :: MonadRemoteStore m => Set DerivedPath -> BuildMode -> m () Source #

Build paths if they are an actual derivations.

If derivation output paths are already valid, do nothing.

buildDerivation :: MonadRemoteStore m => StorePath -> BuildMode -> m BuildResult Source #

Build a derivation available at StorePath

findRoots :: MonadRemoteStore m => m (Map GCRoot StorePath) Source #

Find garbage collector roots.

narFromPath Source #

Arguments

:: MonadRemoteStore m 
=> StorePath

Path to generate a NAR for

-> Word64

Byte length of NAR

-> (ByteString -> IO ())

Data sink where NAR bytes will be written

-> m () 

Download a NAR file.

queryValidPaths Source #

Arguments

:: MonadRemoteStore m 
=> HashSet StorePath

Set of StorePaths to query

-> SubstituteMode

Try substituting missing paths when SubstituteMode_DoSubstitute

-> m (HashSet StorePath) 

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

queryAllValidPaths :: MonadRemoteStore m => m (HashSet StorePath) Source #

Query all valid paths

querySubstitutablePaths :: MonadRemoteStore m => HashSet StorePath -> m (HashSet StorePath) Source #

Query a set of paths substituable from caches