utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterVersions

func FilterVersions(versions map[string]*gh.VersionInfo, major, minor string) ([]*semver.Version, error)

Types

type DownloadLink struct {
	Binary       string `json:"binary"`
	Platform     string `json:"platform"`
	Architecture string `json:"architecture"`
	URL          string `json:"url"`
	ChecksumURL  string `json:"checksumUrl"`
}

type Release

type Release struct {
	Version   string                    `json:"version"`
	Changelog string                    `json:"changelog"`
	Downloads map[string][]DownloadLink `json:"downloads"`
}

func BuildVersionResponse

func BuildVersionResponse(v *semver.Version) Release

func BuildVersionsResponse

func BuildVersionsResponse(versions []*semver.Version) []Release

Jump to

Keyboard shortcuts

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