package cn.reghao.autodop.common.docker.api;

/**
 * Docker v1.40
 * https://docs.docker.com/engine/api/v1.40/
 *
 * @author reghao
 * @date 2020-01-13 15:59:16
 */
public class DockerApi {
    private static final String version = "/v1.40";

    // image
    public static final String buildPost = version + "/build";
    public static final String tagPost = version + "/images/{}/tag";
    public static final String pushPost = version + "/images/{}/push";
    public static final String pullPost = version + "/images/create";
    public static final String inspectImageGet = version + "/images/{}/json";
    public static final String searchImageGet = version + "/images/json";
    public static final String rmImageDelete = version + "/images/{}";

    // container
    public static final String createPost = version + "/containers/create";
    public static final String logsGet = version + "/containers/{}/logs";
    public static final String startPost = version + "/containers/{}/start";
    public static final String stopPost = version + "/containers/{}/stop";
    public static final String restartPost = version + "/containers/{}/restart";
    public static final String rmContainerDelete = version + "/containers/{}";
    public static final String psGet = version + "/containers/json";
    public static final String inspectContainerGet = version + "/containers/{}/json";
}
