download

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SumType string = "sha256"
)

Variables

View Source
var GLOBAL_TO_EXIST bool
View Source
var WaitToSweepSig = make(chan struct{})

Functions

func GetGVCLocalProjectPath added in v0.1.6

func GetGVCLocalProjectPath() string

func IsFileCompressebBySuffix added in v0.1.2

func IsFileCompressebBySuffix(filename string) bool

Types

type Downloader

type Downloader struct {
	// contains filtered or unexported fields
}

func NewDownloader

func NewDownloader() (d *Downloader)

func (*Downloader) FindUrl

func (that *Downloader) FindUrl(dUrl string) (rUrl string)

func (*Downloader) GetGitCmd added in v0.1.6

func (that *Downloader) GetGitCmd() string

func (*Downloader) GitPush added in v0.1.6

func (that *Downloader) GitPush()

func (*Downloader) RemoveTempDir added in v0.1.6

func (that *Downloader) RemoveTempDir() error

func (*Downloader) Start

func (that *Downloader) Start(filenames ...string)

type Info

type Info struct {
	InfoList         map[string]*ItemInfo `json,koanf:"info_list"`
	GVCLatestVersion string               `json,koanf:"gvc_latest_version"`
	// contains filtered or unexported fields
}

func NewInfo

func NewInfo(cnf *conf.Config) *Info

func (*Info) CheckSum

func (that *Info) CheckSum(filename, tempLocalPath string) (updated bool)

func (*Info) Load

func (that *Info) Load()

func (*Info) Store

func (that *Info) Store()

type ItemInfo

type ItemInfo struct {
	SHA256  string `json,koanf:"sha256"`
	UpdatAt string `json,koanf:"updat_at"`
}

Jump to

Keyboard shortcuts

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