Documentation
¶
Index ¶
- Constants
- func DownloadFile(ctx context.Context, url string, filepath string, checksum string) (err error)
- func DownloadURL(ctx context.Context, url string) (io.ReadCloser, error)
- func FilterToLatestVersion(versions []string, versionConstraint string) (string, error)
- func IsSemver(v string) bool
- func TemplateFlags(ldFlags []string, version string) (string, error)
- func TemplateSlice(in []string, version string) ([]string, error)
- func TemplateString(in string, version string) (string, error)
- func ValidateEnvSlice(env []string) error
Constants ¶
View Source
const ( SHA256Algorithm = "sha256" XXH64Algorithm = "xxh64" )
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
func DownloadURL ¶ added in v0.6.0
func FilterToLatestVersion ¶
func TemplateFlags ¶ added in v0.12.0
TemplateFlags joins ldflags and renders them as a template with the given version.
func TemplateSlice ¶ added in v0.12.0
TemplateSlice renders templates in each element of a slice with the given version.
func TemplateString ¶ added in v0.12.0
TemplateString renders a single string as a template with the given version.
func ValidateEnvSlice ¶ added in v0.12.0
ValidateEnvSlice validates that all env vars in the slice have the format "KEY=VALUE".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.