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.
Click to show internal directories.
Click to hide internal directories.