cos_upgrade

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 13 Imported by: 1

README

COS 在线升级工具库

Template 模板

该目录下存放着使用github action 自动化构建的workflow以及gorelease的配置文件

自动化构建需要在github上创建一个v开头的release版本,才可以完成自动化获取版本信息.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSHA256FromFile

func GetSHA256FromFile(path string) (string, error)

GetSHA256FromFile 获取文件的sha256

Types

type CosUpgrade

type CosUpgrade struct {
	AppName        string
	CurrentVersion string
	CosBucket      string
	CosLocation    string
	CosFolder      string
	TmpBinFile     string
	Debug          bool
}

func (*CosUpgrade) CheckVersion

func (upgrade *CosUpgrade) CheckVersion()

func (*CosUpgrade) Upgrade

func (upgrade *CosUpgrade) Upgrade() string

type VersionStruct

type VersionStruct struct {
	Version     string `json:"version"`
	ReleaseTime int64  `json:"release_time"`
}

VersionStruct 版本信息结构体

Jump to

Keyboard shortcuts

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