Package com.artipie.composer
Interface Packages
-
- All Known Implementing Classes:
JsonPackages
public interface PackagesPHP Composer packages registry.- Since:
- 0.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Packagesadd(Package pack)Add package.CompletableFuture<Void>save(com.artipie.asto.Storage storage, com.artipie.asto.Key key)Saves packages registry binary content to storage.
-
-
-
Method Detail
-
add
Packages add(Package pack) throws IOException
Add package.- Parameters:
pack- Package.- Returns:
- Updated packages.
- Throws:
IOException- In case of any I/O problems.
-
save
CompletableFuture<Void> save(com.artipie.asto.Storage storage, com.artipie.asto.Key key)
Saves packages registry binary content to storage.- Parameters:
storage- Storage to use for saving.key- Key to store packages.- Returns:
- Completion of saving.
-
-