scripts

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExists

func DirExists(path string) bool

func FileExists

func FileExists(path string) bool

func HttpGetData

func HttpGetData(ctx context.Context, url string, insecureSkipVerify bool) (data []byte, err error)

func HttpGetFile

func HttpGetFile(ctx context.Context, url, localFilename string, insecureSkipVerify bool) error

func IsMd5Text

func IsMd5Text(s string) bool

func MD5File

func MD5File(filename string) string

func UnTarGz

func UnTarGz(tarGzFile, trimPrefix, outputDir string) error

func Unzip

func Unzip(zipFile, outputDir string) error

func ZipFs

func ZipFs(w io.Writer, vfs fs.FS) (err error)

Types

type KclvmTripleType

type KclvmTripleType string
const (
	KclvmTripleType_unknown      KclvmTripleType = ""
	KclvmTripleType_centos       KclvmTripleType = "centos"
	KclvmTripleType_ubuntu       KclvmTripleType = "ubuntu"
	KclvmTripleType_darwin       KclvmTripleType = "Darwin"
	KclvmTripleType_darwin_arm64 KclvmTripleType = "Darwin-arm64"
	KclvmTripleType_windows      KclvmTripleType = "windows"
)

type KclvmVersionType

type KclvmVersionType string
const (
	KclvmAbiVersion         KclvmVersionType = KclvmVersionType_v0_4_6
	KclvmVersionType_latest                  = KclvmVersionType_v0_4_6

	KclvmVersionType_v0_4_6         KclvmVersionType = "v0.4.6"
	KclvmVersionType_v0_4_5         KclvmVersionType = "v0.4.5"
	KclvmVersionType_v0_4_5_alpha_2 KclvmVersionType = "v0.4.5-alpha.2"
	KclvmVersionType_v0_4_5_alpha_1 KclvmVersionType = "v0.4.5-alpha.1"
	KclvmVersionType_v0_4_4         KclvmVersionType = "v0.4.4"
	KclvmVersionType_v0_4_4_beta_2  KclvmVersionType = "v0.4.4-beta.2"
	KclvmVersionType_v0_4_4_beta_1  KclvmVersionType = "v0.4.4-beta.1"
	KclvmVersionType_v0_4_4_alpha_1 KclvmVersionType = "v0.4.4-alpha.1"
	KclvmVersionType_v0_4_3         KclvmVersionType = "v0.4.3"
	KclvmVersionType_v0_4_3_alpha_1 KclvmVersionType = "v0.4.3-alpha.1"
	KclvmVersionType_v0_4_2_alpha_5 KclvmVersionType = "v0.4.2-alpha.5"
	KclvmVersionType_v0_4_2_alpha_4 KclvmVersionType = "v0.4.2-alpha.4"
	KclvmVersionType_v0_4_2_alpha_3 KclvmVersionType = "v0.4.2-alpha.3"
	KclvmVersionType_v0_4_2_alpha_2 KclvmVersionType = "v0.4.2-alpha.2"
	KclvmVersionType_v0_4_2_alpha_1 KclvmVersionType = "v0.4.2-alpha.1"
)

Jump to

Keyboard shortcuts

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