constants

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultGHBaseURL = "https://api.github.com/"

Url defaults must have /

View Source
const DefaultGLBaseURL = "https://gitlab.com"

no /

View Source
const ExeRegex = `.*\.exe$`
View Source
const GzipRegEx = `(\.tar\.gz$|\.tgz$)`
View Source
const MacOsRx = `(darwin|macos|apple)`
View Source
const TarRegEx = `(\.tar$|\.tar\.gz$|\.tgz$|\.tar\.xz$|\.txz$)`

Common regexes

View Source
const X86RegEx = `(amd64|x86_64)`
View Source
const XzipRegEx = `(\.tar\.xz$|\.txz$)`
View Source
const ZipRegEx = `(\.zip$)`

Variables

View Source
var KnownUrlMap = map[string]string{
	"helm/helm":             "https://get.helm.sh/helm-{{.version}}-{{.os}}-{{.arch}}.tar.gz",
	"kubernetes/kubernetes": "https://dl.k8s.io/release/{{.version}}/bin/{{.os}}/{{.arch}}/kubectl",
	"hashicorp/terraform":   `https://releases.hashicorp.com/terraform/{{ trimPrefix "v" .version }}/terraform_{{ trimPrefix "v" .version }}_{{.os}}_{{.arch}}.zip`,
	"hashicorp/vault":       `https://releases.hashicorp.com/vault/{{ trimPrefix "v" .version }}/vault_{{ trimPrefix "v" .version }}_{{.os}}_{{.arch}}.zip`,
}

KnownUrlMap contains "projectname/repo" = "downloadurl" for common release assets not hosted on github

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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