utils

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const FunctionClarityConcurrencyTagKey = "FUNCTION_CLARITY_CONCURRENCY_LEVEL"
View Source
const FunctionClaritySignatureNotFoundMessage = "storage: object doesn't exist"
View Source
const FunctionNotSignedTagValue = "Function not signed"
View Source
const FunctionSignedTagValue = "Function signed and verified"
View Source
const FunctionVerifyResultTagKey = "Function clarity result"

Variables

View Source
var FunctionClarityHomeDir = HomeDir + "/function-clarity/"
View Source
var HomeDir, _ = os.UserHomeDir()

Functions

func CleanDirectory added in v1.0.3

func CleanDirectory(directory string)

func DownloadFile

func DownloadFile(fileName string, url *string) error

func ExtractZip

func ExtractZip(zipPath string, dstToExtract string) error

Types

type ProgressBarReader

type ProgressBarReader struct {
	Fp   *os.File
	Size int64

	Bar     *mpb.Bar
	SignMap map[int64]struct{}
	// contains filtered or unexported fields
}

func (*ProgressBarReader) Read

func (r *ProgressBarReader) Read(p []byte) (int, error)

func (*ProgressBarReader) ReadAt

func (r *ProgressBarReader) ReadAt(p []byte, off int64) (int, error)

func (*ProgressBarReader) Seek

func (r *ProgressBarReader) Seek(offset int64, whence int) (int64, error)

Jump to

Keyboard shortcuts

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