Package com.artipie.conan
Class RevisionsIndexer
java.lang.Object
com.artipie.conan.RevisionsIndexer
Conan V2 API revisions index (re)generation support.
Revisions index stored in revisions.txt file in json format.
There are 2+ index files: recipe revisions and binary revisions (per package).
- Since:
- 0.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildIndex
(Key key, List<String> pkgfiles, BiFunction<String, Integer, Key> generator) Rebuilds specified revision index (WIP).
-
Constructor Details
-
RevisionsIndexer
Initializes new instance.- Parameters:
storage
- Current Artipie storage instance.
-
-
Method Details
-
buildIndex
public CompletionStage<List<Integer>> buildIndex(Key key, List<String> pkgfiles, BiFunction<String, Integer, Key> generator) Rebuilds specified revision index (WIP). Extracts revisions lists, check files presense, then creates revision index files with valid revision numbers.- Parameters:
key
- Index file directory key (package path).pkgfiles
- Package files list for verification.generator
- Generates full key value to one of the pkgfiles. (name, rev) -> key.- Returns:
- CompletableFuture with recipe revisions list.
-