releases

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentTypeTARGZ = "application/x-gzip"
	ContentTypeZIP   = "application/zip"
)

Content type constants

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

GithubAPIBase represents the base url for the GitHub API

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	DownloadURL string `json:"browser_download_url"`
	ContentType string `json:"content_type"`
}

Asset represents an uploaded GitHub release asset

type GithubRepo

type GithubRepo struct {
	Username string
	Repo     string
}

GithubRepo represents a unique repository on the GitHub platform

type Release

type Release struct {
	URL     string  `json:"url"`
	Assets  []Asset `json:"assets"`
	TagName string  `json:"tag_name"`
}

Release represents a GitHub release entity

func Get

func Get(r GithubRepo) ([]Release, error)

Get fetches the releases for a provided GithubRepo

Jump to

Keyboard shortcuts

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