Documentation ¶
Overview ¶
* @Author: lorock * @Github: https://github.com/lorock * @Date: 2021-09-14 15:13:14 * @LastEditors: lorock * @LastEditTime: 2021-09-15 16:38:58 * @FilePath: /goabao/abaodocker/image_build.go * @Description:
* @Author: lorock * @Github: https://github.com/lorock * @Date: 2021-09-14 15:56:40 * @LastEditors: lorock * @LastEditTime: 2021-09-15 16:39:38 * @FilePath: /goabao/abaodocker/image_pull.go * @Description:
* @Author: lorock * @Github: https://github.com/lorock * @Date: 2021-09-14 15:29:20 * @LastEditors: lorock * @LastEditTime: 2021-09-15 16:32:44 * @FilePath: /goabao/abaodocker/image_push.go * @Description:
* @Author: lorock * @Github: https://github.com/lorock * @Date: 2021-09-15 15:35:44 * @LastEditors: lorock * @LastEditTime: 2021-09-15 17:58:15 * @FilePath: /goabao/abaodocker/model.go * @Description:
Index ¶
- func ImageBuild(srcDockerfileDir string, dockerImageBaseConfig DockerImageBaseConfig, ...) ([]string, error)
- func ImagePull(dockerImageBaseConfig DockerImageBaseConfig, timeOutSecond int64) ([]string, error)
- func ImagePush(dockerImageBaseConfig DockerImageBaseConfig, timeOutSecond int64) ([]string, error)
- type AuthConfigMap
- type DockerImageBaseConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageBuild ¶
func ImageBuild(srcDockerfileDir string, dockerImageBaseConfig DockerImageBaseConfig, imageBuildOptionsAuthConfigs AuthConfigMap, timeOutSecond int64) ([]string, error)
*
- @description:
- @param {string} srcDockerfileDir
- @param {DockerImageBaseConfig} dockerImageBaseConfig
- @param {AuthConfigMap} imageBuildOptionsAuthConfigs
- @param {int64} timeOutSecond
- @return {*}
Types ¶
type AuthConfigMap ¶ added in v0.1.1
type AuthConfigMap map[string]types.AuthConfig
type DockerImageBaseConfig ¶ added in v0.1.1
type DockerImageBaseConfig struct { RegistryServerURI string //容器镜像服务地址 RegistryUserName string //容器镜像服务用户名 RegistryPassword string //容器镜像服务密码 ImageNamespace string //容器镜像服务命名空间 ImageName string //容器镜像名称 ps: centos ImageVersion string //容器镜像版本 ps: 7.8 }
DockerImageBaseConfig 容器镜像基础信息配置