Documentation
¶
Index ¶
- func ArchiveName(version string, goos string, goarch string) (string, error)
- func ExtractBinary(archive []byte, goos string) ([]byte, error)
- func NormalizeVersion(version string) string
- func ReplaceExecutable(path string, binary []byte, mode os.FileMode) error
- func SameVersion(left string, right string) bool
- func ValidateVersion(version string) (string, error)
- func VerifyAssetChecksum(assetName string, payload []byte, checksums []byte) error
- type Client
- type Release
- type ReleaseAsset
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeVersion ¶
func SameVersion ¶
func ValidateVersion ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Release ¶
type Release struct {
TagName string `json:"tag_name"`
HTMLURL string `json:"html_url"`
Assets []ReleaseAsset `json:"assets"`
}
type ReleaseAsset ¶
type ReleaseAsset struct {
Name string `json:"name"`
BrowserDownloadURL string `json:"browser_download_url"`
}
func FindChecksumAsset ¶
func FindChecksumAsset(release Release) (ReleaseAsset, error)
Click to show internal directories.
Click to hide internal directories.