Package com.artipie.composer
Interface Packages
- All Known Implementing Classes:
JsonPackages
public interface Packages
PHP Composer packages registry.
- Since:
- 0.1
-
Method Summary
Modifier and TypeMethodDescriptionAdd package.content()
Reads packages registry binary content.Saves packages registry binary content to storage.
-
Method Details
-
add
Add package.- Parameters:
pack
- Package.version
- Version in case of absence version in package. If package does not contain version, this value should be passed as a parameter.- Returns:
- Updated packages.
-
save
Saves packages registry binary content to storage.- Parameters:
storage
- Storage to use for saving.key
- Key to store packages.- Returns:
- Completion of saving.
-
content
CompletionStage<Content> content()Reads packages registry binary content.- Returns:
- Content.
-