Package backend :: Package cdn_tools :: Module repository :: Class CdnRepositoryTree
[hide private]
[frames] | no frames]

Class CdnRepositoryTree

source code


Class representing activated CDN repositories in tree structure. Leafs contains CdnRepository instances. Allows us to match direct CDN URLs without variables (coming from mapping) to CDN URLs with variables (coming from manifest and having SSL keys/certs assigned)

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
add_repository(self, repository)
Add new CdnRepository to tree.
source code
 
_browse_node(self, node, keys)
Recursive function going through tree.
source code
 
find_repository(self, url)
Finds matching repository in tree.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
normalize_url(url)
Splits repository URL, removes redundant characters and returns list with directory names.
source code
Class Variables [hide private]
  VARIABLES = ['$releasever', '$basearch']
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

find_repository(self, url)

source code 

Finds matching repository in tree. url is relative CDN url - e.g. /content/dist/rhel/server/6/6Server/x86_64/os