internal

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SHA256Algorithm = "sha256"
	XXH64Algorithm  = "xxh64"
)

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(ctx context.Context, url string, filepath string, checksum string) (err error)

func DownloadURL added in v0.6.0

func DownloadURL(ctx context.Context, url string) (io.ReadCloser, error)

func FilterToLatestVersion

func FilterToLatestVersion(versions []string, versionConstraint string) (string, error)

func IsSemver

func IsSemver(v string) bool

func TemplateFlags added in v0.12.0

func TemplateFlags(ldFlags []string, version string) (string, error)

TemplateFlags joins ldflags and renders them as a template with the given version.

func TemplateSlice added in v0.12.0

func TemplateSlice(in []string, version string) ([]string, error)

TemplateSlice renders templates in each element of a slice with the given version.

func TemplateString added in v0.12.0

func TemplateString(in string, version string) (string, error)

TemplateString renders a single string as a template with the given version.

func ValidateEnvSlice added in v0.12.0

func ValidateEnvSlice(env []string) error

ValidateEnvSlice validates that all env vars in the slice have the format "KEY=VALUE".

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