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

com.github.dockerjava.api.command.ListImagesCmd Maven / Gradle / Ivy

There is a newer version: 3.4.0
Show newest version
package com.github.dockerjava.api.command;

import java.util.Collection;
import java.util.List;
import java.util.Map;

import javax.annotation.CheckForNull;

import com.github.dockerjava.api.model.Image;

/**
 * List images
 */
public interface ListImagesCmd extends SyncDockerCmd> {

    @CheckForNull
    Map> getFilters();

    String getImageNameFilter();

    @CheckForNull
    Boolean hasShowAllEnabled();

    /**
     * Show all images (by default filter out the intermediate images used to build)
     */
    ListImagesCmd withShowAll(Boolean showAll);

    ListImagesCmd withImageNameFilter(String imageName);

    /**
     * Filter dangling images
     */
    ListImagesCmd withDanglingFilter(Boolean dangling);

    /**
     * @param labels
     *            - string array in the form ["key"] or ["key=value"] or a mix of both
     */
    ListImagesCmd withLabelFilter(String... label);

    /**
     * @param labels
     *            - {@link Map} of labels that contains label keys and values
     */
    ListImagesCmd withLabelFilter(Map labels);

    /**
     * Filter images by reference
     *
     * @param reference string in the form {@code [:]}
     */
    ListImagesCmd withReferenceFilter(String reference);

    ListImagesCmd withFilter(String key, Collection values);

    interface Exec extends DockerCmdSyncExec> {
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy