Class ImageConfig

    • Constructor Summary

      Constructors 
      Constructor Description
      ImageConfig()  
      ImageConfig​(ImageConfig source)
      NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getArgs()
      Get 容器的启动参数。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 CMD。传入规范,以“空格”作为参数的分割标识,例如 -u app.py 注意:此字段可能返回 null,表示取不到有效值。
      String getCommand()
      Get 容器的启动命令。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 Entrypoint。传入规范,填写可运行的指令,例如 python 注意:此字段可能返回 null,表示取不到有效值。
      Boolean getContainerImageAccelerate()
      Get 镜像加速开关,默认False 注意:此字段可能返回 null,表示取不到有效值。
      String getEntryPoint()
      Get 参数已废弃 注意:此字段可能返回 null,表示取不到有效值。
      Long getImagePort()
      Get 镜像函数端口设置 -1: 无端口镜像函数 0: 默认端口,当前默认端口是9000 其他: 特殊端口 注意:此字段可能返回 null,表示取不到有效值。
      String getImageType()
      Get 镜像仓库类型,个人版或者企业版:personal/enterprise
      String getImageUri()
      Get {domain}/{namespace}/{imageName}:{tag}@{digest}
      String getRegistryId()
      Get 用于企业版TCR获取镜像拉取临时凭证,ImageType为"enterprise"时必填 注意:此字段可能返回 null,表示取不到有效值。
      void setArgs​(String Args)
      Set 容器的启动参数。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 CMD。传入规范,以“空格”作为参数的分割标识,例如 -u app.py 注意:此字段可能返回 null,表示取不到有效值。
      void setCommand​(String Command)
      Set 容器的启动命令。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 Entrypoint。传入规范,填写可运行的指令,例如 python 注意:此字段可能返回 null,表示取不到有效值。
      void setContainerImageAccelerate​(Boolean ContainerImageAccelerate)
      Set 镜像加速开关,默认False 注意:此字段可能返回 null,表示取不到有效值。
      void setEntryPoint​(String EntryPoint)
      Set 参数已废弃 注意:此字段可能返回 null,表示取不到有效值。
      void setImagePort​(Long ImagePort)
      Set 镜像函数端口设置 -1: 无端口镜像函数 0: 默认端口,当前默认端口是9000 其他: 特殊端口 注意:此字段可能返回 null,表示取不到有效值。
      void setImageType​(String ImageType)
      Set 镜像仓库类型,个人版或者企业版:personal/enterprise
      void setImageUri​(String ImageUri)
      Set {domain}/{namespace}/{imageName}:{tag}@{digest}
      void setRegistryId​(String RegistryId)
      Set 用于企业版TCR获取镜像拉取临时凭证,ImageType为"enterprise"时必填 注意:此字段可能返回 null,表示取不到有效值。
      void toMap​(HashMap<String,​String> map, String prefix)
      Internal implementation, normal users should not use it.
    • Constructor Detail

      • ImageConfig

        public ImageConfig()
      • ImageConfig

        public ImageConfig​(ImageConfig source)
        NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Detail

      • getImageType

        public String getImageType()
        Get 镜像仓库类型,个人版或者企业版:personal/enterprise
        Returns:
        ImageType 镜像仓库类型,个人版或者企业版:personal/enterprise
      • setImageType

        public void setImageType​(String ImageType)
        Set 镜像仓库类型,个人版或者企业版:personal/enterprise
        Parameters:
        ImageType - 镜像仓库类型,个人版或者企业版:personal/enterprise
      • getImageUri

        public String getImageUri()
        Get {domain}/{namespace}/{imageName}:{tag}@{digest}
        Returns:
        ImageUri {domain}/{namespace}/{imageName}:{tag}@{digest}
      • setImageUri

        public void setImageUri​(String ImageUri)
        Set {domain}/{namespace}/{imageName}:{tag}@{digest}
        Parameters:
        ImageUri - {domain}/{namespace}/{imageName}:{tag}@{digest}
      • getRegistryId

        public String getRegistryId()
        Get 用于企业版TCR获取镜像拉取临时凭证,ImageType为"enterprise"时必填 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        RegistryId 用于企业版TCR获取镜像拉取临时凭证,ImageType为"enterprise"时必填 注意:此字段可能返回 null,表示取不到有效值。
      • setRegistryId

        public void setRegistryId​(String RegistryId)
        Set 用于企业版TCR获取镜像拉取临时凭证,ImageType为"enterprise"时必填 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        RegistryId - 用于企业版TCR获取镜像拉取临时凭证,ImageType为"enterprise"时必填 注意:此字段可能返回 null,表示取不到有效值。
      • getEntryPoint

        public String getEntryPoint()
        Get 参数已废弃 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        EntryPoint 参数已废弃 注意:此字段可能返回 null,表示取不到有效值。
      • setEntryPoint

        public void setEntryPoint​(String EntryPoint)
        Set 参数已废弃 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        EntryPoint - 参数已废弃 注意:此字段可能返回 null,表示取不到有效值。
      • getCommand

        public String getCommand()
        Get 容器的启动命令。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 Entrypoint。传入规范,填写可运行的指令,例如 python 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        Command 容器的启动命令。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 Entrypoint。传入规范,填写可运行的指令,例如 python 注意:此字段可能返回 null,表示取不到有效值。
      • setCommand

        public void setCommand​(String Command)
        Set 容器的启动命令。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 Entrypoint。传入规范,填写可运行的指令,例如 python 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        Command - 容器的启动命令。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 Entrypoint。传入规范,填写可运行的指令,例如 python 注意:此字段可能返回 null,表示取不到有效值。
      • getArgs

        public String getArgs()
        Get 容器的启动参数。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 CMD。传入规范,以“空格”作为参数的分割标识,例如 -u app.py 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        Args 容器的启动参数。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 CMD。传入规范,以“空格”作为参数的分割标识,例如 -u app.py 注意:此字段可能返回 null,表示取不到有效值。
      • setArgs

        public void setArgs​(String Args)
        Set 容器的启动参数。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 CMD。传入规范,以“空格”作为参数的分割标识,例如 -u app.py 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        Args - 容器的启动参数。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 CMD。传入规范,以“空格”作为参数的分割标识,例如 -u app.py 注意:此字段可能返回 null,表示取不到有效值。
      • getContainerImageAccelerate

        public Boolean getContainerImageAccelerate()
        Get 镜像加速开关,默认False 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        ContainerImageAccelerate 镜像加速开关,默认False 注意:此字段可能返回 null,表示取不到有效值。
      • setContainerImageAccelerate

        public void setContainerImageAccelerate​(Boolean ContainerImageAccelerate)
        Set 镜像加速开关,默认False 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        ContainerImageAccelerate - 镜像加速开关,默认False 注意:此字段可能返回 null,表示取不到有效值。
      • getImagePort

        public Long getImagePort()
        Get 镜像函数端口设置 -1: 无端口镜像函数 0: 默认端口,当前默认端口是9000 其他: 特殊端口 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        ImagePort 镜像函数端口设置 -1: 无端口镜像函数 0: 默认端口,当前默认端口是9000 其他: 特殊端口 注意:此字段可能返回 null,表示取不到有效值。
      • setImagePort

        public void setImagePort​(Long ImagePort)
        Set 镜像函数端口设置 -1: 无端口镜像函数 0: 默认端口,当前默认端口是9000 其他: 特殊端口 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        ImagePort - 镜像函数端口设置 -1: 无端口镜像函数 0: 默认端口,当前默认端口是9000 其他: 特殊端口 注意:此字段可能返回 null,表示取不到有效值。