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

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

package de.gesellix.docker.client.distribution

import de.gesellix.docker.client.DockerResponseHandler
import de.gesellix.docker.engine.EngineClient
import de.gesellix.docker.engine.EngineResponse
import groovy.util.logging.Slf4j

@Slf4j
class ManageDistributionService implements ManageDistribution {

  private EngineClient client
  private DockerResponseHandler responseHandler

  ManageDistributionService(EngineClient client, DockerResponseHandler responseHandler) {
    this.client = client
    this.responseHandler = responseHandler
  }

  @Override
  EngineResponse descriptor(String image) {
    log.info "docker distribution descriptor"
    def response = client.get([path: "/distribution/${image}/json".toString()])
    return response
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy