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

de.gesellix.docker.client.image.ManageImage Maven / Gradle / Ivy

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

import de.gesellix.docker.client.EngineResponseContent;
import de.gesellix.docker.remote.api.BuildInfo;
import de.gesellix.docker.remote.api.CreateImageInfo;
import de.gesellix.docker.remote.api.HistoryResponseItem;
import de.gesellix.docker.remote.api.ImageDeleteResponseItem;
import de.gesellix.docker.remote.api.ImageInspect;
import de.gesellix.docker.remote.api.ImagePruneResponse;
import de.gesellix.docker.remote.api.ImageSearchResponseItem;
import de.gesellix.docker.remote.api.ImageSummary;
import de.gesellix.docker.remote.api.PushImageInfo;
import de.gesellix.docker.remote.api.core.StreamCallback;

import java.io.InputStream;
import java.time.Duration;
import java.util.List;
import java.util.Map;

public interface ManageImage {

  EngineResponseContent> search(String term);

  EngineResponseContent> search(String term, Integer limit);

  void build(InputStream buildContext);

  void build(StreamCallback callback, Duration timeout,
             InputStream buildContext);

  void build(StreamCallback callback, Duration timeout,
             String tag,
             InputStream buildContext);

  void build(String tag,
             InputStream buildContext);

  void build(String dockerfile, String tag, Boolean quiet, Boolean nocache, String pull, Boolean rm,
             String buildargs, String labels, String encodedRegistryConfig, String contentType,
             InputStream buildContext);

  void build(StreamCallback callback, Duration timeout,
             String dockerfile, String tag, Boolean quiet, Boolean nocache, String pull, Boolean rm,
             String buildargs, String labels, String encodedRegistryConfig, String contentType,
             InputStream buildContext);

  EngineResponseContent> history(String image);

  EngineResponseContent inspectImage(String image);

  void load(InputStream imagesTarball);

  /**
   * @see #images(Boolean, String, Boolean)
   * @deprecated use {@link #images(Boolean, String, Boolean)}
   */
  @Deprecated
  EngineResponseContent> images(Map query);

  EngineResponseContent> images();

  EngineResponseContent> images(Boolean all, String filters, Boolean digests);

  /**
   * @see #pruneImages(String)
   * @deprecated use {@link #pruneImages(String)}
   */
  @Deprecated
  EngineResponseContent pruneImages(Map query);

  EngineResponseContent pruneImages();

  EngineResponseContent pruneImages(String filters);

  void pull(StreamCallback callback, Duration timeout,
            String imageName);

  void pull(StreamCallback callback, Duration timeout,
            String imageName, String tag);

  void pull(StreamCallback callback, Duration timeout,
            String imageName, String tag, String authBase64Encoded);

  void importUrl(StreamCallback callback, Duration timeout,
                 String url);

  void importUrl(StreamCallback callback, Duration timeout,
                 String url, String repository);

  void importUrl(StreamCallback callback, Duration timeout,
                 String url, String repository, String tag);

  void importStream(StreamCallback callback, Duration timeout,
                    InputStream stream);

  void importStream(StreamCallback callback, Duration timeout,
                    InputStream stream, String repository);

  void importStream(StreamCallback callback, Duration timeout,
                    InputStream stream, String repository, String tag);

  void push(String image);

  void push(StreamCallback callback, Duration timeout, String image);

  void push(String image, String authBase64Encoded);

  void push(StreamCallback callback, Duration timeout, String image, String authBase64Encoded);

  void push(String image, String authBase64Encoded, String registry);

  void push(StreamCallback callback, Duration timeout, String image, String authBase64Encoded, String registry);

  EngineResponseContent> rmi(String image);

  EngineResponseContent save(List images);

  void tag(String image, String repository);

  String findImageId(String imageName);

  String findImageId(String imageName, String tag);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy