Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::GitExportIgnoreSourceAccessor Struct Referencefinal
Inheritance diagram for nix::GitExportIgnoreSourceAccessor:
nix::CachingFilteringSourceAccessor nix::FilteringSourceAccessor nix::SourceAccessor

Public Member Functions

 GitExportIgnoreSourceAccessor (ref< GitRepoImpl > repo, ref< SourceAccessor > next, std::optional< Hash > rev)
bool gitAttrGet (const CanonPath &path, const char *attrName, const char *&valueOut)
bool isExportIgnored (const CanonPath &path)
bool isAllowedUncached (const CanonPath &path) override
Public Member Functions inherited from nix::CachingFilteringSourceAccessor
 CachingFilteringSourceAccessor (const SourcePath &src, MakeNotAllowedError &&makeNotAllowedError)
bool isAllowed (const CanonPath &path) override
Public Member Functions inherited from nix::FilteringSourceAccessor
 FilteringSourceAccessor (const SourcePath &src, MakeNotAllowedError &&makeNotAllowedError)
std::optional< std::filesystem::path > getPhysicalPath (const CanonPath &path) override
void readFile (const CanonPath &path, Sink &sink, fun< void(uint64_t)> sizeCallback) override
bool pathExists (const CanonPath &path) override
 Check whether a file exists at path.
Stat lstat (const CanonPath &path) override
std::optional< Stat > maybeLstat (const CanonPath &path) override
DirEntries readDirectory (const CanonPath &path) override
std::string readLink (const CanonPath &path) override
std::string showPath (const CanonPath &path) override
 Render a human-readable representation of the accessor + path beneath it.
std::pair< CanonPath, std::optional< std::string > > getFingerprint (const CanonPath &path) override
void invalidateCache () override
void checkAccess (const CanonPath &path)
std::string readFile (const CanonPath &path)
Public Member Functions inherited from nix::SourceAccessor
std::string readFile (const CanonPath &path)
virtual void readDirectory (const CanonPath &dirPath, std::function< void(SourceAccessor &subdirAccessor, const CanonPath &subdirRelPath)> callback)
virtual void dumpPath (const CanonPath &path, Sink &sink, PathFilter &filter=defaultPathFilter)
Hash hashPath (const CanonPath &path, PathFilter &filter=defaultPathFilter, HashAlgorithm ha=HashAlgorithm::SHA256)
bool operator== (const SourceAccessor &x) const
auto operator<=> (const SourceAccessor &x) const
void setPathDisplay (std::string displayPrefix, std::string displaySuffix="")
CanonPath resolveSymlinks (const CanonPath &path, SymlinkResolution mode=SymlinkResolution::Full)
virtual std::optional< time_t > getLastModified ()

Public Attributes

ref< GitRepoImpl > repo
std::optional< Hash > rev
Public Attributes inherited from nix::CachingFilteringSourceAccessor
const ref< boost::concurrent_flat_map< CanonPath, bool > > cache
Public Attributes inherited from nix::FilteringSourceAccessor
ref< SourceAccessor > next
CanonPath prefix
MakeNotAllowedError makeNotAllowedError
Public Attributes inherited from nix::SourceAccessor
const size_t number
std::string displayPrefix
std::string displaySuffix
std::optional< std::string > fingerprint

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

Member Function Documentation

◆ isAllowedUncached()

bool nix::GitExportIgnoreSourceAccessor::isAllowedUncached ( const CanonPath & path)
inlineoverridevirtual

The documentation for this struct was generated from the following file:
  • libfetchers/git-utils.cc