Documentation ¶
Index ¶
- func Compress(files []*os.File, dest string) error
- func CopyDir(srcPath string, destPath string) error
- func DeCompress(tarFile, dest string) error
- func DockerList() []string
- func DockerLoad(tarName string)
- func DockerLogin(userName, password string) bool
- func DockerPull(imageName string)
- func DockerPush(imageName, loginToken string)
- func DockerRmi(imageName string)
- func DockerSave(tarName string, images []string)
- func DockerTag(sourceImageName, targetImageName string)
- func IsHubDocker(imageName string) string
- func LoadIni(data interface{}, path string)
- type Config
- type IniFile
- type Oss
- type OssProgressListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDir ¶
*
- 拷贝文件夹,同时拷贝文件夹中的文件
- @param srcPath 需要拷贝的文件夹路径: D:/test
- @param destPath 拷贝到的位置: D:/backup/
func DockerList ¶
func DockerList() []string
func DockerLoad ¶
func DockerLoad(tarName string)
func DockerLogin ¶
func DockerPull ¶
func DockerPull(imageName string)
func DockerPush ¶
func DockerPush(imageName, loginToken string)
func DockerSave ¶
func IsHubDocker ¶
Types ¶
type Config ¶
type Config struct { Path string `key:"config.path"` //app AppEnable bool `key:"app.enable"` AppName string `key:"app.name"` AppVersion string `key:"app.version"` AppKustomize bool `key:"app.kustomize",default:"false"` AppManifests string `key:"app.manifests"` AppImages string `key:"app.images"` }
var VarsConfig *Config
type Oss ¶
type Oss struct { Endpoint string AkId string AkSk string Bucket string Object string UploadFile string }
对象存储结构
type OssProgressListener ¶
type OssProgressListener struct { }
定义进度条监听器。
func (*OssProgressListener) ProgressChanged ¶
func (listener *OssProgressListener) ProgressChanged(event *oss.ProgressEvent)
定义进度变更事件处理函数。
Click to show internal directories.
Click to hide internal directories.