All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.gesellix.docker.client.distribution.ManageDistributionService Maven / Gradle / Ivy

The newest version!
package de.gesellix.docker.client.distribution;

import de.gesellix.docker.client.EngineResponseContent;
import de.gesellix.docker.remote.api.DistributionInspect;
import de.gesellix.docker.remote.api.EngineApiClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ManageDistributionService implements ManageDistribution {

  private static final Logger log = LoggerFactory.getLogger(ManageDistributionService.class);

  private final EngineApiClient client;

  public ManageDistributionService(EngineApiClient client) {
    this.client = client;
  }

  @Override
  public EngineResponseContent descriptor(String image) {
    log.info("docker distribution descriptor");
    DistributionInspect distributionInspect = client.getDistributionApi().distributionInspect(image);
    return new EngineResponseContent<>(distributionInspect);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy