abaodocker

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

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

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 {*}

func ImagePull

func ImagePull(dockerImageBaseConfig DockerImageBaseConfig, timeOutSecond int64) ([]string, error)

*

  • @description:
  • @param {DockerImageBaseConfig} dockerImageBaseConfig
  • @param {int64} timeOutSecond
  • @return {*}

func ImagePush

func ImagePush(dockerImageBaseConfig DockerImageBaseConfig, timeOutSecond int64) ([]string, error)

*

  • @description:
  • @param {DockerImageBaseConfig} dockerImageBaseConfig
  • @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 容器镜像基础信息配置

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL