libzypp  17.8.0
zypp::RepoInfo::Impl Struct Reference

RepoInfo implementation. More...

Public Member Functions

 Impl ()
 
 ~Impl ()
 
void setProbedType (const repo::RepoType &t) const
 
Pathname licenseTgz (const std::string &name_r) const
 Path to a license tarball in case it exists in the repo. More...
 
const RepoVariablesReplacedUrlListbaseUrls () const
 
RepoVariablesReplacedUrlListbaseUrls ()
 
bool baseurl2dump () const
 
const RepoVariablesReplacedUrlListgpgKeyUrls () const
 
RepoVariablesReplacedUrlListgpgKeyUrls ()
 
const std::set< std::string > & contentKeywords () const
 
void addContent (const std::string &keyword_r)
 
bool hasContent () const
 
bool hasContent (const std::string &keyword_r) const
 
TriBool rawGpgCheck () const
 
TriBool rawRepoGpgCheck () const
 
TriBool rawPkgGpgCheck () const
 
void rawGpgCheck (TriBool val_r)
 
void rawRepoGpgCheck (TriBool val_r)
 
void rawPkgGpgCheck (TriBool val_r)
 
bool cfgGpgCheck () const
 
TriBool cfgRepoGpgCheck () const
 
TriBool cfgPkgGpgCheck () const
 
void metadataPath (Pathname new_r)
 
void packagesPath (Pathname new_r)
 
bool usesAutoMethadataPaths () const
 
Pathname metadataPath () const
 
Pathname packagesPath () const
 
TriBool internalValidRepoSignature () const
 Signature check result needs to be stored/retrieved from _metadataPath. More...
 
void internalSetValidRepoSignature (TriBool value_r)
 
bool internalUnsignedConfirmed () const
 We definitely have a symlink pointing to "indeterminate" (for repoGpgCheckIsMandatory)? I.e. More...
 
bool triBoolFromPath (const Pathname &path_r, TriBool &ret_r) const
 
TriBool triBoolFromPath (const Pathname &path_r) const
 

Public Attributes

TriBool keeppackages
 
RepoVariablesReplacedUrl _mirrorListUrl
 
bool _mirrorListForceMetalink
 
repo::RepoType type
 
Pathname path
 
std::string service
 
std::string targetDistro
 
DefaultIntegral< unsigned, defaultPrioritypriority
 
bool emptybaseurls
 

Static Public Attributes

static const unsigned defaultPriority = 99
 
static const unsigned noPriority = unsigned(-1)
 

Private Member Functions

Implclone () const
 clone for RWCOW_pointer More...
 

Private Attributes

TriBool _rawGpgCheck
 default gpgcheck behavior: Y/N/ZConf More...
 
TriBool _rawRepoGpgCheck
 need to check repo sign.: Y/N/(ZConf(Y/N/gpgCheck)) More...
 
TriBool _rawPkgGpgCheck
 need to check pkg sign.: Y/N/(ZConf(Y/N/gpgCheck)) More...
 
TriBool _validRepoSignature
 have signed and valid repo metadata More...
 
Pathname _metadataPath
 
Pathname _packagesPath
 
RepoVariablesReplacedUrlList _baseUrls
 
std::pair< FalseBool, std::set< std::string > > _keywords
 
RepoVariablesReplacedUrlList _gpgKeyUrls
 

Friends

ImplrwcowClone (const Impl *rhs)
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const RepoInfo::Impl &obj)
 

Detailed Description

RepoInfo implementation.

Definition at line 56 of file RepoInfo.cc.

Constructor & Destructor Documentation

◆ Impl()

zypp::RepoInfo::Impl::Impl ( )
inline

Definition at line 58 of file RepoInfo.cc.

◆ ~Impl()

zypp::RepoInfo::Impl::~Impl ( )
inline

Definition at line 69 of file RepoInfo.cc.

Member Function Documentation

◆ setProbedType()

void zypp::RepoInfo::Impl::setProbedType ( const repo::RepoType t) const
inline

Definition at line 76 of file RepoInfo.cc.

◆ licenseTgz()

Pathname zypp::RepoInfo::Impl::licenseTgz ( const std::string &  name_r) const
inline

Path to a license tarball in case it exists in the repo.

Definition at line 88 of file RepoInfo.cc.

◆ baseUrls() [1/2]

const RepoVariablesReplacedUrlList& zypp::RepoInfo::Impl::baseUrls ( ) const
inline

Definition at line 113 of file RepoInfo.cc.

◆ baseUrls() [2/2]

RepoVariablesReplacedUrlList& zypp::RepoInfo::Impl::baseUrls ( )
inline

Definition at line 126 of file RepoInfo.cc.

◆ baseurl2dump()

bool zypp::RepoInfo::Impl::baseurl2dump ( ) const
inline

Definition at line 129 of file RepoInfo.cc.

◆ gpgKeyUrls() [1/2]

const RepoVariablesReplacedUrlList& zypp::RepoInfo::Impl::gpgKeyUrls ( ) const
inline

Definition at line 133 of file RepoInfo.cc.

◆ gpgKeyUrls() [2/2]

RepoVariablesReplacedUrlList& zypp::RepoInfo::Impl::gpgKeyUrls ( )
inline

Definition at line 136 of file RepoInfo.cc.

◆ contentKeywords()

const std::set<std::string>& zypp::RepoInfo::Impl::contentKeywords ( ) const
inline

Definition at line 140 of file RepoInfo.cc.

◆ addContent()

void zypp::RepoInfo::Impl::addContent ( const std::string &  keyword_r)
inline

Definition at line 143 of file RepoInfo.cc.

◆ hasContent() [1/2]

bool zypp::RepoInfo::Impl::hasContent ( ) const
inline

Definition at line 146 of file RepoInfo.cc.

◆ hasContent() [2/2]

bool zypp::RepoInfo::Impl::hasContent ( const std::string &  keyword_r) const
inline

Definition at line 191 of file RepoInfo.cc.

◆ internalValidRepoSignature()

TriBool zypp::RepoInfo::Impl::internalValidRepoSignature ( ) const
inline

Signature check result needs to be stored/retrieved from _metadataPath.

Don't call them from outside validRepoSignature/setValidRepoSignature

Definition at line 198 of file RepoInfo.cc.

◆ internalSetValidRepoSignature()

void zypp::RepoInfo::Impl::internalSetValidRepoSignature ( TriBool  value_r)
inline

Definition at line 212 of file RepoInfo.cc.

◆ internalUnsignedConfirmed()

bool zypp::RepoInfo::Impl::internalUnsignedConfirmed ( ) const
inline

We definitely have a symlink pointing to "indeterminate" (for repoGpgCheckIsMandatory)? I.e.

user accepted the unsigned repo in Downloader. A test whether internalValidRepoSignature is indeterminate would include not yet checked repos, which is unwanted here.

Definition at line 234 of file RepoInfo.cc.

◆ triBoolFromPath() [1/2]

bool zypp::RepoInfo::Impl::triBoolFromPath ( const Pathname path_r,
TriBool ret_r 
) const
inline

Definition at line 240 of file RepoInfo.cc.

◆ triBoolFromPath() [2/2]

TriBool zypp::RepoInfo::Impl::triBoolFromPath ( const Pathname path_r) const
inline

Definition at line 266 of file RepoInfo.cc.

◆ rawGpgCheck() [1/2]

TriBool zypp::RepoInfo::Impl::rawGpgCheck ( ) const
inline

Definition at line 277 of file RepoInfo.cc.

◆ rawRepoGpgCheck() [1/2]

TriBool zypp::RepoInfo::Impl::rawRepoGpgCheck ( ) const
inline

Definition at line 278 of file RepoInfo.cc.

◆ rawPkgGpgCheck() [1/2]

TriBool zypp::RepoInfo::Impl::rawPkgGpgCheck ( ) const
inline

Definition at line 279 of file RepoInfo.cc.

◆ rawGpgCheck() [2/2]

void zypp::RepoInfo::Impl::rawGpgCheck ( TriBool  val_r)
inline

Definition at line 281 of file RepoInfo.cc.

◆ rawRepoGpgCheck() [2/2]

void zypp::RepoInfo::Impl::rawRepoGpgCheck ( TriBool  val_r)
inline

Definition at line 282 of file RepoInfo.cc.

◆ rawPkgGpgCheck() [2/2]

void zypp::RepoInfo::Impl::rawPkgGpgCheck ( TriBool  val_r)
inline

Definition at line 283 of file RepoInfo.cc.

◆ cfgGpgCheck()

bool zypp::RepoInfo::Impl::cfgGpgCheck ( ) const
inline

Definition at line 285 of file RepoInfo.cc.

◆ cfgRepoGpgCheck()

TriBool zypp::RepoInfo::Impl::cfgRepoGpgCheck ( ) const
inline

Definition at line 287 of file RepoInfo.cc.

◆ cfgPkgGpgCheck()

TriBool zypp::RepoInfo::Impl::cfgPkgGpgCheck ( ) const
inline

Definition at line 289 of file RepoInfo.cc.

◆ metadataPath() [1/2]

void zypp::RepoInfo::Impl::metadataPath ( Pathname  new_r)
inline

Definition at line 303 of file RepoInfo.cc.

◆ packagesPath() [1/2]

void zypp::RepoInfo::Impl::packagesPath ( Pathname  new_r)
inline

Definition at line 306 of file RepoInfo.cc.

◆ usesAutoMethadataPaths()

bool zypp::RepoInfo::Impl::usesAutoMethadataPaths ( ) const
inline

Definition at line 309 of file RepoInfo.cc.

◆ metadataPath() [2/2]

Pathname zypp::RepoInfo::Impl::metadataPath ( ) const
inline

Definition at line 312 of file RepoInfo.cc.

◆ packagesPath() [2/2]

Pathname zypp::RepoInfo::Impl::packagesPath ( ) const
inline

Definition at line 319 of file RepoInfo.cc.

◆ clone()

Impl* zypp::RepoInfo::Impl::clone ( ) const
inlineprivate

clone for RWCOW_pointer

Definition at line 340 of file RepoInfo.cc.

Friends And Related Function Documentation

◆ rwcowClone

Impl* rwcowClone ( const Impl rhs)
friend

◆ operator<<()

std::ostream & operator<< ( std::ostream &  str,
const RepoInfo::Impl obj 
)
related

Stream output

Definition at line 346 of file RepoInfo.cc.

Member Data Documentation

◆ defaultPriority

const unsigned zypp::RepoInfo::Impl::defaultPriority = 99
static

Definition at line 73 of file RepoInfo.cc.

◆ noPriority

const unsigned zypp::RepoInfo::Impl::noPriority = unsigned(-1)
static

Definition at line 74 of file RepoInfo.cc.

◆ _rawGpgCheck

TriBool zypp::RepoInfo::Impl::_rawGpgCheck
private

default gpgcheck behavior: Y/N/ZConf

Definition at line 272 of file RepoInfo.cc.

◆ _rawRepoGpgCheck

TriBool zypp::RepoInfo::Impl::_rawRepoGpgCheck
private

need to check repo sign.: Y/N/(ZConf(Y/N/gpgCheck))

Definition at line 273 of file RepoInfo.cc.

◆ _rawPkgGpgCheck

TriBool zypp::RepoInfo::Impl::_rawPkgGpgCheck
private

need to check pkg sign.: Y/N/(ZConf(Y/N/gpgCheck))

Definition at line 274 of file RepoInfo.cc.

◆ _validRepoSignature

TriBool zypp::RepoInfo::Impl::_validRepoSignature
private

have signed and valid repo metadata

Definition at line 293 of file RepoInfo.cc.

◆ keeppackages

TriBool zypp::RepoInfo::Impl::keeppackages

Definition at line 295 of file RepoInfo.cc.

◆ _mirrorListUrl

RepoVariablesReplacedUrl zypp::RepoInfo::Impl::_mirrorListUrl

Definition at line 296 of file RepoInfo.cc.

◆ _mirrorListForceMetalink

bool zypp::RepoInfo::Impl::_mirrorListForceMetalink

Definition at line 297 of file RepoInfo.cc.

◆ type

repo::RepoType zypp::RepoInfo::Impl::type

Definition at line 298 of file RepoInfo.cc.

◆ path

Pathname zypp::RepoInfo::Impl::path

Definition at line 299 of file RepoInfo.cc.

◆ service

std::string zypp::RepoInfo::Impl::service

Definition at line 300 of file RepoInfo.cc.

◆ targetDistro

std::string zypp::RepoInfo::Impl::targetDistro

Definition at line 301 of file RepoInfo.cc.

◆ priority

DefaultIntegral<unsigned,defaultPriority> zypp::RepoInfo::Impl::priority

Definition at line 326 of file RepoInfo.cc.

◆ emptybaseurls

bool zypp::RepoInfo::Impl::emptybaseurls
mutable

Definition at line 327 of file RepoInfo.cc.

◆ _metadataPath

Pathname zypp::RepoInfo::Impl::_metadataPath
private

Definition at line 330 of file RepoInfo.cc.

◆ _packagesPath

Pathname zypp::RepoInfo::Impl::_packagesPath
private

Definition at line 331 of file RepoInfo.cc.

◆ _baseUrls

RepoVariablesReplacedUrlList zypp::RepoInfo::Impl::_baseUrls
mutableprivate

Definition at line 333 of file RepoInfo.cc.

◆ _keywords

std::pair<FalseBool, std::set<std::string> > zypp::RepoInfo::Impl::_keywords
mutableprivate

Definition at line 334 of file RepoInfo.cc.

◆ _gpgKeyUrls

RepoVariablesReplacedUrlList zypp::RepoInfo::Impl::_gpgKeyUrls
private

Definition at line 336 of file RepoInfo.cc.


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