Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::fetchers::GitArchiveInputScheme Struct Referenceabstract
Inheritance diagram for nix::fetchers::GitArchiveInputScheme:
nix::fetchers::InputScheme nix::fetchers::GitHubInputScheme nix::fetchers::GitLabInputScheme nix::fetchers::SourceHutInputScheme

Classes

struct  RefInfo
 
struct  TarballInfo
 

Public Member Functions

virtual std::optional< std::pair< std::string, std::string > > accessHeaderFromToken (const std::string &token) const =0
 
std::optional< InputinputFromURL (const fetchers::Settings &settings, const ParsedURL &url, bool requireTree) const override
 
StringSet allowedAttrs () const override
 
std::optional< InputinputFromAttrs (const fetchers::Settings &settings, const Attrs &attrs) const override
 
ParsedURL toURL (const Input &input) const override
 
Input applyOverrides (const Input &_input, std::optional< std::string > ref, std::optional< Hash > rev) const override
 
std::optional< std::string > getAccessToken (const fetchers::Settings &settings, const std::string &host) const
 
Headers makeHeadersWithAuthTokens (const fetchers::Settings &settings, const std::string &host) const
 
virtual RefInfo getRevFromRef (nix::ref< Store > store, const Input &input) const =0
 
virtual DownloadUrl getDownloadUrl (const Input &input) const =0
 
std::pair< Input, TarballInfodownloadArchive (ref< Store > store, Input input) const
 
std::pair< ref< SourceAccessor >, InputgetAccessor (ref< Store > store, const Input &_input) const override
 
bool isLocked (const Input &input) const override
 
std::optional< ExperimentalFeatureexperimentalFeature () const override
 
std::optional< std::string > getFingerprint (ref< Store > store, const Input &input) const override
 
- Public Member Functions inherited from nix::fetchers::InputScheme
virtual std::string_view schemeName () const =0
 
virtual void clone (const Input &input, const Path &destDir) const
 
virtual std::optional< std::filesystem::path > getSourcePath (const Input &input) const
 
virtual void putFile (const Input &input, const CanonPath &path, std::string_view contents, std::optional< std::string > commitMsg) const
 
virtual bool isDirect (const Input &input) const
 
virtual std::optional< std::string > isRelative (const Input &input) const
 

Member Function Documentation

◆ allowedAttrs()

StringSet nix::fetchers::GitArchiveInputScheme::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.

◆ applyOverrides()

Input nix::fetchers::GitArchiveInputScheme::applyOverrides ( const Input & _input,
std::optional< std::string > ref,
std::optional< Hash > rev ) const
inlineoverridevirtual

Reimplemented from nix::fetchers::InputScheme.

◆ experimentalFeature()

std::optional< ExperimentalFeature > nix::fetchers::GitArchiveInputScheme::experimentalFeature ( ) const
inlineoverridevirtual

Is this InputScheme part of an experimental feature?

Reimplemented from nix::fetchers::InputScheme.

◆ getAccessor()

std::pair< ref< SourceAccessor >, Input > nix::fetchers::GitArchiveInputScheme::getAccessor ( ref< Store > store,
const Input & _input ) const
inlineoverridevirtual

◆ getFingerprint()

std::optional< std::string > nix::fetchers::GitArchiveInputScheme::getFingerprint ( ref< Store > store,
const Input & input ) const
inlineoverridevirtual

Reimplemented from nix::fetchers::InputScheme.

◆ inputFromAttrs()

std::optional< Input > nix::fetchers::GitArchiveInputScheme::inputFromAttrs ( const fetchers::Settings & settings,
const Attrs & attrs ) const
inlineoverridevirtual

◆ inputFromURL()

std::optional< Input > nix::fetchers::GitArchiveInputScheme::inputFromURL ( const fetchers::Settings & settings,
const ParsedURL & url,
bool requireTree ) const
inlineoverridevirtual

◆ isLocked()

bool nix::fetchers::GitArchiveInputScheme::isLocked ( const Input & input) const
inlineoverridevirtual

Reimplemented from nix::fetchers::InputScheme.

◆ toURL()

ParsedURL nix::fetchers::GitArchiveInputScheme::toURL ( const Input & input) const
inlineoverridevirtual

Reimplemented from nix::fetchers::InputScheme.


The documentation for this struct was generated from the following file: