utils

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadAndUnpackGithubReleaseArchive

func DownloadAndUnpackGithubReleaseArchive(owner, repository, releaseTag, assetPath, token string) error

func DownloadGithubReleaseAsset

func DownloadGithubReleaseAsset(owner, repository, releaseTag, assetName, assetPath, token string) error

func ExtractTar

func ExtractTar(tr *tar.Reader, basePath, destPath string, isSourceDir bool) error

ExtractTar extracts the contents of a tar reader to the specified destination directory. basePath is the base path within the tar archive to start extraction from. isSourceDir indicates whether the source path in the container is a directory. destPath is the destination path on the host filesystem.

func GetArch added in v1.0.3

func GetArch() string

func GetAutobuilderJarPath

func GetAutobuilderJarPath(version string) (string, error)
func GetImageLink(version, path string) string

func GetRulesPath

func GetRulesPath(version string) (string, error)

func GetSeqraHome

func GetSeqraHome() (string, error)

func IsSupportedArch added in v1.0.3

func IsSupportedArch() bool

func RemoveIfExists

func RemoveIfExists(path string) error

func RemoveIfExistsOrExit

func RemoveIfExistsOrExit(path string)

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