package cn.reghao.autodop.common.docker.pojo.result;

import cn.reghao.autodop.common.docker.pojo.GraphDriver;
import cn.reghao.autodop.common.docker.pojo.HostConfig;
import cn.reghao.autodop.common.docker.pojo.State;
import com.google.gson.annotations.SerializedName;
import lombok.Data;

import java.util.List;

/**
 * docker inspect 返回值
 *
 * @author reghao
 * @date 2019-12-10 18:30:02
 */
@Data
public class ContainerInfo {
    @SerializedName("AppArmorProfile") private String appArmorProfile;
    @SerializedName("Args") private List<String> args;
    @SerializedName("Config") private Config config;
    @SerializedName("Created") private String created;
    @SerializedName("Driver") private String driver;
    @SerializedName("ExecIDs") private List<String> execIds;
    @SerializedName("GraphDriver") private GraphDriver graphDriver;
    @SerializedName("HostConfig") private HostConfig hostConfig;
    @SerializedName("HostnamePath") private String hostnamePath;
    @SerializedName("HostsPath") private String hostsPath;
    @SerializedName("LogPath") private String logPath;
    @SerializedName("Id") private String id;
    @SerializedName("Image") private String image;
    @SerializedName("MountLabel") private String mountLabel;
    @SerializedName("Name") private String name;
    @SerializedName("NetworkSettings") private NetworkSettings networkSettings;
    @SerializedName("Path") private String path;
    @SerializedName("ProcessLabel") private String processLabel;
    @SerializedName("ResolvConfPath") private String resolvConfPath;
    @SerializedName("RestartCount") private int restartCount;
    @SerializedName("State") private State state;
    @SerializedName("Mounts") private List<Mount> mounts;

    @Data
    static public class Config {
        @SerializedName("Image") private String image;
        @SerializedName("StopSignal") private String stopSignal;
    }
}
