Class AstoRepository

  • All Implemented Interfaces:
    Repository

    public final class AstoRepository
    extends Object
    implements Repository
    PHP Composer repository that stores packages in a Storage.
    Since:
    0.3
    • Field Detail

      • ALL_PACKAGES

        public static final com.artipie.asto.Key ALL_PACKAGES
        Key to all packages.
    • Constructor Detail

      • AstoRepository

        public AstoRepository​(com.artipie.asto.Storage storage)
        Ctor.
        Parameters:
        storage - Storage to store all repository data.
    • Method Detail

      • add

        public CompletableFuture<Void> add​(com.artipie.asto.Content content)
        Description copied from interface: Repository
        Adds package described in JSON format from storage.
        Specified by:
        add in interface Repository
        Parameters:
        content - Package content.
        Returns:
        Completion of adding package to repository.