kojismokydingo.sift.common¶
Koji Smoky Dingo - Koji-specific utilities for working with Sifty Sieves
- author:
Christopher O'Brien <obriencj@gmail.com>
- license:
GPL v3
- class CacheMixin(sifter, *tokens, **options)[source]¶
Bases:
Sieve
Mixin providing some caching interfaces to various koji calls. These will store cached results on the instance's sifter. The cache is cleared when the sifter's
reset
method is invoked.- Parameters:
sifter (Sifter)
- allowed_packages(session, tag_id, inherited=True)[source]¶
a caching wrapper for
session.listPackages
which returns a set containing only the package names which are not blocked.
- blocked_packages(session, tag_id, inherited=True)[source]¶
a caching wrapper for
session.listPackages
which returns a set containing only the package names which are blocked.
- bulk_get_tag_groups(session, tag_ids)[source]¶
a multicall caching wrapper for
session.getTagGroups
. Shares a cache withget_tag_groups
- bulk_list_packages(session, tag_ids, inherited=True)[source]¶
a multicall caching wrapper for
session.listPackages
shares the same cache as
list_packages
(and thereforeallowed_packages
andblocked_packages
)
- get_tag_groups(session, tag_id)[source]¶
a caching wrapper for
session.getTagGroups
- Parameters:
session (ClientSession)
tag_id (int)
- Return type:
- latest_build_ids(session, tag_id, inherit=True)[source]¶
a caching wrapper for
session.getLatestBuilds
which returns a set containing only the build IDs
- latest_builds_by_name(session, tag_id, inherit=True)[source]¶
a caching wrapper for session.getLatestBuilds which returns a dict mapping the build names to the build info
- latest_maven_build_ids(session, tag_id, inherit=True)[source]¶
a caching wrapper for
kojismokydingo.builds.latest_maven_builds
which returns a set containing only the build IDs
- latest_maven_builds(session, tag_id, inherit=True)[source]¶
a caching wrapper for
kojismokydingo.builds.latest_maven_builds