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 |
|
||
Feed |
|
||
{str: ZeroInstallFeed | None} |
|
||
[Implementation] |
|
||
[model.Interface] |
|
||
bool |
|
||
generator |
|
||
Inherited from |
Instance Variables | |||
|
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
|
Update a cached feed (using update_feed_from_network) if we trust the signatures. If we don't trust any of the signatures, do nothing.
Since: 0.48 |
Update a cached feed. Called by update_feed_if_trusted if we trust this data. After a successful update, writer is used to update the feed's last_checked time.
Since: 0.48 |
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 |
Get all feeds that add to this interface. This is the feeds explicitly added by the user, feeds added by the distribution, and feeds imported by a <feed> in the main feed (but not recursively, at present). Since: 0.48 |
Get all feeds for this interface. This is a mapping from feed URLs to ZeroInstallFeeds. It includes the interface's main feed, plus the resolution of every feed returned by get_feed_imports. Uncached feeds are indicated by a value of None.
Since: 0.48 |
Return all implementations from all of iface's feeds.
Since: 0.48 |
Return a list of Interfaces for which feed can be a feed. This is used by 0install add-feed.
Since: 0.53 |
Check whether feed needs updating, based on the configured config.Config.freshness. None is considered to be stale. If we already tried to update the feed within FAILED_CHECK_DELAY, returns false.
Since: 0.53 |
Generator for
See Also: arch Since: 0.53 |
Instance Variable Details |
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Mar 26 18:14:07 2013 | http://epydoc.sourceforge.net |