internal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BulkExtract

func BulkExtract(dir string) error

extract each archive in dir

func Download

func Download(ctx context.Context, outDir, url string) (string, error)

func DownloadAs

func DownloadAs(ctx context.Context, filepath, url string) error

func Extract

func Extract(tarFilePath, destinationFolder string) error

func GetChecksums

func GetChecksums(filepath string) (map[string]string, error)

func GetChecksumsURL

func GetChecksumsURL(release codegen.Release, mirror string) string

func GetDockerRunningStatus

func GetDockerRunningStatus() (bool, error)

func GetOS added in v0.2.0

func GetOS() string

func GetPackageURLByCurrentArch

func GetPackageURLByCurrentArch(release codegen.Release, mirror string) (string, error)

func GetReleaseFrom

func GetReleaseFrom(ctx context.Context, releaseURL string) (*codegen.Release, error)

func GetReleaseFromLocal

func GetReleaseFromLocal(releasePath string) (*codegen.Release, error)

func InstallDependencies

func InstallDependencies() error

func InstallDependency added in v0.2.0

func InstallDependency() error

func InstallDocker

func InstallDocker() error

func InstallDockerByShell

func InstallDockerByShell() error

func InstallRelease

func InstallRelease(releaseDir string, sysrootPath string) error

func IsDockerInstalled

func IsDockerInstalled() bool

func NewDecompressor

func NewDecompressor(filepath string) getter.Decompressor

func NewTracker

func NewTracker(callback func(downladed, totalSize int64)) getter.ProgressTracker

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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