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

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

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

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

import javax.annotation.CheckForNull;

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

/**
 * Get events
 */
public interface EventsCmd extends AsyncDockerCmd {

    @CheckForNull
    Map> getFilters();

    @CheckForNull
    String getSince();

    @CheckForNull
    String getUntil();

    /**
     * @param container
     *            - container to filter
     */
    EventsCmd withContainerFilter(String... container);

    /**
     * @param event
     *            - event to filter (pull | create | attach | start | stop | kill)
     */
    EventsCmd withEventFilter(String... event);

    /**
     * @param image
     *            - image to filter
     */
    EventsCmd withImageFilter(String... image);

    /**
     * @param label
     *            - label to filter
     */
    EventsCmd withLabelFilter(String... label);

    /**
     * @param labels
     *            - labels to filter (map of names and values)
     */
    EventsCmd withLabelFilter(Map labels);

    /**
     * @param since
     *            - Show all events created since timestamp
     */
    EventsCmd withSince(String since);

    /**
     * @param until
     *            - Show all events created until timestamp
     */
    EventsCmd withUntil(String until);

    interface Exec extends DockerCmdAsyncExec {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy