|
std::optional< Input > | inputFromURL (const Settings &settings, const ParsedURL &url, bool requireTree) const override |
|
std::string_view | schemeName () const override |
|
StringSet | allowedAttrs () const override |
|
std::optional< Input > | inputFromAttrs (const Settings &settings, const Attrs &attrs) const override |
|
ParsedURL | toURL (const Input &input) const override |
|
std::optional< std::filesystem::path > | getSourcePath (const Input &input) const override |
|
void | putFile (const Input &input, const CanonPath &path, std::string_view contents, std::optional< std::string > commitMsg) const override |
|
std::optional< std::string > | isRelative (const Input &input) const override |
|
bool | isLocked (const Input &input) const override |
|
std::filesystem::path | getAbsPath (const Input &input) const |
|
std::pair< ref< SourceAccessor >, Input > | getAccessor (ref< Store > store, const Input &_input) const override |
|
std::optional< std::string > | getFingerprint (ref< Store > store, const Input &input) const override |
|
std::optional< ExperimentalFeature > | experimentalFeature () const override |
|
virtual Input | applyOverrides (const Input &input, std::optional< std::string > ref, std::optional< Hash > rev) const |
|
virtual void | clone (const Input &input, const Path &destDir) const |
|
virtual bool | isDirect (const Input &input) const |
|
◆ allowedAttrs()
StringSet nix::fetchers::PathInputScheme::allowedAttrs |
( |
| ) |
const |
|
inlineoverridevirtual |
Allowed attributes in an attribute set that is converted to an input.
type
is not included from this set, because the type
field is parsed first to choose which scheme; type
is always required.
Implements nix::fetchers::InputScheme.
◆ experimentalFeature()
std::optional< ExperimentalFeature > nix::fetchers::PathInputScheme::experimentalFeature |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getAccessor()
◆ getFingerprint()
std::optional< std::string > nix::fetchers::PathInputScheme::getFingerprint |
( |
ref< Store > | store, |
|
|
const Input & | input ) const |
|
inlineoverridevirtual |
◆ getSourcePath()
std::optional< std::filesystem::path > nix::fetchers::PathInputScheme::getSourcePath |
( |
const Input & | input | ) |
const |
|
inlineoverridevirtual |
◆ inputFromAttrs()
std::optional< Input > nix::fetchers::PathInputScheme::inputFromAttrs |
( |
const Settings & | settings, |
|
|
const Attrs & | attrs ) const |
|
inlineoverridevirtual |
◆ inputFromURL()
std::optional< Input > nix::fetchers::PathInputScheme::inputFromURL |
( |
const Settings & | settings, |
|
|
const ParsedURL & | url, |
|
|
bool | requireTree ) const |
|
inlineoverridevirtual |
◆ isLocked()
bool nix::fetchers::PathInputScheme::isLocked |
( |
const Input & | input | ) |
const |
|
inlineoverridevirtual |
◆ isRelative()
std::optional< std::string > nix::fetchers::PathInputScheme::isRelative |
( |
const Input & | input | ) |
const |
|
inlineoverridevirtual |
◆ putFile()
void nix::fetchers::PathInputScheme::putFile |
( |
const Input & | input, |
|
|
const CanonPath & | path, |
|
|
std::string_view | contents, |
|
|
std::optional< std::string > | commitMsg ) const |
|
inlineoverridevirtual |
◆ schemeName()
std::string_view nix::fetchers::PathInputScheme::schemeName |
( |
| ) |
const |
|
inlineoverridevirtual |
What is the name of the scheme?
The type
attribute is used to select which input scheme is used, and then the other fields are forwarded to that input scheme.
Implements nix::fetchers::InputScheme.
◆ toURL()
ParsedURL nix::fetchers::PathInputScheme::toURL |
( |
const Input & | input | ) |
const |
|
inlineoverridevirtual |
The documentation for this struct was generated from the following file:
- /home/buildozer/aports/community/nix/src/nix-2.26.3/src/libfetchers/path.cc