Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::fetchers::GitHubInputScheme Struct Reference
Inheritance diagram for nix::fetchers::GitHubInputScheme:
nix::fetchers::GitArchiveInputScheme nix::fetchers::InputScheme

Public Member Functions

std::string type () const override
std::optional< std::pair< std::string, std::string > > accessHeaderFromToken (const std::string &token) const override
std::string getHost (const Input &input) const
std::string getOwner (const Input &input) const
std::string getRepo (const Input &input) const
kj::Promise< Result< Hash > > 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
Headers makeHeadersWithAuthTokens (const std::string &host) const
Public Member Functions inherited from nix::fetchers::GitArchiveInputScheme
std::optional< InputinputFromURL (const ParsedURL &url, bool requireTree) const override
std::optional< InputinputFromAttrs (const Attrs &attrs) const override
ParsedURL toURL (const Input &input) const override
bool hasAllInfo (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 std::string &host) const
Headers makeHeadersWithAuthTokens (const std::string &host) const
kj::Promise< Result< std::pair< StorePath, Input > > > fetch (ref< Store > store, const Input &_input) override
Public Member Functions inherited from nix::fetchers::InputScheme
virtual std::optional< PathgetSourcePath (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 isLockedByRev () const

Additional Inherited Members

Protected Member Functions inherited from nix::fetchers::InputScheme
void emplaceURLQueryIntoAttrs (const ParsedURL &parsedURL, Attrs &attrs, const StringSet &numericParams, const StringSet &booleanParams) const

Member Function Documentation

◆ accessHeaderFromToken()

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

◆ clone()

void nix::fetchers::GitHubInputScheme::clone ( const Input & input,
const Path & destDir ) const
inlineoverridevirtual

Reimplemented from nix::fetchers::InputScheme.

◆ getDownloadUrl()

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

◆ getRevFromRef()

kj::Promise< Result< Hash > > nix::fetchers::GitHubInputScheme::getRevFromRef ( nix::ref< Store > store,
const Input & input ) const
inlineoverridevirtual

◆ type()

std::string nix::fetchers::GitHubInputScheme::type ( ) const
inlineoverridevirtual

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