Package zeroinstall :: Package zerostore :: Class Stores
[frames] | no frames]

Class Stores

source code

object --+
         |
        Stores

A list of Stores. All stores are searched when looking for an implementation. When storing, we use the first of the system caches (if writable), or the user's cache otherwise.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
lookup(self, digest)
Search for digest in all stores.
source code
 
add_dir_to_cache(self, required_digest, dir)
Add to the best writable cache.
source code
 
add_archive_to_cache(self, required_digest, data, url, extract=None, type=None, start_offset=0)
Add to the best writable cache.
source code
 
get_first_system_store(self)
The first system store is the one we try writing to first.
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

add_dir_to_cache(self, required_digest, dir)

source code 

Add to the best writable cache.

add_archive_to_cache(self, required_digest, data, url, extract=None, type=None, start_offset=0)

source code 

Add to the best writable cache.

get_first_system_store(self)

source code 

The first system store is the one we try writing to first.

Since: 0.30