Documentation
¶
Index ¶
- Constants
- func DetectLibc() string
- func EffectiveSystem(system, currentGOOS, currentGOARCH string, detectLibc func() string, ...) (string, string, string)
- func ExtractJSONPath(data []byte, path string) (string, error)
- func ExtractYAMLPath(data []byte, path string) (string, error)
- func FixDarwinRosetta(goos, goarch string) (string, string)
- func IsTarget(value string) bool
- func ParseChecksum(data []byte, cfg Config) (string, error)
- func ParseLatest(data []byte, cfg Config) (string, error)
- func ParseLatestDescription(data []byte, cfg Config) (string, error)
- func ParseLatestPublishedAt(data []byte, cfg Config) (time.Time, error)
- func Render(template string, vars map[string]string) (string, error)
- func VariablesFor(input VariableInput) (map[string]string, error)
- type Config
- type Finder
- type HTTPGetter
- type LatestInfo
- type Target
- type VariableInput
Constants ¶
View Source
const Prefix = "template:"
Variables ¶
This section is empty.
Functions ¶
func DetectLibc ¶
func DetectLibc() string
func EffectiveSystem ¶
func ExtractYAMLPath ¶ added in v1.7.2
func FixDarwinRosetta ¶
func ParseLatestDescription ¶ added in v1.8.1
func ParseLatestPublishedAt ¶ added in v1.7.2
func VariablesFor ¶
func VariablesFor(input VariableInput) (map[string]string, error)
Types ¶
type Config ¶
type Config struct {
URLTemplate string
LatestURL string
LatestFormat string
LatestJSONPath string
VersionRegex string
OSMap map[string]string
ArchMap map[string]string
ExtMap map[string]string
LibcMap map[string]string
ChecksumURLTemplate string
ChecksumFormat string
ChecksumJSONPath string
ChecksumRegex string
InstallAction string
InstallArgs []string
}
type Finder ¶
type Finder struct {
Name string
Target Target
Config Config
Tag string
GOOS string
GOARCH string
Libc string
Getter HTTPGetter
Version string
// contains filtered or unexported fields
}
func (*Finder) Latest ¶
func (f *Finder) Latest() (LatestInfo, error)
type LatestInfo ¶
type Target ¶
func ParseTarget ¶
Click to show internal directories.
Click to hide internal directories.