Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::RemoteFSAccessor Class Reference
Inheritance diagram for nix::RemoteFSAccessor:
nix::FSAccessor

Public Member Functions

 RemoteFSAccessor (ref< Store > store, const Path &cacheDir="")
kj::Promise< Result< Stat > > stat (const Path &path) override
kj::Promise< Result< StringSet > > readDirectory (const Path &path) override
kj::Promise< Result< std::string > > readFile (const Path &path, bool requireValidPath=true) override
kj::Promise< Result< std::string > > readLink (const Path &path) override

Friends

class BinaryCacheStore

Additional Inherited Members

Public Types inherited from nix::FSAccessor
enum  Type { tMissing , tRegular , tSymlink , tDirectory }

Member Function Documentation

◆ readDirectory()

kj::Promise< Result< StringSet > > nix::RemoteFSAccessor::readDirectory ( const Path & path)
overridevirtual

Implements nix::FSAccessor.

◆ readFile()

kj::Promise< Result< std::string > > nix::RemoteFSAccessor::readFile ( const Path & path,
bool requireValidPath = true )
overridevirtual

Read a file inside the store.

If requireValidPath is set to true (the default), the path must be inside a valid store path, otherwise it just needs to be physically present (but not necessarily properly registered)

Implements nix::FSAccessor.

◆ readLink()

kj::Promise< Result< std::string > > nix::RemoteFSAccessor::readLink ( const Path & path)
overridevirtual

Implements nix::FSAccessor.

◆ stat()

kj::Promise< Result< FSAccessor::Stat > > nix::RemoteFSAccessor::stat ( const Path & path)
overridevirtual

Implements nix::FSAccessor.


The documentation for this class was generated from the following files: