lib/repo-finder: Add basic support for finding remote URIs by ref name
Add an initial OstreeRepoFinder interface (but no implementations), which will find remote URIs by ref names and collection IDs, the combination of which is globally unique. The new API is used in a new ostree_repo_find_updates() function, which resolves a list of ref names to update into a set of remote URIs to pull them from, which can be treated as mirrors. It is an attempt to generalise resolution of the URIs to pull from, and to generalise determination of the order and parallelisation which they should be downloaded from in. Includes fixes by Krzesimir Nowak <krzesimir@kinvolk.io>. Signed-off-by: Philip Withnall <withnall@endlessm.com> Closes: #924 Approved by: cgwalters
This commit is contained in:
1 parent
7607d94713
commit
292230301d
11 files changed
+2179
-2
No files matched your search
@@ -21,6 +21,34 @@ ostree_remote_unref
|
||||
ostree_remote_get_name
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>ostree-repo-experimental</FILE>
|
||||
ostree_repo_find_remotes_async
|
||||
ostree_repo_find_remotes_finish
|
||||
ostree_repo_pull_from_remotes_async
|
||||
ostree_repo_pull_from_remotes_finish
|
||||
ostree_repo_resolve_keyring_for_collection
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>ostree-repo-finder</FILE>
|
||||
OstreeRepoFinder
|
||||
ostree_repo_finder_resolve_async
|
||||
ostree_repo_finder_resolve_finish
|
||||
ostree_repo_finder_resolve_all_async
|
||||
ostree_repo_finder_resolve_all_finish
|
||||
OstreeRepoFinderResult
|
||||
ostree_repo_finder_result_new
|
||||
ostree_repo_finder_result_dup
|
||||
ostree_repo_finder_result_free
|
||||
ostree_repo_finder_result_compare
|
||||
OstreeRepoFinderResultv
|
||||
ostree_repo_finder_result_freev
|
||||
<SUBSECTION Standard>
|
||||
ostree_repo_finder_get_type
|
||||
ostree_repo_finder_result_get_type
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>ostree-misc-experimental</FILE>
|
||||
ostree_repo_get_collection_id
|
||||
|
||||
Reference in new issue
Block a user