package io.wdd.func.auto.beans;


/**
 * 参数固定顺序为
 * imageFullName gzipFolderPrefix gzipFileName ossUrlPrefix proxyUrl targetHarborHost namespace targetImageFullName
 */
public enum ImageFunctionEnum {

    DOWNLOAD_DOCKER_IMAGE(
            "DOWNLOAD_DOCKER_IMAGE",
            "args imageFullName return  imageFullName"
    ),

    COMPRESS_IMAGE_TO_GZIP(
            "COMPRESS_IMAGE_TO_GZIP",
            "args imageFullName return  gzipFileName"
    ),

    UPLOAD_GZIP_TO_OSS(
            "UPLOAD_GZIP_TO_OSS",
            "关闭防火墙"
    ),

    DOWNLOAD_GZIP_IMAGE_FILE(
            "DOWNLOAD_GZIP_IMAGE_FILE",
            "关闭防火墙"
    ),

    LOAD_DOCKER_IMAGE_FROM_GZIP(
            "LOAD_DOCKER_IMAGE_FROM_GZIP",
            "关闭防火墙"
    ),

    PUSH_IMAGE_TO_TARGET_HARBOR(
            "PUSH_IMAGE_TO_TARGET_HARBOR",
            "关闭防火墙"
    ),

    UPDATE_IMAGE_TAG(
            "UPDATE_IMAGE_TAG",
            "关闭防火墙"
    ),

    FINISHED(
            "FINISHED",
            "同步更新完成"
    );


    /**
     * 函数名
     */
    String funcName;

    String desc;


    ImageFunctionEnum(String funcName, String desc) {
        this.funcName = funcName;
        this.desc = desc;
    }

    public String getFuncName() {
        return funcName;
    }

    public String getDesc() {
        return desc;
    }

}
