Nix 2.26.3
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::optional< std::pair< std::string, std::string > > accessHeaderFromToken (const std::string &token) const override
 
RefInfo getRevFromRef (nix::ref< Store > store, const Input &input) const override
 
DownloadUrl getDownloadUrl (const Input &input) const override
 
void clone (const Input &input, const Path &destDir) const override
 
- Public Member Functions inherited from nix::fetchers::GitArchiveInputScheme
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
 
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::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

◆ 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 Input & input,
const Path & destDir ) const
inlineoverridevirtual

Reimplemented from nix::fetchers::InputScheme.

◆ getDownloadUrl()

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

◆ getRevFromRef()

RefInfo nix::fetchers::GitLabInputScheme::getRevFromRef ( nix::ref< Store > store,
const Input & input ) const
inlineoverridevirtual

◆ 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: