| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
IfaceCache
The interface cache stores downloaded and verified interfaces in ~/.cache/0install.net/interfaces (by default).
There are methods to query the cache, add to it, check signatures, etc.
The cache is updated by fetch.Fetcher.
Confusingly, this class is really two caches combined: the in-memory cache of model.Interface objects, and an on-disk cache of model.ZeroInstallFeeds. It will probably be split into two in future.
See Also: iface_cache - the singleton IfaceCache instance.
| Instance Methods | |||
|
|||
| bool |
|
||
|
|||
| model.ZeroInstallFeed |
|
||
| model.Interface |
|
||
| [str] |
|
||
| str |
|
||
| [gpg.Signature] or None |
|
||
|
|||
| float | None |
|
||
|
Inherited from |
|||
| Properties | |
|
Inherited from |
| Method Details |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Update a cached interface (using update_interface_from_network) if we trust the signatures. If we don't trust any of the signatures, do nothing.
|
Update a cached interface. Called by update_interface_if_trusted if we trust this data. After a successful update, writer is used to update the interface's last_checked time.
|
Get a feed from the cache.
|
Get the interface for uri, creating a new one if required. New interfaces are initialised from the disk cache, but not from the network.
|
Get the path of a cached icon for an interface.
|
Verify the cached interface using GPG. Only new-style XML-signed interfaces retain their signatures in the cache.
Since: 0.25 |
Touch a 'last_check_attempt_timestamp' file for this feed. If url is a local path, nothing happens. This prevents us from repeatedly trying to download a failing feed many times in a short period. |
Return the time of the most recent update attempt for a feed.
See Also: mark_as_checking |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Jun 21 21:21:16 2008 | http://epydoc.sourceforge.net |