![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
Public Member Functions | |
| virtual void | mount (CanonPath mountPoint, ref< SourceAccessor > accessor)=0 |
| virtual std::shared_ptr< SourceAccessor > | getMount (CanonPath mountPoint)=0 |
| Public Member Functions inherited from nix::SourceAccessor | |
| std::string | readFile (const CanonPath &path) |
| virtual void | readFile (const CanonPath &path, Sink &sink, fun< void(uint64_t)> sizeCallback=[](uint64_t size) {})=0 |
| virtual bool | pathExists (const CanonPath &path) |
Check whether a file exists at path. | |
| virtual Stat | lstat (const CanonPath &path) |
| virtual std::optional< Stat > | maybeLstat (const CanonPath &path)=0 |
| virtual DirEntries | readDirectory (const CanonPath &path)=0 |
| virtual void | readDirectory (const CanonPath &dirPath, std::function< void(SourceAccessor &subdirAccessor, const CanonPath &subdirRelPath)> callback) |
| virtual std::string | readLink (const CanonPath &path)=0 |
| virtual void | dumpPath (const CanonPath &path, Sink &sink, PathFilter &filter=defaultPathFilter) |
| Hash | hashPath (const CanonPath &path, PathFilter &filter=defaultPathFilter, HashAlgorithm ha=HashAlgorithm::SHA256) |
| virtual std::optional< std::filesystem::path > | getPhysicalPath (const CanonPath &path) |
| bool | operator== (const SourceAccessor &x) const |
| auto | operator<=> (const SourceAccessor &x) const |
| void | setPathDisplay (std::string displayPrefix, std::string displaySuffix="") |
| virtual std::string | showPath (const CanonPath &path) |
| Render a human-readable representation of the accessor + path beneath it. | |
| CanonPath | resolveSymlinks (const CanonPath &path, SymlinkResolution mode=SymlinkResolution::Full) |
| virtual std::pair< CanonPath, std::optional< std::string > > | getFingerprint (const CanonPath &path) |
| virtual std::optional< time_t > | getLastModified () |
| virtual void | invalidateCache () |
Additional Inherited Members | |
| Public Types inherited from nix::SourceAccessor | |
| enum | Type { tRegular , tSymlink , tDirectory , tChar , tBlock , tSocket , tFifo , tUnknown } |
| typedef std::optional< Type > | DirEntry |
| typedef std::map< std::string, DirEntry > | DirEntries |
| Public Attributes inherited from nix::SourceAccessor | |
| const size_t | number |
| std::string | displayPrefix |
| std::string | displaySuffix |
| std::optional< std::string > | fingerprint |
|
pure virtual |
Return the accessor mounted on mountPoint, or nullptr if there is no such mount point.