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

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

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

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

import javax.annotation.CheckForNull;
import java.util.List;
import java.util.Map;

/**
 * Command to list all services in a docker swarm. Only applicable if docker runs in swarm mode.
 *
 * @since {@link RemoteApiVersion#VERSION_1_24}
 */
public interface ListServicesCmd extends SyncDockerCmd> {

    @CheckForNull
    Map> getFilters();

    /**
     * @param ids - Show only services with the given ids
     */
    ListServicesCmd withIdFilter(List ids);

    /**
     * @param names - Show only services with the given names
     */
    ListServicesCmd withNameFilter(List names);

    /**
     * @param labels - Show only services with the passed labels. Labels is a {@link Map} that contains label keys and values
     */
    ListServicesCmd withLabelFilter(Map labels);

    interface Exec extends DockerCmdSyncExec> {
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy