internal

package
v1.0.0-alpha9 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackgroundPath

func BackgroundPath(version codegen.Version) string

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 DownloadReleaseBackground

func DownloadReleaseBackground(url string, version string)

func Extract

func Extract(tarFilePath, destinationFolder string) error

func GetAllFile

func GetAllFile(path string) []string

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 GetReleaseFromContent

func GetReleaseFromContent(content []byte) (*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

func UnGzip

func UnGzip(src string, dest string) error

func UnTar

func UnTar(src string, dest string) error

func WriteReleaseToLocal

func WriteReleaseToLocal(release *codegen.Release, releasePath string) error

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