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

Public Member Functions

std::string_view schemeName () const override
std::string schemeDescription () const override
std::optional< std::pair< std::string, std::string > > accessHeaderFromToken (const std::string &token) const override
RefInfo getRevFromRef (const Settings &settings, nix::Store &store, const Input &input) const override
DownloadUrl getDownloadUrl (const Settings &settings, const Input &input) const override
void clone (const Settings &settings, Store &store, const Input &input, const std::filesystem::path &destDir) const override
Public Member Functions inherited from nix::fetchers::GitArchiveInputScheme
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
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::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

◆ accessHeaderFromToken()

std::optional< std::pair< std::string, std::string > > nix::fetchers::GitLabInputScheme::accessHeaderFromToken ( const std::string & token) const
inlineoverridevirtual

◆ clone()

void nix::fetchers::GitLabInputScheme::clone ( const Settings & settings,
Store & store,
const Input & input,
const std::filesystem::path & destDir ) const
inlineoverridevirtual

Reimplemented from nix::fetchers::InputScheme.

◆ getDownloadUrl()

DownloadUrl nix::fetchers::GitLabInputScheme::getDownloadUrl ( const Settings & settings,
const Input & input ) const
inlineoverridevirtual

◆ getRevFromRef()

RefInfo nix::fetchers::GitLabInputScheme::getRevFromRef ( const Settings & settings,
nix::Store & store,
const Input & input ) const
inlineoverridevirtual

◆ schemeDescription()

std::string nix::fetchers::GitLabInputScheme::schemeDescription ( ) const
inlineoverridevirtual

Longform description of this scheme, for documentation purposes.

Implements nix::fetchers::InputScheme.

◆ schemeName()

std::string_view nix::fetchers::GitLabInputScheme::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.


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