Nix 2.36.0
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< Input > inputFromURL (const ParsedURL &url, bool requireTree) const override
const std::map< std::string, AttributeInfo > & allowedAttrs () const override
std::optional< Input > inputFromAttrs (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 std::string &url) const override
Headers makeHeadersWithAuthTokens (const fetchers::Settings &settings, const std::string &host, const Input &input) const
Headers makeHeadersWithAuthTokens (const fetchers::Settings &settings, const std::string &host, const std::string &hostAndPath) const
virtual RefInfo getRevFromRef (const Settings &settings, nix::Store &store, const Input &input) const =0
virtual DownloadUrl getDownloadUrl (const Settings &settings, const Input &input) const =0
std::pair< Input, TarballInfo > downloadArchive (const Settings &settings, Store &store, Input input) const
std::pair< ref< SourceAccessor >, Input > getAccessor (const Settings &settings, Store &store, const Input &_input) const override
bool isLocked (const Settings &settings, const Input &input) const override
std::optional< ExperimentalFeature > experimentalFeature () const override
std::optional< std::string > getFingerprint (Store &store, const Input &input) const override
Public Member Functions inherited from nix::fetchers::InputScheme
virtual std::string_view schemeName () const =0
virtual std::string schemeDescription () const =0
virtual void clone (const Settings &settings, Store &store, const Input &input, const std::filesystem::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::filesystem::path > isRelative (const Input &input) const
virtual std::optional< ParsedURL > localRepoURL (const std::filesystem::path &path) const

Member Function Documentation

◆ allowedAttrs()

const std::map< std::string, AttributeInfo > & nix::fetchers::GitArchiveInputScheme::allowedAttrs ( ) const
inlineoverridevirtual

Allowed attributes in an attribute set that is converted to an input, and documentation for each attribute.

type is not included from this map, 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 ( const Settings & settings,
Store & store,
const Input & _input ) const
inlineoverridevirtual

◆ getAccessToken()

std::optional< std::string > nix::fetchers::GitArchiveInputScheme::getAccessToken ( const fetchers::Settings & settings,
const std::string & host,
const std::string & url ) const
inlineoverridevirtual

Reimplemented from nix::fetchers::InputScheme.

◆ getFingerprint()

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

Reimplemented from nix::fetchers::InputScheme.

◆ inputFromAttrs()

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

◆ inputFromURL()

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

◆ isLocked()

bool nix::fetchers::GitArchiveInputScheme::isLocked ( const Settings & settings,
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:
  • libfetchers/github.cc