util

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFileWithResume added in v0.0.2

func DownloadFileWithResume(url string, file string, token string) error

DownloadFileWithResume will download file with resume mode.

func MockRepo

func MockRepo(rootPath string, repoName string, revision string, files []string, blobs []string) error

The files length MUST BE THE SAME with blobs, and they should be one-to-one mapping. The elements in blobs should not be empty, but if one element in files is empty, which means the file is still under downloading.

Note: don't forget to cleanup the folders.

Types

This section is empty.

Jump to

Keyboard shortcuts

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